]> git.saurik.com Git - apple/dyld.git/blob - unit-tests/run-all-unit-tests
dyld-45.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 echo ""
7 echo " * * * Running all unit tests for 32-bits * * *"
8
9 # make clean
10 ../bin/make-recursive.pl clean > /dev/null
11
12 # build default architecture
13 ../bin/make-recursive.pl | ../bin/result-filter.pl
14
15 # if G5, then also run all test cases built for ppc64
16 if [ `machine` = "ppc970" ]
17 then
18 echo ""
19 echo " * * * Running all unit tests for 64-bits * * *"
20
21 # make clean
22 ../bin/make-recursive.pl clean > /dev/null
23
24 # build 64-bit architecture
25 ../bin/make-recursive.pl ARCH="-arch ppc64" | ../bin/result-filter.pl
26 fi
27
28 # if Intel, then also run all test cases under emulation
29 if [ `machine` = "pentium4" ]
30 then
31 echo ""
32 echo " * * * Running all unit tests for emulated 32-bits * * *"
33
34 # make clean
35 ../bin/make-recursive.pl clean > /dev/null
36
37 # build 64-bit architecture
38 ../bin/make-recursive.pl ARCH="-arch ppc" | ../bin/result-filter.pl
39 fi
40