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