3 # cd into test-cases directory
4 cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
6 # save crash reporter state
7 CRSTATE
=`defaults read com.apple.CrashReporter DialogType`
8 defaults
write com.apple.CrashReporter DialogType basic
11 echo " * * * Running all unit tests for 32-bits * * *"
14 ..
/bin
/make-recursive.pl clean
> /dev
/null
16 # build default architecture
17 ..
/bin
/make-recursive.pl
| ..
/bin
/result
-filter.pl
19 # if G5, then also run all test cases built for ppc64
20 if [ `machine` = "ppc970" ]
23 echo " * * * Running all unit tests for 64-bits * * *"
26 ..
/bin
/make-recursive.pl clean
> /dev
/null
28 # build 64-bit architecture
29 ..
/bin
/make-recursive.pl ARCH
="ppc64" | ..
/bin
/result
-filter.pl
32 # if Intel, then also run all test cases under emulation
33 if [ "`sysctl -n hw.machine`" = "i386" ]
36 echo " * * * Running all unit tests for emulated 32-bits * * *"
39 ..
/bin
/make-recursive.pl clean
> /dev
/null
41 # build ppc architecture
42 ..
/bin
/make-recursive.pl ARCH
="ppc" | ..
/bin
/result
-filter.pl
45 # if 64-bit capable Intel, then also run all test cases for 64-bits
46 if [ `sysctl -n hw.optional.x86_64` = "1" ]
49 echo " * * * Running all unit tests for 64-bits * * *"
52 ..
/bin
/make-recursive.pl clean
> /dev
/null
54 # build x86_64 architecture
55 ..
/bin
/make-recursive.pl ARCH
="x86_64" | ..
/bin
/result
-filter.pl
59 # restore crash reporter state
60 defaults
write com.apple.CrashReporter DialogType
${CRSTATE}