]> git.saurik.com Git - apple/dyld.git/blame - unit-tests/run-all-unit-tests
dyld-46.16.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
6echo ""
7echo " * * * 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
16if [ `machine` = "ppc970" ]
17then
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
26fi
27
9e225d03 28# if Intel, then also run all test cases under emulation
8bc9f0af 29if [ `sysctl -n hw.machine` = "i386" ]
9e225d03
A
30then
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
8bc9f0af 37 # build ppc architecture
9e225d03
A
38 ../bin/make-recursive.pl ARCH="-arch ppc" | ../bin/result-filter.pl
39fi
0959b6d4 40
8bc9f0af
A
41# if 64-bit capable Intel, then also run all test cases for 64-bits
42if [ `sysctl -n hw.optional.x86_64` = "1" ]
43then
44 echo ""
45 echo " * * * Running all unit tests for 64-bits * * *"
46
47 # make clean
48 ../bin/make-recursive.pl clean > /dev/null
49
50 # build x86_64 architecture
51 ../bin/make-recursive.pl ARCH="-arch x86_64" | ../bin/result-filter.pl
52fi