This repository has been archived by the owner on Sep 18, 2022. It is now read-only.
forked from LucasCatchlove/Cmin_Cross_Assembler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunitTestsScript.bash
executable file
·71 lines (48 loc) · 1.68 KB
/
unitTestsScript.bash
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/bash
cd "$(dirname "$0")"
echo 'Running Unit Tests...'
javac aunit.java
javac analysers/TestLexicalAnalyser1.java
java analysers/TestLexicalAnalyser1 > tests.txt
javac analysers/TestLexicalAnalyser2.java
java analysers/TestLexicalAnalyser2 >> tests.txt
javac analysers/TestSyntaxAnalyser1.java
java analysers/TestSyntaxAnalyser1 >> tests.txt
javac analysers/TestSyntaxAnalyser2.java
java analysers/TestSyntaxAnalyser2 >> tests.txt
javac tests/TestSymbolTable.java
java tests/TestSymbolTable >> tests.txt
javac tests/TestPosition.java
java tests/TestPosition >> tests.txt
javac tests/TestMnemonic.java
java tests/TestMnemonic >> tests.txt
javac tests/TestLineStatement.java
java tests/TestLineStatement >> tests.txt
javac tests/TestInstruction.java
java tests/TestInstruction >> tests.txt
javac tests/TestIR1.java
java tests/TestIR1 >> tests.txt
javac tests/TestIR2.java
java tests/TestIR2 >> tests.txt
javac tests/TestFileReader.java
java tests/TestFileReader >> tests.txt
javac generators/TestListing1.java
java generators/TestListing1 >> tests.txt
javac generators/TestListing2.java
java generators/TestListing2 >> tests.txt
javac generators/TestListing3.java
java generators/TestListing3 >> tests.txt
javac generators/TestListing4.java
java generators/TestListing4 >> tests.txt
javac tests/TestRange1.java
java tests/TestRange1 >> tests.txt
javac tests/TestRange2.java
java tests/TestRange2 >> tests.txt
javac tests/TestRange3.java
java tests/TestRange3 >> tests.txt
javac tests/TestErrorReporter1.java
java tests/TestErrorReporter1 >> tests.txt
javac tests/TestErrorReporter2.java
java tests/TestErrorReporter2 >> tests.txt
java aunit tests.txt
echo 'Unit tests completed'