]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/run-all-unit-tests
ld64-123.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
a645023d 9export MACOSX_DEPLOYMENT_TARGET=10.7
d696c285
A
10# cd into test-cases directory
11cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
12
a61fdf0a
A
13[ "$PROCTORRUN" ] && exec ../proctor-run
14
55e3d2f6
A
15all_archs="x86_64 ppc i386 "
16#armv6 thumb
17valid_archs="x86_64 armv6 ppc i386 "
d696c285 18
77cc3118
A
19# clean first
20../bin/make-recursive.pl clean > /dev/null
21
a61fdf0a 22mkdir /tmp/$$
d696c285
A
23for arch in $all_archs
24do
25 echo ""
26 echo " * * * Running all unit tests for architecture $arch * * *"
27
28 # build architecture
a61fdf0a
A
29 [ "$NEWTEST" ] && NT=-newtest
30
2f2f92e4 31 ../bin/make-recursive$NT.pl ARCH=$arch VALID_ARCHS="$valid_archs" | ../bin/result-filter.pl
d696c285
A
32
33 # clean up so svn is happy
34 ../bin/make-recursive.pl ARCH=$arch clean > /dev/null
35
36 echo ""
37done