aboutsummaryrefslogtreecommitdiffstats
path: root/make/build-test.xml
diff options
context:
space:
mode:
authorMathieu Féry <[email protected]>2023-08-04 19:37:14 +0200
committerMathieu Féry <[email protected]>2023-08-04 19:37:48 +0200
commit2abb40b0ca9a6a06bdbe3e66b4235301ed15c693 (patch)
tree2d95e75c5d670712aa9551eeabba93be44213ad5 /make/build-test.xml
parent9b0335ea91c39469b586b4005dfae35d4b2cc84b (diff)
wip(test_case): Example of test case for issue related of 927bbc7160a812bb29c0e7120d4a3009bfb13bbf
Almost done
Diffstat (limited to 'make/build-test.xml')
-rw-r--r--make/build-test.xml72
1 files changed, 59 insertions, 13 deletions
diff --git a/make/build-test.xml b/make/build-test.xml
index a791c7c..f472063 100644
--- a/make/build-test.xml
+++ b/make/build-test.xml
@@ -671,44 +671,90 @@ chmod 644 ${results}/* \${line.separator}
<gluegen src="${test.junit.generation.dir}/test2.h"
outputRootDir="${build_t.gen}"
- config="${test.junit.generation.dir}/test2.cfg"
+ config="${test.junit.generation.dir}/test2-gluegen.cfg"
literalInclude="${test.junit.generation.dir}"
includeRefid="stub.includes.fileset.test"
- emitter="com.jogamp.gluegen.procaddress.ProcAddressEmitter"
+ emitter="com.jogamp.gluegen.JavaEmitter"
dumpCPP="false"
debug="false"
logLevel="WARNING">
<classpath refid="gluegen.classpath" />
</gluegen>
<antcall target="java.generate.copy2temp" inheritRefs="true" />
+
+ <gluegen src="${test.junit.generation.dir}/test2.h"
+ outputRootDir="${build_t.gen}"
+ config="${test.junit.generation.dir}/test2p1.cfg"
+ literalInclude="${test.junit.generation.dir}"
+ includeRefid="stub.includes.fileset.test"
+ emitter="com.jogamp.gluegen.JavaEmitter"
+ dumpCPP="false"
+ debug="false"
+ logLevel="WARNING">
+ <classpath refid="gluegen.classpath" />
+ </gluegen>
+
+ <gluegen src="${test.junit.generation.dir}/test2.h"
+ outputRootDir="${build_t.gen}"
+ config="${test.junit.generation.dir}/test2p2.cfg"
+ literalInclude="${test.junit.generation.dir}"
+ includeRefid="stub.includes.fileset.test"
+ emitter="com.jogamp.gluegen.procaddress.ProcAddressEmitter"
+ dumpCPP="false"
+ debug="false"
+ logLevel="WARNING">
+ <classpath refid="gluegen.classpath" />
+ </gluegen>
</target>
- <target name="junit.test2.c.build">
- <!-- this is the test2 implementation -->
- <patternset id="junit.test2.implc.src.files">
- <include name="src/junit/${test.junit.generation.rel}/test2.c"/>
+ <target name="junit.test2.c.build" depends="junit.test2i.c.build, junit.test2p1.c.build, junit.test2p2.c.build" unless="build.javaonly" />
+
+ <!-- this is the test2 implementation -->
+ <target name="junit.test2i.c.build">
+ <patternset id="junit.test2i.c.src.files">
+ <include name="src/junit/${test.junit.generation.rel}/test2.c"/>
</patternset>
<!-- Windows hacks ro make a proper DLL -->
<linker id="linker.test2.dll.cfg.id" extends="${linker.cfg.id}">
</linker>
- <c.build c.compiler.src.files="junit.test2.implc.src.files"
+ <c.build c.compiler.src.files="junit.test2i.c.src.files"
output.lib.name="test2"
compiler.cfg.id="${compiler.cfg.id}"
linker.cfg.id="linker.test2.dll.cfg.id"/>
- <!-- this is a dynamic lookup binding to the test1 implementation -->
+ </target>
+
+ <!-- this is a fixed binding to the test2 implementation -->
+ <target name="junit.test2p1.c.build">
+ <linker id="linker.test2.fixed.cfg.id" extends="${linker.cfg.id}">
+ <syslibset dir="${build_t.lib}" libs="test1"/>
+ </linker>
+
+ <patternset id="junit.test2p1.c.src.files">
+ <include name="${build_t.gen.rootrel}/native/Bindingtest2p1Impl_JNI.c"/>
+ <include name="${build_t.gen.rootrel}/native/T2_InitializeOptions_JNI.c"/>
+ </patternset>
+
+ <c.build c.compiler.src.files="junit.test2p1.c.src.files"
+ output.lib.name="Bindingtest2p1"
+ compiler.cfg.id="${compiler.cfg.id}"
+ linker.cfg.id="linker.test2.fixed.cfg.id"/>
+ </target>
+
+ <!-- this is a dynamic lookup binding to the test2 implementation -->
+ <target name="junit.test2p2.c.build">
<linker id="linker.test2.runtime.cfg.id" extends="${linker.cfg.id}">
</linker>
- <patternset id="junit.test2.jnic.src.files">
- <include name="${build_t.gen.rootrel}/native/Bindingtest2Impl_JNI.c"/>
- <include name="${build_t.gen.rootrel}/native/T2_InitializeOptions_JNI.c"/>
+ <patternset id="junit.test2p2.c.src.files">
+ <include name="${build_t.gen.rootrel}/native/Bindingtest2p2Impl_JNI.c"/>
+ <include name="${build_t.gen.rootrel}/native/T2_InitializeOptions_JNI.c"/>
</patternset>
- <c.build c.compiler.src.files="junit.test2.jnic.src.files"
- output.lib.name="Bindingtest2"
+ <c.build c.compiler.src.files="junit.test2p2.c.src.files"
+ output.lib.name="Bindingtest2p2"
compiler.cfg.id="${compiler.cfg.id}"
linker.cfg.id="linker.test2.runtime.cfg.id"/>
</target>