]> git.saurik.com Git - apple/ld64.git/blob - FireOpal/unit-tests/run-all-unit-tests
ld64-85.2.1.tar.gz
[apple/ld64.git] / FireOpal / 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 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/'`
11
12 [ "$PROCTORRUN" ] && exec ../proctor-run
13
14 all_archs="x86_64 armv6 thumb ppc ppc64 i386 "
15 valid_archs="x86_64 armv6 ppc ppc64 i386 "
16
17 # clean first
18 ../bin/make-recursive.pl clean > /dev/null
19
20 mkdir /tmp/$$
21 for arch in $all_archs
22 do
23 echo ""
24 echo " * * * Running all unit tests for architecture $arch * * *"
25
26 # build architecture
27 [ "$NEWTEST" ] && NT=-newtest
28
29 ../bin/make-recursive$NT.pl ARCH=$arch VALID_ARCHS="$valid_archs" | ../bin/result-filter.pl
30
31 # clean up so svn is happy
32 ../bin/make-recursive.pl ARCH=$arch clean > /dev/null
33
34 echo ""
35 done