-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_script.sh
67 lines (53 loc) · 1.09 KB
/
test_script.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
52
53
54
55
56
57
58
59
60
61
62
echo "Test Case 1: Simple Send and receive "
./test 8 1 &
./test 8 2
read x
echo "Test Case 2: QFULL Sender Blocked"
read x
echo "TEST Case 3: RECIEVER BLOCK "
./test 5 1 5 &
./test 5 2 4
./test 5 2 1
read x
echo "Test Case 4: Single sender and multiple receivers "
./test 5 1 &
./test 5 1 &
./test 5 2
read x
echo "TEST Case 5: Multiple receiver multiple messages"
./test 5 1 4 1 &
./test 5 1 4 1 &
./test 5 1 4 1 &
./test 5 2 4
read x
echo "Test Case 6: Deferred Registration"
./test 5 1 3 1 &
./test 5 2 1 2
./test 5 1 &
./test 5 2
read x
echo "Test Case 7: MULTIPLE WRITERS TO QUEUE"
./test 5 1 6 1 &
./test 5 2 3
./test 5 2 1
./test 5 2 2
read x
echo "Test Case 8: MANY WRITE, MANY READ SAME Q"
./test 5 1 6 1 &
./test 5 1 6 1 &
./test 5 1 6 1 &
./test 5 2 2
./test 5 2 1
./test 5 2 3
read x
echo "Test Case 9: MANY WRITE, MANY READ DIFFERENT Q"
./test 6 1 4 1 &
./test 6 1 4 1 &
./test 7 1 4 1 &
./test 7 1 4 1 &
./test 6 2 2 1
./test 7 2 2 1
./test 6 2 2 1
./test 7 2 2 1
read x
echo "Test Case 10-17: Are negative test cases which cannot be scripted. These can be run manually to verify.."