]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/run-all-unit-tests
ld64-351.8.tar.gz
[apple/ld64.git] / unit-tests / run-all-unit-tests
1 #!/bin/sh
2
3 unset RC_TRACE_DYLIBS
4 unset RC_TRACE_ARCHIVES
5 unset LD_TRACE_DYLIBS
6 unset LD_TRACE_ARCHIVES
7
8 # cd into test-cases directory
9 cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
10
11 [ "$PROCTORRUN" ] && exec ../proctor-run
12
13 all_archs="x86_64 i386"
14 valid_archs="x86_64 i386"
15 # only test arm code if iOS platform tools installed
16 if [ -d /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs ]
17 then
18 all_archs="${all_archs} armv7"
19 valid_archs="${valid_archs} armv7"
20 fi
21
22
23 # clean first
24 ../bin/make-recursive.pl clean > /dev/null
25
26 mkdir /tmp/$$
27 for arch in $all_archs
28 do
29 echo ""
30 echo " * * * Running all unit tests for architecture $arch * * *"
31
32 # build architecture
33 [ "$NEWTEST" ] && NT=-newtest
34
35 ../bin/make-recursive$NT.pl ARCH=$arch VALID_ARCHS="$valid_archs" | ../bin/result-filter.pl
36
37 # clean up so svn is happy
38 ../bin/make-recursive.pl ARCH=$arch clean > /dev/null
39
40 echo ""
41 done