4 unset RC_TRACE_ARCHIVES
6 unset LD_TRACE_ARCHIVES
8 # cd into test-cases directory
9 cd `echo "$0" | sed 's/run-all-unit-tests/test-cases/'`
11 [ "$PROCTORRUN" ] && exec ..
/proctor
-run
13 all_archs
="x86_64 i386"
14 valid_archs
="x86_64 i386"
15 ios_sdk_directory
="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs"
16 # only test arm code if iOS platform tools installed
17 min_available_ios_sdk_version
()
19 ls "${ios_sdk_directory}" |
20 grep --invert-match --ignore-case "internal" | # exclude internal SDKs
21 sort --version-sort | head -n 1 | # take SDK with min version
22 sed "s/^iPhoneOS\(.*\)\.sdk$/\1/" # return only the version string
26 test "$(printf '%s\n' "$@" | sort --version-sort | head -n 1)" == "$2";
28 if [ -d $ios_sdk_directory ]
31 # Newer SDKs don't support older architectures.
32 if version_ge
"$(min_available_ios_sdk_version)" "11.0"
36 all_archs
="${all_archs} ${arm_arch}"
37 valid_archs
="${valid_archs} ${arm_arch}"
42 ..
/bin
/make-recursive.pl clean
> /dev
/null
45 for arch
in $all_archs
48 echo " * * * Running all unit tests for architecture $arch * * *"
51 [ "$NEWTEST" ] && NT
=-newtest
53 ..
/bin
/make-recursive$NT.pl ARCH
=$arch VALID_ARCHS
="$valid_archs" | ..
/bin
/result
-filter.pl
55 # clean up so svn is happy
56 ..
/bin
/make-recursive.pl ARCH
=$arch clean
> /dev
/null