-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·39 lines (28 loc) · 1.02 KB
/
test.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
#!/bin/bash
make
echo "Q1, Input1"
output/hw2_p1.output < test/hw2_p1/input_01.txt > result.txt
diff -w result.txt test/hw2_p1/output_01.txt
echo "Q2, Input1"
output/hw2_p2.output < test/hw2_p2/input_01.txt > result.txt
diff -w result.txt test/hw2_p2/output_01.txt
echo "Q2, Input2"
output/hw2_p2.output < test/hw2_p2/input_02.txt > result.txt
diff -w result.txt test/hw2_p2/output_02.txt
echo "Q2, Input3"
output/hw2_p2.output < test/hw2_p2/input_03.txt > result.txt
diff -w result.txt test/hw2_p2/output_03.txt
echo "Q2, Input4"
output/hw2_p2.output < test/hw2_p2/input_04.txt > result.txt
diff -w result.txt test/hw2_p2/output_04.txt
echo "Q2, Input5"
output/hw2_p2.output < test/hw2_p2/input_05.txt > result.txt
diff -w result.txt test/hw2_p2/output_05.txt
echo "Q2, Input6"
output/hw2_p2.output < test/hw2_p2/input_06.txt > result.txt
diff -w result.txt test/hw2_p2/output_06.txt
echo "Q2, Input7"
output/hw2_p2.output < test/hw2_p2/input_07.txt > result.txt
diff -w result.txt test/hw2_p2/output_07.txt
echo "Test completed"
echo