blob: 547aed57aa354f57e0ef0fec75f81b2567fb603d [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
7 ./test-acc -S data/returnval.c
8
9 if [ "$(uname)" = "Linux" ]; then
10 if [ "$(uname -m)" = "i686" ]; then
Jack Palevicheedf9d22009-06-04 16:23:40 -070011 echo "Linux i686. Testing otcc-noinclude.c"
12 ./test-acc data/otcc-noinclude.c data/otcc.c data/returnval.c
Jack Palevich1cdef202009-05-22 12:06:27 -070013 fi
14 fi
15fi