]> git.saurik.com Git - apple/ld64.git/blame - FireOpal/unit-tests/run-all-unit-tests
ld64-85.2.1.tar.gz
[apple/ld64.git] / FireOpal / unit-tests / run-all-unit-tests
CommitLineData
4f3e367c
A
1#!/bin/sh
2
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
9# cd into test-cases directory
10cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
11
12[ "$PROCTORRUN" ] && exec ../proctor-run
13
14all_archs="x86_64 armv6 thumb ppc ppc64 i386 "
15valid_archs="x86_64 armv6 ppc ppc64 i386 "
16
17# clean first
18../bin/make-recursive.pl clean > /dev/null
19
20mkdir /tmp/$$
21for arch in $all_archs
22do
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 ""
35done