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