fix warnings
[pluto.git] / test.sh
blob6e3731971c3aafd88df3b9cffe37d4e7f8d7820b
1 #!/bin/bash
3 cd test
4 make clean > /dev/null 2>&1
5 cd ..
7 TESTS="test/jacobi-1d-imper.c \
8 test/jacobi-2d-imper.c \
9 test/matmul.c \
10 test/costfunc.c \
11 test/fdtd-2d.c \
12 test/heat-3d-imperfect.c \
13 test/seq.c \
14 test/gemver.c \
15 test/seidel.c \
16 test/mvt.c \
17 test/mxv.c \
18 test/mxv-seq.c \
19 test/mxv-seq3.c \
20 test/matmul-seq.c \
21 test/matmul-seq3.c \
22 test/darte.c \
23 test/doitgen.c \
24 test/polynomial.c \
25 test/1dloop-invar.c \
26 test/nodep.c \
27 test/simple.c \
28 test/fusion1.c \
29 test/fusion2.c \
30 test/fusion3.c \
31 test/fusion4.c \
32 test/fusion5.c \
33 test/fusion6.c \
34 test/fusion7.c \
35 test/fusion8.c \
36 test/fusion9.c \
37 test/fusion10.c \
38 test/negparam.c \
39 test/tricky1.c \
40 test/tricky2.c \
41 test/tricky3.c \
42 test/tricky4.c \
43 test/multi-stmt-lazy-lin-ind.c \
44 test/ludcmp.c \
45 test/tce-4index-transform.c \
46 test/noloop.c"
48 for file in $TESTS; do
49 echo -e "$file"
50 ./polycc $file $* -o test_temp_out.pluto.c
51 if [ $? -ne 0 ]; then
52 echo -e "\e[31mFailed\e[0m" " $file"!
53 else
54 echo -e "\e[32mPassed\e[0m"
56 done
58 cleanup()
60 rm -f test_temp_out.pluto.c
61 rm -f test_temp_out.pluto.pluto.cloog
64 echo
66 trap cleanup SIGINT exit