-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
41 lines (31 loc) · 723 Bytes
/
Copy pathtest.sh
File metadata and controls
41 lines (31 loc) · 723 Bytes
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
#!/bin/bash -e
echo "Compiling and Buidling the MMU"
make clean
make mmu
echo ""
echo "--------------- Phase 1 ---------------------"
echo "Running Phase 1"
./mmu 256 BACKING_STORE.bin addresses.txt
echo "Grading Phase 1 ..."
DIFF=$(diff -wB output256.csv correct256.csv || true)
if [ "$DIFF" != "" ]
then
echo "Something is wrong."
echo $DIFF
else
echo "Good Job -- 8 points"
fi
echo ""
echo "--------------- Phase 2 ---------------------"
echo "Running Phase 2"
./mmu 128 BACKING_STORE.bin addresses.txt
echo "Grading Phase 2 ..."
DIFF=$(diff -wB output128.csv correct128.csv || true)
if [ "$DIFF" != "" ]
then
echo "Something is wrong."
echo $DIFF
else
echo "Good Job -- 12 points"
fi
echo ""