X-Git-Url: https://git.saurik.com/apple/dyld.git/blobdiff_plain/3d3c214069595b9b76804893b2eff3c389591dfd..8bc9f0afa7d820677f5d190a59ca900972f9aa5e:/unit-tests/run-all-unit-tests diff --git a/unit-tests/run-all-unit-tests b/unit-tests/run-all-unit-tests index 38f8960..ef857d1 100755 --- a/unit-tests/run-all-unit-tests +++ b/unit-tests/run-all-unit-tests @@ -26,7 +26,7 @@ then fi # if Intel, then also run all test cases under emulation -if [ `machine` = "pentium4" ] +if [ `sysctl -n hw.machine` = "i386" ] then echo "" echo " * * * Running all unit tests for emulated 32-bits * * *" @@ -34,7 +34,19 @@ then # make clean ../bin/make-recursive.pl clean > /dev/null - # build 64-bit architecture + # 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