Skip to content

Commit 105eec1

Browse files
committed
Don't run unix tests on mac
1 parent 4bffdc1 commit 105eec1

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

build.xml

+18-21
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,11 @@
241241
</condition>
242242
<condition property="jre.arch" value="ppc64le">
243243
<or>
244-
<matches pattern="(powerpc64le|power64le|ppc64le)" string="${build.os.arch}"/>
245-
<and>
246-
<matches pattern="(powerpc64|power64|ppc64)" string="${build.os.arch}"/>
247-
<matches pattern="little" string="${build.os.endianess}"/>
248-
</and>
244+
<matches pattern="(powerpc64le|power64le|ppc64le)" string="${build.os.arch}"/>
245+
<and>
246+
<matches pattern="(powerpc64|power64|ppc64)" string="${build.os.arch}"/>
247+
<matches pattern="little" string="${build.os.endianess}"/>
248+
</and>
249249
</or>
250250
</condition>
251251
<condition property="jre.arch" value="ppc64">
@@ -280,7 +280,7 @@
280280
<equals arg1="${build.os.name}" arg2="FreeBSD"/>
281281
</condition>
282282
<condition property="os.prefix" value="openbsd-${jre.arch}">
283-
<equals arg1="${build.os.name}" arg2="OpenBSD"/>
283+
<equals arg1="${build.os.name}" arg2="OpenBSD"/>
284284
</condition>
285285
<condition property="os.prefix" value="netbsd-${jre.arch}">
286286
<equals arg1="${build.os.name}" arg2="NetBSD"/>
@@ -685,15 +685,15 @@ osname=macosx;processor=x86;processor=x86-64;processor=ppc
685685
<fixcrlf file="${md5.file}" eol="unix"/>
686686
<replaceregexp match="^((.*\.h):JNIEXPORT[^(]+)( +\(.*)"
687687
replace="\1&#xa;\2- \3&#xa;--"
688-
byline="true"
688+
byline="true"
689689
file="${md5.file}"/>
690690
<replaceregexp match="(JNIEnv *\*) *env"
691691
replace="\1"
692-
byline="true"
692+
byline="true"
693693
file="${md5.file}"/>
694694
<replaceregexp match="&#xa;--&#xa;.*\.h-$"
695695
replace=""
696-
flags="m"
696+
flags="m"
697697
file="${md5.file}"/>
698698
<checksum property="md5" file="${md5.file}" />
699699
<propertyfile file="${jni.info}">
@@ -844,42 +844,42 @@ osname=macosx;processor=x86;processor=x86-64;processor=ppc
844844
</condition>
845845
<property name="xcode" value="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform"/>
846846
<condition property="make.SDKROOT"
847-
value="SDKROOT=${xcode}/Developer/SDKs/MacOSX10.11.sdk">
847+
value="SDKROOT=${xcode}/Developer/SDKs/MacOSX10.11.sdk">
848848
<and>
849849
<equals arg1="${os.prefix}" arg2="darwin" trim="true"/>
850850
<available file="${xcode}/Developer/SDKs/MacOSX10.11.sdk"/>
851851
</and>
852852
</condition>
853853
<condition property="make.SDKROOT"
854-
value="SDKROOT=${xcode}/Developer/SDKs/MacOSX10.9.sdk">
854+
value="SDKROOT=${xcode}/Developer/SDKs/MacOSX10.9.sdk">
855855
<and>
856856
<equals arg1="${os.prefix}" arg2="darwin" trim="true"/>
857857
<available file="${xcode}/Developer/SDKs/MacOSX10.9.sdk"/>
858858
</and>
859859
</condition>
860860
<condition property="make.SDKROOT"
861-
value="SDKROOT=${xcode}/Developer/SDKs/MacOSX10.8.sdk">
861+
value="SDKROOT=${xcode}/Developer/SDKs/MacOSX10.8.sdk">
862862
<and>
863863
<equals arg1="${os.prefix}" arg2="darwin" trim="true"/>
864864
<available file="${xcode}/Developer/SDKs/MacOSX10.8.sdk"/>
865865
</and>
866866
</condition>
867867
<condition property="make.SDKROOT"
868-
value="SDKROOT=/Developer/SDKs/MacOSX10.6.sdk">
868+
value="SDKROOT=/Developer/SDKs/MacOSX10.6.sdk">
869869
<and>
870870
<equals arg1="${os.prefix}" arg2="darwin" trim="true"/>
871871
<available file="/Developer/SDKs/MacOSX10.6.sdk"/>
872872
</and>
873873
</condition>
874874
<condition property="make.SDKROOT"
875-
value="SDKROOT=/Developer/SDKs/MacOSX10.5.sdk">
875+
value="SDKROOT=/Developer/SDKs/MacOSX10.5.sdk">
876876
<and>
877877
<equals arg1="${os.prefix}" arg2="darwin" trim="true"/>
878878
<available file="/Developer/SDKs/MacOSX10.5.sdk"/>
879879
</and>
880880
</condition>
881881
<condition property="make.SDKROOT"
882-
value="SDKROOT=/Developer/SDKs/MacOSX10.4u.sdk" else="IGNORE=">
882+
value="SDKROOT=/Developer/SDKs/MacOSX10.4u.sdk" else="IGNORE=">
883883
<and>
884884
<equals arg1="${os.prefix}" arg2="darwin" trim="true"/>
885885
<available file="/Developer/SDKs/MacOSX10.4u.sdk"/>
@@ -1041,7 +1041,7 @@ cd ..
10411041
</target>
10421042

10431043
<target name="compile-tests" depends="compile,native,jar"
1044-
description="Compile all test code">
1044+
description="Compile all test code">
10451045
<javac classpathref="compile-test.path"
10461046
source="${test.compatibility}"
10471047
target="${test.compatibility}"
@@ -1175,10 +1175,7 @@ cd ..
11751175
<os family="mac"/>
11761176
</condition>
11771177
<condition property="tests.platform" value="**/unix/**/*Test.java">
1178-
<and>
1179-
<os family="unix"/>
1180-
<not><os family="mac"/></not>
1181-
</and>
1178+
<and><os family="unix"/><not><os family="mac"/></not></and>
11821179
</condition>
11831180
<property name="tests.platform" value=""/>
11841181
<property name="tests.include" value="com/sun/jna/*Test.java"/>
@@ -1324,7 +1321,7 @@ cd ..
13241321
</copy>
13251322
<copy todir="${dist}/jnacontrib" flatten="true">
13261323
<fileset dir="${contrib}">
1327-
<include name="**/build/demo-*.jar" />
1324+
<include name="**/build/demo-*.jar" />
13281325
</fileset>
13291326
</copy>
13301327
<jar jarfile="${maven-javadoc-jar}">

contrib/platform/build.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ com.sun.jna.platform.wince;version=${osgi.version}
179179
<os name="Linux"/>
180180
</condition>
181181
<condition property="tests.platform.unix" value="**/unix/**/*Test.java">
182-
<os family="unix"/>
182+
<and>
183+
<os family="unix"/>
184+
<not><os family="mac"/></not>
185+
</and>
183186
</condition>
184187
<property name="tests.platform.mac" value=""/>
185188
<property name="tests.platform.windows" value=""/>

0 commit comments

Comments
 (0)