-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmytest.sh
51 lines (43 loc) · 972 Bytes
/
mytest.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
49
50
51
#!/bin/bash
echo "Please enter a test to check."
echo " 1. WriteFile"
echo " 2. ReadFile"
echo " 3. FindSucc"
echo " 4. FindPred"
echo " 5. getNodeSucc"
read input_variable
case $input_variable in
1)
cat node.txt | sed -e "s/:/ /" | while read ip port
do
./unit_tests/write_client.sh $ip $port $1
done
;;
2)
cat node.txt | sed -e "s/:/ /" | while read ip port
do
./unit_tests/read_client.sh $ip $port $1
done
;;
3)
cat node.txt | sed -e "s/:/ /" | while read ip port
do
./unit_tests/fs_client.sh $ip $port $1
done
;;
4)
cat node.txt | sed -e "s/:/ /" | while read ip port
do
./unit_tests/fp_client.sh $ip $port $1
done
;;
5)
cat node.txt | sed -e "s/:/ /" | while read ip port
do
./unit_tests/getNodeSucc_client.sh $ip $port
done
;;
*) # anything else
echo "not recognised"
;;
esac