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