summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-10-18 20:08:04 +0200
committerSven Gothel <[email protected]>2011-10-18 20:08:04 +0200
commitd3c3d69ded58e325287746635d614fc5db43594a (patch)
treea2ddb929d2c8833e0e14db4d105f7bfbb7678ee2 /make
parentfe9d0bee5185a4f523f2fc7fdd6efb718e20378d (diff)
Exclude SWT tests on platforms w/o SWT runtime
Diffstat (limited to 'make')
-rw-r--r--make/build-common.xml17
-rw-r--r--make/build-test.xml4
2 files changed, 17 insertions, 4 deletions
diff --git a/make/build-common.xml b/make/build-common.xml
index 58a829fc6..aceece32d 100644
--- a/make/build-common.xml
+++ b/make/build-common.xml
@@ -164,16 +164,29 @@
<istrue value="${isSolarisX86}" />
</condition>
<condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-x86/swt-debug.jar">
- <istrue value="${isSolarisAMD64}" />
+ <istrue value="${isSolarisAMD64}" /> <!-- FIXME JAU .. hack -->
</condition>
<condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-sparc/swt-debug.jar">
<istrue value="${isSolarisSparc}" />
</condition>
<condition property="swt.jar" value="${project.root}/make/lib/swt/gtk-solaris-sparc/swt-debug.jar">
- <istrue value="${isSolarisSparcv9}" />
+ <istrue value="${isSolarisSparcv9}" /> <!-- FIXME JAU .. hack -->
</condition>
<echo message="swt.jar=${swt.jar}" />
+ <condition property="isSWTRuntimeAvailable">
+ <or>
+ <istrue value="${isWindowsAMD64}" />
+ <istrue value="${isWindowsX86}" />
+ <istrue value="${isLinuxAMD64}" />
+ <istrue value="${isLinuxX86}" />
+ <istrue value="${isOSX}" />
+ <istrue value="${isSolarisX86}" />
+ <istrue value="${isSolarisSparc}" />
+ </or>
+ </condition>
+ <echo message="isSWTRuntimeAvailable=${isSWTRuntimeAvailable}" />
+
<property name="target.sourcelevel" value="1.5" />
<property name="host.sourcelevel" value="1.5" />
diff --git a/make/build-test.xml b/make/build-test.xml
index feb9ae834..5f975d8e1 100644
--- a/make/build-test.xml
+++ b/make/build-test.xml
@@ -342,7 +342,7 @@
</junit>
</target>
- <target name="junit.run.swt.headless" depends="test.compile" description="Runs all pure SWT tests.">
+ <target name="junit.run.swt.headless" depends="test.compile" description="Runs all pure SWT tests." if="isSWTRuntimeAvailable">
<!-- Test*SWT*
Emulation of junit task.
@@ -406,7 +406,7 @@
</target>
<!-- currently freezes OSX -->
- <target name="junit.run.swt.awt" depends="test.compile" description="Runs all SWT_AWT tests." unless="isOSX">
+ <target name="junit.run.swt.awt" depends="test.compile" description="Runs all SWT_AWT tests." if="isSWTRuntimeAvailable" unless="isOSX">
<!-- Test*SWT* -->
<junit forkmode="perTest" showoutput="true" fork="true" haltonerror="off" timeout="${batchtest.timeout}">
<env key="${system.env.library.path}" path="${obj.all.paths}"/>