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 |
Jack Palevich | b7c81e9 | 2009-06-04 19:56:13 -0700 | [diff] [blame] | 7 | ./test-acc -S data/returnval-ansi.c |
Jack Palevich | 1cdef20 | 2009-05-22 12:06:27 -0700 | [diff] [blame] | 8 | |
| 9 | if [ "$(uname)" = "Linux" ]; then |
| 10 | if [ "$(uname -m)" = "i686" ]; then |
Jack Palevich | b7c81e9 | 2009-06-04 19:56:13 -0700 | [diff] [blame] | 11 | echo "Linux i686. Testing otcc-ansi.c" |
| 12 | ./test-acc data/otcc-ansi.c data/returnval.c |
| 13 | echo "Linux i686. Testing otcc-ansi.c data/otcc.c" |
| 14 | ./test-acc data/otcc-ansi.c data/otcc.c data/returnval.c |
Jack Palevich | 1cdef20 | 2009-05-22 12:06:27 -0700 | [diff] [blame] | 15 | fi |
| 16 | fi |
| 17 | fi |