-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathshellScript.sh
executable file
·195 lines (195 loc) · 6.79 KB
/
shellScript.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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
clear
echo ""######################## Starting Shell Script "########################"
echo "# Compiling all *.java Files..."
javac *.java
echo "# Removing old tests..."
rm -r tests/
echo "# Preparing directory..."
mkdir tests
cp testCases/1.pas tests/
cp testCases/2.pas tests/
cp testCases/3.pas tests/
cp testCases/4.pas tests/
cp testCases/5.pas tests/
cp testCases/6.pas tests/
cp testCases/7.pas tests/
cp testCases/8.pas tests/
cp testCases/9.pas tests/
cp testCases/10.pas tests/
cp testCases/11.pas tests/
cp testCases/12.pas tests/
cp testCases/13.pas tests/
cp testCases/14.pas tests/
cp testCases/15.pas tests/
cp testCases/16.pas tests/
cp testCases/17.pas tests/
echo "######################## Test 1 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/1.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/1.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/1.j
echo "# Executing Java File..."
java tests/1
echo "# Done."
echo "######################## Test 2 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/2.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/2.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/2.j
echo "# Executing Java File..."
java tests/2
echo "# Done."
echo "######################## Test 3 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/3.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/3.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/3.j
echo "# Executing Java File..."
java tests/3
echo "# Done."
echo "######################## Test 4 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/4.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/4.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/4.j
echo "# Executing Java File..."
java tests/4
echo "# Done."
echo "######################## Test 5 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/5.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/5.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/5.j
echo "# Executing Java File..."
java tests/5
echo "# Done."
echo "######################## Test 6 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/6.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/6.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/6.j
echo "# Executing Java File..."
java tests/6
echo "# Done."
echo "######################## Test 7 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/7.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/7.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/7.j
echo "# Executing Java File..."
java tests/7
echo "# Done."
echo "######################## Test 8 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/8.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/8.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/8.j
echo "# Executing Java File..."
java tests/8
echo "# Done."
echo "######################## Test 9 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/9.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/9.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/9.j
echo "# Executing Java File..."
java tests/9
echo "# Done."
echo "######################## Test 10 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/10.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/10.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/10.j
echo "# Executing Java File..."
java tests/10
echo "# Done."
echo "######################## Test 11 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/11.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/11.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/11.j
echo "# Executing Java File..."
java tests/11
echo "# Done."
echo "######################## Test 12 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/12.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/12.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/12.j
echo "# Executing Java File..."
java tests/12
echo "# Done."
echo "######################## Test 13 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/13.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/13.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/13.j
echo "# Executing Java File..."
java tests/13
echo "# Done."
echo "######################## Test 14 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/14.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/14.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/14.j
echo "# Executing Java File..."
java tests/14
echo "# Done."
echo "######################## Test 15 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/15.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/15.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/15.j
echo "# Executing Java File..."
java tests/15
echo "# Done."
echo "######################## Test 16 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/16.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/16.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/16.j
echo "# Executing Java File..."
java tests/16
echo "# Done."
echo "######################## Test 17 ########################"
echo "# Calling StupsCompiler - Compiling..."
java StupsCompiler -compile tests/17.pas
echo "# Calling StupsCompiler - Liveness Analysis..."
java StupsCompiler -liveness tests/17.pas
echo "# Calling jasmin.jar..."
java -jar jasmin.jar tests/17.j
echo "# Executing Java File..."
java tests/17
echo "# Done."