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