diff options
author | Sven Gothel <[email protected]> | 2012-02-23 19:25:05 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-02-23 19:25:05 +0100 |
commit | 5459979a097f91011d3f23ff6f25e1dc34b1d52a (patch) | |
tree | 4d10979ed458d1cb8e9a4a35712c48479e8f1517 /make/jogamp-env.xml | |
parent | 071a08dd884dced1bd1f4b24c8e968f3d468aec6 (diff) |
Passing environment-vars and ant-properties to junit tests, enabling fine grained controll of test behavior.
Environment vars, mapped to properties:
JUNIT_RUN_ARG0 -> junit.run.arg0
JUNIT_RUN_ARG1 -> junit.run.arg1
This allows us to disable ScreenMode on Linux-ARM-Omap4 for example,
where XRandR calls consume up to 3s per test.
Diffstat (limited to 'make/jogamp-env.xml')
-rwxr-xr-x | make/jogamp-env.xml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/make/jogamp-env.xml b/make/jogamp-env.xml index d6143f8..de8995d 100755 --- a/make/jogamp-env.xml +++ b/make/jogamp-env.xml @@ -52,6 +52,19 @@ <target name="jogamp.env.init" depends="jogamp.env.validation"> <property environment="env" /> + <condition property="junit.run.arg0" value="${env.JUNIT_RUN_ARG0}"> + <not> + <equals arg1="${env.JUNIT_RUN_ARG0}" arg2="$${env.JUNIT_RUN_ARG0}" casesensitive="true" /> + </not> + </condition> + <property name="junit.run.arg0" value="-Djunit.run.arg0=dummy" /> <!-- default dummy values --> + <condition property="junit.run.arg1" value="${env.JUNIT_RUN_ARG1}"> + <not> + <equals arg1="${env.JUNIT_RUN_ARG1}" arg2="$${env.JUNIT_RUN_ARG1}" casesensitive="true" /> + </not> + </condition> + <property name="junit.run.arg1" value="-Djunit.run.arg1=dummy" /> <!-- default dummy values --> + <!-- only set 'build.archiveon' if set in environment to trigger archive creation --> <condition property="build.archiveon" value="${env.BUILD_ARCHIVE}"> <istrue value="${env.BUILD_ARCHIVE}"/> @@ -179,6 +192,8 @@ <echo message="android.version ${android.version}"/> + <echo message="junit.run.arg0 ${junit.run.arg0}"/> + <echo message="junit.run.arg1 ${junit.run.arg1}"/> </target> </project> |