]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/run-all-unit-tests
dyld-46.16.tar.gz
[apple/dyld.git] / unit-tests / run-all-unit-tests
index 4a1d1c64c612e660298eae5a3de0d2e9ba4fb903..ef857d18aef3046f5957ed9c51f811e0858f9243 100755 (executable)
@@ -25,4 +25,28 @@ then
        ../bin/make-recursive.pl ARCH="-arch ppc64" | ../bin/result-filter.pl
 fi
 
+# if Intel, then also run all test cases under emulation
+if [ `sysctl -n hw.machine` = "i386" ] 
+then
+       echo ""
+       echo " * * * Running all unit tests for emulated 32-bits * * *"
+       
+       # make clean
+       ../bin/make-recursive.pl clean > /dev/null
+
+       # build ppc architecture
+       ../bin/make-recursive.pl ARCH="-arch ppc" | ../bin/result-filter.pl
+fi
 
+# if 64-bit capable Intel, then also run all test cases for 64-bits
+if [ `sysctl -n hw.optional.x86_64` = "1" ] 
+then
+       echo ""
+       echo " * * * Running all unit tests for 64-bits * * *"
+       
+       # make clean
+       ../bin/make-recursive.pl clean > /dev/null
+
+       # build x86_64 architecture
+       ../bin/make-recursive.pl ARCH="-arch x86_64" | ../bin/result-filter.pl
+fi