NIHVIVO-76 Create an "acceptance" target in the build script, and an output directory in the acceptance-tests folder.

This commit is contained in:
jeb228 2010-03-15 20:22:16 +00:00
parent adae47ae04
commit 310f3d484d

View file

@ -47,4 +47,26 @@
--> -->
<import file="${vitro.core.dir}/webapp/product-build.xml" /> <import file="${vitro.core.dir}/webapp/product-build.xml" />
<!-- =================================
target: acceptance
================================= -->
<target name="acceptance" description="--> Run the acceptance tests">
<property name="acceptance.properties.file"
location="utilities/acceptance-tests/script/acceptance_test.properties" />
<fail message="You must create a &quot;${acceptance.properties.file}&quot; file.">
<condition>
<not>
<available file="${acceptance.properties.file}" />
</not>
</condition>
</fail>
<property file="${acceptance.properties.file}" prefix="acceptance." />
<exec executable="ruby" dir="utilities/acceptance-tests/script" failonerror="true">
<redirector output="${acceptance.output_directory}/ant_output.txt" alwayslog="true" />
<arg value="run_acceptance_tests.rb" />
<arg value="${acceptance.properties.file}" />
</exec>
</target>
</project> </project>