Commit 4e8f9161 authored by Ole Streicher's avatar Ole Streicher

Call tests with Test-Command

parent 23d35785
Tests: starjava-test
Test-Command: ant test -f debian/tests/test-starjava.xml -Dbuild.dir=$ADTTMP -Dcomponent=starlink-fits
Depends: starlink-fits-java,
ant, ant-optional, default-jdk, junit
#!/bin/sh
set -e
rm -rf ${ADTTMP}/*
cp -a debian/tests/build.xml src/testcases ${ADTTMP}
cd ${ADTTMP}
ant test -Djava.awt.headless=True -Dcomponent=starlink-fits
......@@ -3,11 +3,10 @@
<project name="Starjava CI tests" default="test" basedir=".">
<property name="build.dir" value="build"/>
<property name="src.dir" value="."/>
<property name="src.dir" value="../../src"/>
<property name="build.tests" value="${build.dir}/testcases"/>
<property name="tests.dir" value="${src.dir}/testcases"/>
<property name="debug" value="true"/>
<property name="source.version" value="1.5"/>
<property name="deprecation" value="false"/>
<property name="junit.fork" value="true"/>
......@@ -31,15 +30,11 @@
encoding="cp1252"
deprecation="${deprecation}" >
<classpath refid="tests-classpath"/>
<exclude name="uk/ac/starlink/fits/FitsNdxTest.java"/>
</javac>
</target>
<target name="test"
depends="run-tests"
description="-> run JUnit tests"/>
<target name="run-tests"
depends="compile-tests">
<target name="test" depends="compile-tests">
<junit printsummary="${junit.summary}" haltonfailure="yes"
filtertrace="${junit.filtertrace}"
......@@ -52,13 +47,14 @@
<sysproperty key="build.tests" value="${build.tests}"/>
<sysproperty key="tests-classpath.value"
value="${tests-classpath.value}"/>
<sysproperty key="java.awt.headless" value="${java.awt.headless}"/>
<sysproperty key="java.awt.headless" value="true"/>
<formatter type="plain" usefile="false"/>
<batchtest>
<fileset dir="${tests.dir}">
<include name="**/*Test.java"/>
<exclude name="uk/ac/starlink/fits/FitsNdxTest.java"/>
</fileset>
</batchtest>
......
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