blob: ccabf7d505ceaa03b61973c2da573d37450cb65b [file] [log] [blame]
Jack Palevich1cdef202009-05-22 12:06:27 -07001#!/bin/sh
2rm -f test-acc
3cd ..
4g++ -I../include acc.cpp disassem.cpp tests/main.cpp -g -ldl -o tests/test-acc
5cd tests
6if [ -x "test-acc" ]; then
Jack Palevichb7c81e92009-06-04 19:56:13 -07007 ./test-acc -S data/returnval-ansi.c
Jack Palevich1cdef202009-05-22 12:06:27 -07008
9 if [ "$(uname)" = "Linux" ]; then
10 if [ "$(uname -m)" = "i686" ]; then
Jack Palevichb7c81e92009-06-04 19:56:13 -070011 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 Palevich1cdef202009-05-22 12:06:27 -070015 fi
16 fi
17fi