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 |
Jack Palevich | eedf9d2 | 2009-06-04 16:23:40 -0700 | [diff] [blame^] | 11 | echo "Linux i686. Testing otcc-noinclude.c" |
| 12 | ./test-acc data/otcc-noinclude.c data/otcc.c data/returnval.c |
Jack Palevich | 1cdef20 | 2009-05-22 12:06:27 -0700 | [diff] [blame] | 13 | fi |
| 14 | fi |
| 15 | fi |