-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy patherrtests.sh
More file actions
executable file
·67 lines (61 loc) · 1.05 KB
/
Copy patherrtests.sh
File metadata and controls
executable file
·67 lines (61 loc) · 1.05 KB
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
#!/bin/sh
if [ "$1" != "" ]; then
PROG=$1
else
PROG=../${BUILD:='./build'}/spin2cpp
fi
CC=propeller-elf-gcc
ok="ok"
endmsg=$ok
#
# check error messages
#
for i in error*.spin
do
j=`basename $i .spin`
$PROG -Wall --noheader -DCOUNT=4 $i >$j.err 2>&1
if diff -ub Expect/$j.err $j.err
then
rm -f $j.err
echo $j passed
else
echo $j failed
endmsg="TEST FAILURES"
fi
done
for i in error*.spin2
do
j=`basename $i .spin2`
$PROG --p2 --asm -Wall --noheader -DCOUNT=4 $i >$j.err 2>&1
if diff -ub Expect/$j.err $j.err
then
rm -f $j.err
echo $j passed
else
echo $j failed
endmsg="TEST FAILURES"
fi
done
for i in error*.bas
do
j=`basename $i .bas`
$PROG -Wall --noheader -DCOUNT=4 $i >$j.err 2>&1
if diff -ub Expect/$j.err $j.err
then
rm -f $j.err
echo $j passed
else
echo $j failed
endmsg="TEST FAILURES"
fi
done
#
# now see about tests on the propeller itself
#
if [ "x$endmsg" = "x$ok" ]
then
rm -f err*.h err*.cpp err*.p2asm
else
echo $endmsg
exit 1
fi