Jack Palevich | 1cdef20 | 2009-05-22 12:06:27 -0700 | [diff] [blame^] | 1 | #!/bin/sh |
2 | rm -f test-acc | ||||
3 | cd .. | ||||
4 | g++ -I../include acc.cpp disassem.cpp tests/main.cpp -g -ldl -o tests/test-acc | ||||
5 | cd tests | ||||
6 | if [ -x "test-acc" ]; then | ||||
7 | ./test-acc -S data/returnval.c | ||||
8 | |||||
9 | if [ "$(uname)" = "Linux" ]; then | ||||
10 | if [ "$(uname -m)" = "i686" ]; then | ||||
11 | echo "Linux i686. Testing otcc.c" | ||||
12 | ./test-acc data/otcc.c data/otcc.c data/returnval.c | ||||
13 | fi | ||||
14 | fi | ||||
15 | fi |