-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrade.sh
executable file
·45 lines (42 loc) · 1.48 KB
/
grade.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
#!/usr/bin/env bash
# Runs the requested autograder:
# ./grade.sh 1: hw1 autograder
# ./grade.sh m: hw1 mnist
# ./grade.sh 2: hw2 autograder
# ./grade.sh 3: hw3 autograder
# ./grade.sh 4: hw4 autograder
# ./grade.sh 1b: hw1 bonus autograder
# ./grade.sh 2b: hw2 bonus autograder
# ./grade.sh 3b: hw3 bonus autograder
# ./grade.sh 4b: hw4 bonus autograder
if [ -z $1 ]; then
echo "./grade.sh 1: hw1 autograder"
echo "./grade.sh m: hw1 mnist"
echo "./grade.sh 1b: hw1 bonus autograder"
echo "./grade.sh 2: hw2 autograder"
echo "./grade.sh 2b: hw2 bonus autograder"
echo "./grade.sh 3: hw3 autograder"
echo "./grade.sh 3b: hw3 bonus autograder"
echo "./grade.sh 4: hw4 autograder"
echo "./grade.sh 4b: hw4 bonus autograder"
exit
fi
if [ "$1" == "1" ]; then
python3 ./autograder/hw1_autograder/runner.py
elif [ "$1" == "m" ]; then
python3 ./autograder/hw1_autograder/test_mnist.py
elif [ "$1" == "1b" ]; then
python3 ./autograder/hw1_bonus_autograder/runner.py
elif [ "$1" == "2" ]; then
python3 ./autograder/hw2_autograder/runner.py
elif [ "$1" == "2b" ]; then
python3 ./autograder/hw2_bonus_autograder/runner.py
elif [ "$1" == "3" ]; then
python3 ./autograder/hw3_autograder/runner.py
elif [ "$1" == "3b" ]; then
python3 ./autograder/hw3_bonus_autograder/runner.py
elif [ "$1" == "4" ]; then
python3 ./autograder/hw4_autograder/runner.py
elif [ "$1" == "4b" ]; then
python3 ./autograder/hw4_bonus_autograder/runner.py
fi