]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/run-all-unit-tests
ld64-85.2.2.tar.gz
[apple/ld64.git] / unit-tests / run-all-unit-tests
CommitLineData
d696c285
A
1#!/bin/sh
2
2f2f92e4
A
3unset RC_TRACE_DYLIBS
4unset RC_TRACE_ARCHIVES
5unset LD_TRACE_DYLIBS
6unset LD_TRACE_ARCHIVES
7
8export DYLD_FALLBACK_LIBRARY_PATH=${DYLD_FALLBACK_LIBRARY_PATH}:/Developer/usr/lib
d696c285
A
9# cd into test-cases directory
10cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
11
a61fdf0a
A
12[ "$PROCTORRUN" ] && exec ../proctor-run
13
2f2f92e4
A
14all_archs="x86_64 armv6 thumb ppc ppc64 i386 "
15valid_archs="x86_64 armv6 ppc ppc64 i386 "
d696c285 16
77cc3118
A
17# clean first
18../bin/make-recursive.pl clean > /dev/null
19
a61fdf0a 20mkdir /tmp/$$
d696c285
A
21for arch in $all_archs
22do
23 echo ""
24 echo " * * * Running all unit tests for architecture $arch * * *"
25
26 # build architecture
a61fdf0a
A
27 [ "$NEWTEST" ] && NT=-newtest
28
2f2f92e4 29 ../bin/make-recursive$NT.pl ARCH=$arch VALID_ARCHS="$valid_archs" | ../bin/result-filter.pl
d696c285
A
30
31 # clean up so svn is happy
32 ../bin/make-recursive.pl ARCH=$arch clean > /dev/null
33
34 echo ""
35done