-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy pathtest-lbtile.sh
More file actions
executable file
·46 lines (36 loc) · 863 Bytes
/
test-lbtile.sh
File metadata and controls
executable file
·46 lines (36 loc) · 863 Bytes
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
#!/bin/bash
cd test
make clean > /dev/null 2>&1
cd ..
TESTS="examples/heat-1d/heat-1d.c \
examples/heat-2d/heat-2d.c \
examples/heat-3d/heat-3d.c \
test/jacobi-2d-mod.c \
"
OPTS="--pet --iss --islsolve"
for file in $TESTS; do
echo -e "$file"
echo ./polycc $OPTS $file $* -o test_temp_out.pluto.c
./polycc $OPTS $file $* -o test_temp_out.pluto.c
if [ $? -ne 0 ]; then
echo Failed test case "$file"!
break
fi
done
OPTS="--pet --iss --islsolve --lbtile --parallel"
for file in $TESTS; do
echo -e "$file"
echo ./polycc $OPTS $file $* -o test_temp_out.pluto.c
./polycc $OPTS $file $* -o test_temp_out.pluto.c
if [ $? -ne 0 ]; then
echo Failed test case "$file"!
break
fi
done
cleanup()
{
rm -f test_temp_out.pluto.c
rm -f test_temp_out.pluto.pluto.cloog
}
echo
trap cleanup SIGINT exit