unit tests for generator

This commit is contained in:
rusefi 2019-06-02 15:07:20 -04:00
parent d625369f8d
commit 0e1d740591
1 changed files with 21 additions and 5 deletions

View File

@ -1,7 +1,7 @@
<project default="jar">
<property name="javac.source" value="1.8" />
<property name="javac.target" value="1.8" />
<property name="javac.source" value="1.8"/>
<property name="javac.target" value="1.8"/>
<target name="clean">
<delete dir="build"/>
@ -14,9 +14,25 @@
target="${javac.target}"
destdir="build/classes"
classpath="lib/junit.jar:lib/annotations.jar:lib/snakeyaml.jar">
<src path="src"/>
<src path="src"/>
<src path="../enum_to_string/src"/>
</javac>
</javac>
<junit fork="no"
maxmemory="512m"
printsummary="yes"
haltonfailure="yes">
<jvmarg value="-ea"/>
<jvmarg value="-XX:+HeapDumpOnOutOfMemoryError"/>
<formatter type="brief"/>
<classpath path="build/classes:lib/junit.jar:lib/annotations.jar:lib/snakeyaml.jar"/>
<batchtest todir="build">
<fileset dir="src" includes="**/test/**/*Test.java"/>
<fileset dir="../enum_to_string/src" includes="**/test/**/*Test.java"/>
</batchtest>
</junit>
</target>
<target name="jar" depends="compile">
@ -25,7 +41,7 @@
<manifest>
<attribute name="Main-Class" value="com.rusefi.ConfigDefinition"/>
</manifest>
<zipfileset dir="build/classes" includes="**/*.class"/>
<zipfileset dir="build/classes" includes="**/*.class"/>
</jar>
</target>