-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_test_cases.sh
executable file
·48 lines (42 loc) · 1.21 KB
/
run_test_cases.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
#!/bin/sh
{
echo
echo --------------------------------------
echo Simple Valid Test Case
echo python diamond_challenge.py E
echo
python diamond_challenge.py E
echo
echo --------------------------------------
echo Test case for A
echo python diamond_challenge.py A
echo
python diamond_challenge.py A
echo
echo --------------------------------------
echo Invalid Test case
echo
echo python diamond_challenge.py Invaild_input
echo
python diamond_challenge.py Invaild_input
echo
echo --------------------------------------
echo Keyboard Entry of Z
echo
echo Note: Z does not appear after the prompt
echo due to limitations in Bash.
echo
echo python diamond_challenge.py
echo
python diamond_challenge.py < automated_test_inputs/test_input_Z.txt
echo --------------------------------------
echo Too Many Command Line Arguments
echo Followed by input of B
echo
echo Note: B does not appear after the prompt
echo due to limitations in Bash.
echo
echo python diamond_challenge.py
echo
python diamond_challenge.py One Two! < automated_test_inputs/test_input_B.txt
} | tee test_output.txt