]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/run-all-unit-tests
ld64-133.3.tar.gz
[apple/ld64.git] / unit-tests / run-all-unit-tests
index 842ce77e079f159cdbf68b5bcf309e3229ac88a1..92851281512dcba73c398be50713cb6b274341e0 100755 (executable)
@@ -6,14 +6,21 @@ unset LD_TRACE_DYLIBS
 unset LD_TRACE_ARCHIVES
 
 export DYLD_FALLBACK_LIBRARY_PATH=${DYLD_FALLBACK_LIBRARY_PATH}:/Developer/usr/lib
 unset LD_TRACE_ARCHIVES
 
 export DYLD_FALLBACK_LIBRARY_PATH=${DYLD_FALLBACK_LIBRARY_PATH}:/Developer/usr/lib
+export MACOSX_DEPLOYMENT_TARGET=10.7
 # cd into test-cases directory
 cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
 
 [ "$PROCTORRUN" ] && exec ../proctor-run
 
 # cd into test-cases directory
 cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
 
 [ "$PROCTORRUN" ] && exec ../proctor-run
 
-all_archs="x86_64  ppc i386  "
-#armv6 thumb
-valid_archs="x86_64 armv6 ppc i386  "
+all_archs="x86_64  i386"
+valid_archs="x86_64 i386"
+# only test arm code if iOS platform tools installed
+if [ -d /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs ]
+then
+    all_archs="${all_archs}  armv7"
+    valid_archs="${valid_archs} armv7"
+fi
+
 
 # clean first
 ../bin/make-recursive.pl clean > /dev/null
 
 # clean first
 ../bin/make-recursive.pl clean > /dev/null