tsan: do not sleep at exit if there are no other threads
[blocksruntime.git] / test / timing / time
blob35da97dfc887340130f7163e1536fc4a2941d56e
1 #!/bin/sh
3 function test () {
4 arch=$1
5 file=$2
6 name=$3
7 ldflags=$4
9 if gcc -arch $arch -Os $file $ldflags -DLIBNAME=$name
10 then
11 if ./a.out
12 then
13 rm ./a.out
14 else
15 echo "fail"
17 else
18 echo "$FILE failed to compile"
22 INSTALLED=/usr/local/lib/system/libcompiler_rt.a
24 for ARCH in i386 x86_64; do
25 for FILE in $(ls *.c); do
27 echo "Timing $FILE for $ARCH"
29 test $ARCH $FILE libgcc ""
30 test $ARCH $FILE tuned ../../darwin_fat/Release/libcompiler_rt.a
31 if [ -f "$INSTALLED" ]; then
32 test $ARCH $FILE installed $INSTALLED
35 echo " "
37 done
38 done
39 exit