97-17
[darwin-xtools.git] / ld64 / unit-tests / run-all-unit-tests
blob842ce77e079f159cdbf68b5bcf309e3229ac88a1
1 #!/bin/sh
3 unset RC_TRACE_DYLIBS
4 unset RC_TRACE_ARCHIVES
5 unset LD_TRACE_DYLIBS
6 unset LD_TRACE_ARCHIVES
8 export DYLD_FALLBACK_LIBRARY_PATH=${DYLD_FALLBACK_LIBRARY_PATH}:/Developer/usr/lib
9 # cd into test-cases directory
10 cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
12 [ "$PROCTORRUN" ] && exec ../proctor-run
14 all_archs="x86_64 ppc i386 "
15 #armv6 thumb
16 valid_archs="x86_64 armv6 ppc i386 "
18 # clean first
19 ../bin/make-recursive.pl clean > /dev/null
21 mkdir /tmp/$$
22 for arch in $all_archs
24 echo ""
25 echo " * * * Running all unit tests for architecture $arch * * *"
27 # build architecture
28 [ "$NEWTEST" ] && NT=-newtest
30 ../bin/make-recursive$NT.pl ARCH=$arch VALID_ARCHS="$valid_archs" | ../bin/result-filter.pl
32 # clean up so svn is happy
33 ../bin/make-recursive.pl ARCH=$arch clean > /dev/null
35 echo ""
36 done