264.3.102
[darwin-xtools.git] / ld64 / unit-tests / run-all-unit-tests
blobcdab9275ed9a43c6df18f39499b591c2458df413
1 #!/bin/sh
3 unset RC_TRACE_DYLIBS
4 unset RC_TRACE_ARCHIVES
5 unset LD_TRACE_DYLIBS
6 unset LD_TRACE_ARCHIVES
8 # cd into test-cases directory
9 cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
11 [ "$PROCTORRUN" ] && exec ../proctor-run
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"
23 # clean first
24 ../bin/make-recursive.pl clean > /dev/null
26 mkdir /tmp/$$
27 for arch in $all_archs
29 echo ""
30 echo " * * * Running all unit tests for architecture $arch * * *"
32 # build architecture
33 [ "$NEWTEST" ] && NT=-newtest
35 ../bin/make-recursive$NT.pl ARCH=$arch VALID_ARCHS="$valid_archs" | ../bin/result-filter.pl
37 # clean up so svn is happy
38 ../bin/make-recursive.pl ARCH=$arch clean > /dev/null
40 echo ""
41 done