]> git.saurik.com Git - apple/dyld.git/blame - unit-tests/run-all-unit-tests
dyld-96.2.tar.gz
[apple/dyld.git] / unit-tests / run-all-unit-tests
CommitLineData
0959b6d4
A
1#!/bin/sh
2
3# cd into test-cases directory
4cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
5
bac542e6
A
6# save crash reporter state
7CRSTATE=`defaults read com.apple.CrashReporter DialogType`
8defaults write com.apple.CrashReporter DialogType basic
9
0959b6d4
A
10echo ""
11echo " * * * 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
20if [ `machine` = "ppc970" ]
21then
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
bac542e6 29 ../bin/make-recursive.pl ARCH="ppc64" | ../bin/result-filter.pl
0959b6d4
A
30fi
31
9e225d03 32# if Intel, then also run all test cases under emulation
bac542e6 33if [ "`sysctl -n hw.machine`" = "i386" ]
9e225d03
A
34then
35 echo ""
36 echo " * * * Running all unit tests for emulated 32-bits * * *"
37
38 # make clean
39 ../bin/make-recursive.pl clean > /dev/null
40
8bc9f0af 41 # build ppc architecture
bac542e6 42 ../bin/make-recursive.pl ARCH="ppc" | ../bin/result-filter.pl
0959b6d4 43
8bc9f0af 44
bac542e6
A
45 # if 64-bit capable Intel, then also run all test cases for 64-bits
46 if [ `sysctl -n hw.optional.x86_64` = "1" ]
47 then
48 echo ""
49 echo " * * * Running all unit tests for 64-bits * * *"
50
51 # make clean
52 ../bin/make-recursive.pl clean > /dev/null
53
54 # build x86_64 architecture
55 ../bin/make-recursive.pl ARCH="x86_64" | ../bin/result-filter.pl
56 fi
8bc9f0af 57fi
bac542e6
A
58
59# restore crash reporter state
60defaults write com.apple.CrashReporter DialogType ${CRSTATE}
61
62