Mercurial > projects > ldc
comparison tester.sh @ 11:d3ee9efe20e2 trunk
[svn r15] * Fixed a bunch problems with virtual calls. Seems I did some rather poor testing.
* Now 50/51 tests compile.
* Added a simple runalltests.d scripts that should be run with 'gdmd -run runalltests.d' - LLVMDC will not compile it yet.
author | lindquist |
---|---|
date | Tue, 02 Oct 2007 05:10:18 +0200 |
parents | c53b6e3fe49a |
children | 860524276608 |
comparison
equal
deleted
inserted
replaced
10:c0f2c47e5034 | 11:d3ee9efe20e2 |
---|---|
4 echo "you need to specify the test name" | 4 echo "you need to specify the test name" |
5 exit 1 | 5 exit 1 |
6 fi | 6 fi |
7 | 7 |
8 if [ "$2" = "ll" ]; then | 8 if [ "$2" = "ll" ]; then |
9 make && | |
10 llvmdc $1 -Itest -odtest -c && | 9 llvmdc $1 -Itest -odtest -c && |
11 llvm-dis -f $1.bc && | 10 llvm-dis -f $1.bc && |
12 cat $1.ll | 11 cat $1.ll |
13 exit $? | 12 exit $? |
13 elif [ "$2" = "llopt" ]; then | |
14 llvmdc $1 -Itest -odtest -c && | |
15 opt -f -o=$1.bc -std-compile-opts $1.bc && | |
16 llvm-dis -f $1.bc && | |
17 cat $1.ll | |
18 exit $? | |
14 elif [ "$2" = "run" ]; then | 19 elif [ "$2" = "run" ]; then |
15 make && | |
16 llvmdc $1 -Itest -odtest -of$1 && | 20 llvmdc $1 -Itest -odtest -of$1 && |
17 $1 | 21 $1 |
18 exit $? | 22 exit $? |
19 elif [ "$2" = "c" ]; then | 23 elif [ "$2" = "c" ]; then |
20 make && | |
21 llvmdc $1 -Itest -odtest -c | 24 llvmdc $1 -Itest -odtest -c |
22 exit $? | 25 exit $? |
23 elif [ "$2" = "gdb" ]; then | 26 elif [ "$2" = "gdb" ]; then |
24 make && | |
25 gdb --args llvmdc $1 -Itest -odtest '-c' | 27 gdb --args llvmdc $1 -Itest -odtest '-c' |
28 exit $? | |
29 elif [ "$2" = "gdbrun" ]; then | |
30 llvmdc $1 -Itest -odtest '-c' && | |
31 gdb $1 | |
26 exit $? | 32 exit $? |
27 else | 33 else |
28 echo "bad command or filename" | 34 echo "bad command or filename" |
29 fi | 35 fi |