-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.sh
executable file
·42 lines (29 loc) · 750 Bytes
/
test.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
#!/bin/sh
printf "\t ===| ARITL software test suite |===\n"
for i in test/errors/*.al ; do
printf "\t\t > %s" $i
./aritl $i > /dev/null 2>&1
if [ $? -eq 0 ] ; then
printf "\t > \033[1;32mOK\033[0m\n"
else
printf "\t > \033[1;31mFAIL\033[0m\n"
fi
done
for i in test/func/*.al ; do
printf "\t\t > %s" $i
./aritl $i > /dev/null 2>&1
if [ $? -eq 0 ] ; then
printf "\t > \033[1;32mOK\033[0m\n"
else
printf "\t > \033[1;31mFAIL\033[0m\n"
fi
done
for i in test/math/*.al ; do
printf "\t\t > %s" $i
./aritl $i > /dev/null 2>&1
if [ $? -eq 0 ] ; then
printf "\t > \033[1;32mOK\033[0m\n"
else
printf "\t > \033[1;31mFAIL\033[0m\n"
fi
done