]> git.saurik.com Git - apple/dyld.git/blobdiff - unit-tests/run-all-unit-tests
dyld-360.14.tar.gz
[apple/dyld.git] / unit-tests / run-all-unit-tests
index d1df892e859bbf1efaa0d82a2428715ce94de330..397178c60cdd80de3e06ede6384d15a3144a2a2f 100755 (executable)
@@ -7,6 +7,8 @@ cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
 CRSTATE=`defaults read com.apple.CrashReporter DialogType`
 defaults write com.apple.CrashReporter DialogType basic
 
+SDK=`xcodebuild -version -sdk macosx.internal Path`
+
 # run test targeting different OS versions
 for OSVERSION in 10.9 10.8 10.7 10.6 10.5 10.4
 do 
@@ -17,7 +19,7 @@ do
        ../bin/make-recursive.pl clean > /dev/null
 
        # build default architecture
-       ../bin/make-recursive.pl ARCH="i386" OS_VERSION=$OSVERSION OS_NAME=MacOSX | ../bin/result-filter.pl
+       ../bin/make-recursive.pl ARCH="i386" OS_VERSION=$OSVERSION OS_NAME=MacOSX OSX_SDK_ROOT=${SDK} | ../bin/result-filter.pl
 
        # if 64-bit capable Intel, then also run all test cases for 64-bits
        if [ `sysctl -n hw.optional.x86_64` = "1" ] 
@@ -29,7 +31,7 @@ do
                ../bin/make-recursive.pl clean > /dev/null
 
                # build x86_64 architecture
-               ../bin/make-recursive.pl ARCH="x86_64" OS_VERSION=$OSVERSION OS_NAME=MacOSX | ../bin/result-filter.pl
+               ../bin/make-recursive.pl ARCH="x86_64" OS_VERSION=$OSVERSION OS_NAME=MacOSX OSX_SDK_ROOT=${SDK} | ../bin/result-filter.pl
        fi
 
 done