]> git.saurik.com Git - apple/dyld.git/blob - unit-tests/run-all-unit-tests
dyld-132.13.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 echo ""
11 echo " * * * Running all unit tests for 32-bits * * *"
12
13 # make clean
14 ../bin/make-recursive.pl clean > /dev/null
15
16 # build default architecture
17 ../bin/make-recursive.pl | ../bin/result-filter.pl
18
19 # if G5, then also run all test cases built for ppc64
20 if [ `machine` = "ppc970" ]
21 then
22 echo ""
23 echo " * * * Running all unit tests for 64-bits * * *"
24
25 # make clean
26 ../bin/make-recursive.pl clean > /dev/null
27
28 # build 64-bit architecture
29 ../bin/make-recursive.pl ARCH="ppc64" | ../bin/result-filter.pl
30 fi
31
32 # if Intel, then also run all test cases under emulation
33 if [ "`sysctl -n hw.machine`" = "i386" ]
34 then
35
36 if [ -x /usr/libexec/oah/translate ]
37 then
38 echo ""
39 echo " * * * Running all unit tests for emulated 32-bits * * *"
40
41 # make clean
42 ../bin/make-recursive.pl clean > /dev/null
43
44 # build ppc architecture
45 ../bin/make-recursive.pl ARCH="ppc" | ../bin/result-filter.pl
46 fi
47
48 # if 64-bit capable Intel, then also run all test cases for 64-bits
49 if [ `sysctl -n hw.optional.x86_64` = "1" ]
50 then
51 echo ""
52 echo " * * * Running all unit tests for 64-bits * * *"
53
54 # make clean
55 ../bin/make-recursive.pl clean > /dev/null
56
57 # build x86_64 architecture
58 ../bin/make-recursive.pl ARCH="x86_64" | ../bin/result-filter.pl
59 fi
60 fi
61
62 # restore crash reporter state
63 defaults write com.apple.CrashReporter DialogType ${CRSTATE}
64
65