blob: 547aed57aa354f57e0ef0fec75f81b2567fb603d [file] [log] [blame]
#!/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-noinclude.c"
./test-acc data/otcc-noinclude.c data/otcc.c data/returnval.c
fi
fi
fi