-
Notifications
You must be signed in to change notification settings - Fork 65
/
test-alt.sh
executable file
·68 lines (61 loc) · 1.15 KB
/
test-alt.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
cd test
make clean > /dev/null 2>&1
cd ..
TESTS="test/jacobi-1d-imper.c \
test/jacobi-2d-imper.c \
test/matmul.c \
test/costfunc.c \
test/fdtd-2d.c \
test/seq.c \
test/gemver.c \
test/seidel.c \
test/mvt.c \
test/mxv.c \
test/mxv-seq.c \
test/mxv-seq3.c \
test/matmul-seq.c \
test/matmul-seq3.c \
test/darte.c \
test/doitgen.c \
test/polynomial.c \
test/1dloop-invar.c \
test/nodep.c \
test/simple.c \
test/fusion1.c \
test/fusion2.c \
test/fusion3.c \
test/fusion4.c \
test/fusion5.c \
test/fusion6.c \
test/fusion7.c \
test/fusion8.c \
test/fusion9.c \
test/fusion10.c \
test/negparam.c \
test/tricky1.c \
test/tricky2.c \
test/tricky3.c \
test/tricky4.c \
test/multi-stmt-lazy-lin-ind.c \
test/ludcmp.c \
test/tce-4index-transform.c \
test/noloop.c"
# Disabled because Cloog is taking too long on this
# test/heat-3d-imperfect.c
for file in $TESTS; do
echo -e "$file"
./polycc $file $* -o test_temp_out.pluto.c
if [ $? -ne 0 ]; then
echo -e "\e[31mFailed\e[0m" " $file"!
else
echo -e "\e[32mPassed\e[0m"
fi
done
cleanup()
{
rm -f test_temp_out.pluto.c
rm -f test_temp_out.pluto.pluto.cloog
}
echo
trap cleanup SIGINT exit