-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
30 lines (30 loc) · 864 Bytes
/
run.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
#**********************
#*
#* Progam Name: MP1. Membership Protocol.
#*
#* Current file: run.sh
#* About this file: Submission shell script.
#*
#***********************
#!/bin/sh
wget https://spark-public.s3.amazonaws.com/cs425/assignments/mp2/MP2.zip || { echo 'ERROR ... Please install wget' ; exit 1; }
unzip MP2.zip || { echo 'ERROR ... Zip file not found' ; exit 1; }
cd MP2
cp ../MP2Node.* .
make clean > /dev/null 2>&1
make > /dev/null 2>&1
case $1 in
0) echo "CREATE test"
./Application testcases/create.conf > /dev/null 2>&1;;
1) echo "DELETE test"
./Application testcases/delete.conf > /dev/null 2>&1;;
2) echo "READ test"
./Application testcases/read.conf > /dev/null 2>&1;;
3) echo "UPDATE test"
./Application testcases/update.conf > /dev/null 2>&1;;
*) echo "Please enter a valid option";;
esac
cp dbg.log ../
cd ..
rm -rf MP2
rm MP2.zip