-
Notifications
You must be signed in to change notification settings - Fork 0
/
testscript
executable file
·86 lines (86 loc) · 2.14 KB
/
testscript
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/bash
printf "Positive Test 0 tests variable/statement ordering:\n"
cat ./tests/pos0
sleep 2
printf "output: \n"
./toplevel.native ./tests/pos0
printf "Positive Test 1 tests functions with arguments:\n"
cat ./tests/pos1
sleep 2
printf "\n./toplevel.native ./tests/pos1\n"
sleep 2
printf "output:\n"
./toplevel.native ./tests/pos1
sleep 2
printf "Positive Test 2 tests functions without arguments:\n"
cat ./tests/pos2
sleep 2
printf "\n./toplevel.native ./tests/pos2\n"
sleep 2
printf "output:\n"
./toplevel.native ./tests/pos2
sleep 2
printf "Positive Test 3 tests assignment to primitives and data structures:\n"
cat ./tests/pos3
sleep 2
printf "\n./toplevel.native ./tests/pos3\n"
sleep 2
printf "output:\n"
./toplevel.native ./tests/pos3
sleep 2
printf "Positive Test 4 tests keywords:\n"
cat ./tests/pos4
sleep 2
printf "\n./toplevel.native ./tests/pos4\n"
sleep 2
printf "output:\n"
./toplevel.native ./tests/pos4
sleep 2
printf "Positive Test 5 tests a standard multifunction class:\n"
cat ./tests/pos5
sleep 2
printf "\n./toplevel.native ./tests/pos5\n"
sleep 2
cat ./tests/pos5
sleep 2
printf "output:\n"
./toplevel.native ./tests/pos5
sleep 2
printf "Negative Test 1 fails because it does not have a class:\n"
cat ./tests/neg1
printf "\n./toplevel.native ./tests/neg1\n"
sleep 2
printf "output:\n"
./toplevel.native ./tests/neg1
sleep 2
printf "Negative Test 2 fails because of a missing semicolon:\n"
cat ./tests/neg2
sleep 2
printf "\n./toplevel.native ./tests/neg2\n"
sleep 2
printf "output:\n"
./toplevel.native ./tests/neg2
sleep 2
printf "Negative Test 3 fails because of a missing quotation mark in string declaration:\n"
cat ./tests/neg3
sleep 2
printf "\n./toplevel.native ./tests/neg3\n"
printf "output:\n"
./toplevel.native ./tests/neg3
sleep 2
printf "Negative Test 4 fails because the else clause provides conditions:\n"
cat ./tests/neg4
sleep 2
printf "\n./toplevel.native ./tests/neg4\n"
sleep 2
printf "output:\n"
./toplevel.native ./tests/neg4
sleep 2
printf "Negative Test 5 fails because the first function is not typed:\n"
cat ./tests/neg5
sleep 2
printf "\n./toplevel.native ./tests/neg5\n"
sleep 2
printf "output:\n"
./toplevel.native ./tests/neg5
sleep 2