diff options
Diffstat (limited to 'libacc/tests/testlocal')
-rwxr-xr-x | libacc/tests/testlocal | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libacc/tests/testlocal b/libacc/tests/testlocal new file mode 100755 index 0000000..a76322b --- /dev/null +++ b/libacc/tests/testlocal @@ -0,0 +1,15 @@ +#!/bin/sh +rm -f test-acc +cd .. +g++ -I../include acc.cpp disassem.cpp tests/main.cpp -g -ldl -o tests/test-acc +cd tests +if [ -x "test-acc" ]; then + ./test-acc -S data/returnval.c + + if [ "$(uname)" = "Linux" ]; then + if [ "$(uname -m)" = "i686" ]; then + echo "Linux i686. Testing otcc.c" + ./test-acc data/otcc.c data/otcc.c data/returnval.c + fi + fi +fi |