diff options
author | Michael Bien <[email protected]> | 2010-02-12 03:05:20 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-02-12 03:05:20 +0100 |
commit | 3f1bda99f1e4aec19c1c71de5324814bfc1c2eaa (patch) | |
tree | 005bfbfec0d8f69c43c45cf0a8ebd670fc5a422d /make | |
parent | 0fa706b4eef533ead671310a9a7e063a910198cb (diff) |
added test target to main build script.
added StructAccessorTest, refactored other tests.
updated project files, paths etc.
Diffstat (limited to 'make')
-rwxr-xr-x | make/build.xml | 32 | ||||
-rw-r--r-- | make/lib/junit-4.5.jar | bin | 0 -> 198945 bytes |
2 files changed, 28 insertions, 4 deletions
diff --git a/make/build.xml b/make/build.xml index 7832aea..fdcdbb0 100755 --- a/make/build.xml +++ b/make/build.xml @@ -419,7 +419,7 @@ <javac destdir="${classes-cdc}" source="1.4" debug="true" - debuglevel="source,lines" + debuglevel="source,lines,vars" excludes="${gluegen.excludes}" bootclasspath="${javac.bootclasspath-cdc.jar}"> <src path="${src.java}" /> @@ -489,7 +489,7 @@ <javac destdir="${classes}" source="1.4" debug="true" - debuglevel="source,lines" + debuglevel="source,lines,vars" includes="${gluegen-rt.classes}" excludes="${gluegen.excludes}"> <src path="${src.java}" /> @@ -501,7 +501,7 @@ <javac destdir="${classes}" source="1.5" debug="true" - debuglevel="source,lines" + debuglevel="source,lines,vars" excludes="${gluegen.excludes},${gluegen-rt.classes}"> <src path="${src.java}" /> <src path="${src.generated.java}" /> @@ -562,11 +562,35 @@ <copy file="${antlr.jar}" todir="${build}" /> </target> - <target name="all" depends="gluegen.build" /> + <target name="all" depends="gluegen.build,test" /> <target name="clean" depends="init"> <delete includeEmptyDirs="true"> <fileset dir="${build}" /> </delete> </target> + + <target name="test"> + <mkdir dir="${basedir}/../build/test/build/classes"/> + <mkdir dir="${basedir}/../build/test/results"/> + + <javac destdir="${basedir}/../build/test/build/classes" failonerror="false" source="1.5" srcdir="${basedir}/../test/junit" debug="true" debuglevel="lines,vars,source"> + <classpath path="${basedir}/../make/lib/junit-4.5.jar:${basedir}/../build/classes:${basedir}/../build/test/gensrc/java:${jdk.home}/lib/tools.jar:${ant.core.lib}"/> + </javac> + + <junit forkmode="once" showoutput="true" fork="true"> + <jvmarg value="-Djava.library.path=${basedir}/../build/test/build/natives"/> + <batchtest todir="${basedir}/../build/test/results"> + <fileset dir="${basedir}/../build/test/build/classes"> + <include name="com/sun/gluegen/**"/> + </fileset> + <formatter usefile="false" type="brief"/> + <formatter usefile="true" type="xml"/> + </batchtest> + <classpath> + <path path="${basedir}/../build/test/build/classes:${basedir}/../build/test/gensrc/java:${basedir}/../build/classes:${basedir}/../lib/antlr-3.2.jar:${basedir}/../make/lib/junit-4.5.jar:${jdk.home}/lib/tools.jar:${ant.core.lib}"/> + </classpath> + </junit> + </target> + </project> diff --git a/make/lib/junit-4.5.jar b/make/lib/junit-4.5.jar Binary files differnew file mode 100644 index 0000000..7339216 --- /dev/null +++ b/make/lib/junit-4.5.jar |