-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildandrun.sh
executable file
·83 lines (71 loc) · 1.18 KB
/
buildandrun.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
echo ""
echo ""
echo ""
echo "Compiling buffer module and test files..."
sleep 3
make
echo ""
echo ""
echo ""
echo "Loading scullBuffer..."
sleep 3
cd Buffer
sudo python load.py
echo ""
echo ""
echo ""
echo "Run test with 1 consumer and 1 producer with 1 item each..."
sleep 4
cd ../test
./prodcons 1 1 1 1
echo ""
echo ""
echo ""
echo "Storing log data in test/prodcons_run1 folder..."
sleep 3
mkdir "prodcons_run1"
mv *.log prodcons_run1/
echo ""
echo ""
echo ""
echo "Run test with 10 consumers and producers with 10 items each..."
sleep 4
./prodcons 10 10 10 10
echo ""
echo ""
echo ""
echo "Storing log data in test/prodcons_run10 folder..."
sleep 3
mkdir "prodcons_run10"
mv *.log prodcons_run10/
mkdir "prodcons_run100"
echo ""
echo ""
echo ""
echo "Run test with 100 consumers and producers with 100 items each..."
sleep 4
./prodcons 100 100 100 100
echo ""
echo ""
echo ""
echo "Storing log data in test/prodcons_run100 folder..."
sleep 3
mv *.log prodcons_run100/
cd ../Buffer
echo ""
echo ""
echo ""
echo "Unloading scullBuffer module..."
sleep 3
sudo python unload.py
echo ""
echo ""
echo ""
echo "Clean up make files..."
sleep 3
cd ..
make clean
echo ""
echo ""
echo ""