-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·70 lines (59 loc) · 1.78 KB
/
Copy pathtest.sh
File metadata and controls
executable file
·70 lines (59 loc) · 1.78 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
67
68
69
70
#!/bin/sh
APPLIANCES=""
if command -v python2 > /dev/null 2>&1; then
APPLIANCES="$APPLIANCES tests/appliances/hatoucan.py2.md"
fi
if command -v python3 > /dev/null 2>&1; then
APPLIANCES="$APPLIANCES tests/appliances/hatoucan.py3.md"
fi
if [ "x$APPLIANCES" = "x" ]; then
echo "No suitable Python versions found."
exit 1
fi
if [ X`which petcat` = X ]; then
echo 'petcat unavailable, skipping petcat tests.'
else
APPLIANCES="$APPLIANCES tests/appliances/petcat.md"
fi
falderal $APPLIANCES tests/Commodore-BASIC-2.0.md || exit $?
if [ X`which petcat` = X ]; then
exit 0
fi
SOURCE="../Bubble-Escape/src/bubble escape.bas"
if [ -e "$SOURCE" ]; then
./confirm-tokenization.sh 0801 "$SOURCE" || exit $?
echo $SOURCE tokenized identically to petcat.
else
echo $SOURCE not found, skipping test.
fi
SOURCE="../SITU-SOL/src/binloader.bas"
if [ -e "$SOURCE" ]; then
./confirm-tokenization.sh 0801 "$SOURCE" || exit $?
echo $SOURCE tokenized identically to petcat.
else
echo $SOURCE not found, skipping test.
fi
SOURCE="../SITU-SOL/src/frontpanel.bas"
if [ -e "$SOURCE" ]; then
./confirm-tokenization.sh 0801 "$SOURCE" || exit $?
echo $SOURCE tokenized identically to petcat.
else
echo $SOURCE not found, skipping test.
fi
SOURCE="../DiskSumo/src/disksumo.bas"
if [ -e "$SOURCE" ]; then
./confirm-tokenization.sh 0801 "$SOURCE" || exit $?
echo $SOURCE tokenized identically to petcat.
else
echo $SOURCE not found, skipping test.
fi
SOURCE="../Dungeons-of-Ekileugor/src/ekileugor.bas"
if [ -e "$SOURCE" -a X`which yucca` != "X" ]; then
yucca -R -x "$SOURCE" > yucca.bas.txt || exit $?
./confirm-tokenization.sh 1001 yucca.bas.txt || exit $?
echo $SOURCE tokenized identically to petcat.
rm -f yucca.bas.txt
else
echo yucca and/or $SOURCE not found, skipping test.
fi
exit 0