fix warnings
[pluto.git] / test-iss.sh
blob0dcb5e0e24367f7c509c0dfb23181d188c399db6
2 #!/bin/bash
4 cd test
5 make clean > /dev/null 2>&1
6 cd ..
8 TESTS="test/2d-bidirec.c \
9 test/reverse-iss.c
12 OPTS="--iss --islsolve"
14 for file in $TESTS; do
15 echo -e "$file"
16 echo ./polycc $OPTS $file $* -o test_temp_out.pluto.c
17 ./polycc $OPTS $file $* -o test_temp_out.pluto.c
18 if [ $? -ne 0 ]; then
19 echo Failed test case "$file"!
20 break
22 done
24 OPTS="--iss --islsolve --lbtile --parallel"
25 for file in $TESTS; do
26 echo -e "$file"
27 echo ./polycc $OPTS $file $* -o test_temp_out.pluto.c
28 ./polycc $OPTS $file $* -o test_temp_out.pluto.c
29 if [ $? -ne 0 ]; then
30 echo Failed test case "$file"!
31 break
33 done
36 cleanup()
38 rm -f test_temp_out.pluto.c
39 rm -f test_temp_out.pluto.pluto.cloog
42 echo
44 trap cleanup SIGINT exit