]> git.saurik.com Git - apple/dyld.git/blob - unit-tests/run-all-unit-tests
dyld-239.3.tar.gz
[apple/dyld.git] / unit-tests / run-all-unit-tests
1 #!/bin/sh
2
3 # cd into test-cases directory
4 cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
5
6 # save crash reporter state
7 CRSTATE=`defaults read com.apple.CrashReporter DialogType`
8 defaults write com.apple.CrashReporter DialogType basic
9
10 # run test targeting different OS versions
11 for OSVERSION in 10.9 10.8 10.7 10.6 10.5 10.4
12 do
13 echo ""
14 echo " * * * Running all unit tests i386 built for $OSVERSION * * *"
15
16 # make clean
17 ../bin/make-recursive.pl clean > /dev/null
18
19 # build default architecture
20 ../bin/make-recursive.pl ARCH="i386" OS_VERSION=$OSVERSION OS_NAME=MacOSX | ../bin/result-filter.pl
21
22 # if 64-bit capable Intel, then also run all test cases for 64-bits
23 if [ `sysctl -n hw.optional.x86_64` = "1" ]
24 then
25 echo ""
26 echo " * * * Running all unit tests x86_64 built for $OSVERSION * * *"
27
28 # make clean
29 ../bin/make-recursive.pl clean > /dev/null
30
31 # build x86_64 architecture
32 ../bin/make-recursive.pl ARCH="x86_64" OS_VERSION=$OSVERSION OS_NAME=MacOSX | ../bin/result-filter.pl
33 fi
34
35 done
36
37 # restore crash reporter state
38 defaults write com.apple.CrashReporter DialogType ${CRSTATE}
39
40