Commit 40403ace authored by Bart van der Velden's avatar Bart van der Velden

Attempt to use a macrodef in the unit test Ant script (#50)

parent d87ae37f
......@@ -19,12 +19,25 @@
<!-- Create the logs directory -->
<mkdir dir="${logdir}" />
<!--
unittest is the target to run unit tests
-->
<target name="unittest">
<echo message="Running unit tests" />
<!-- Macro to factor out the common code for each unit test -->
<macrodef name="run_unit_test">
<attribute name="executable" />
<sequence>
<echo message="executable = @{executable}" />
<property name="output" value="${logdir}/@{executable}.log" />
<echo message="output = ${output}" />
<property name="arg" value="--gtest_output=xml:${logdir}/test_@{executable}.xml" />
<echo message="arg = ${arg}" />
</sequence>
</macrodef>
<!-- Run the actual unit tests -->
<exec
executable="${bindir}/runUtilsTest"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment