]> git.saurik.com Git - apple/ld64.git/blame_incremental - unit-tests/run-all-unit-tests
ld64-133.3.tar.gz
[apple/ld64.git] / unit-tests / run-all-unit-tests
... / ...
CommitLineData
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
9export MACOSX_DEPLOYMENT_TARGET=10.7
10# cd into test-cases directory
11cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
12
13[ "$PROCTORRUN" ] && exec ../proctor-run
14
15all_archs="x86_64 i386"
16valid_archs="x86_64 i386"
17# only test arm code if iOS platform tools installed
18if [ -d /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs ]
19then
20 all_archs="${all_archs} armv7"
21 valid_archs="${valid_archs} armv7"
22fi
23
24
25# clean first
26../bin/make-recursive.pl clean > /dev/null
27
28mkdir /tmp/$$
29for arch in $all_archs
30do
31 echo ""
32 echo " * * * Running all unit tests for architecture $arch * * *"
33
34 # build architecture
35 [ "$NEWTEST" ] && NT=-newtest
36
37 ../bin/make-recursive$NT.pl ARCH=$arch VALID_ARCHS="$valid_archs" | ../bin/result-filter.pl
38
39 # clean up so svn is happy
40 ../bin/make-recursive.pl ARCH=$arch clean > /dev/null
41
42 echo ""
43done