-
Notifications
You must be signed in to change notification settings - Fork 0
/
moldyn_driver.sh
69 lines (55 loc) · 1.91 KB
/
moldyn_driver.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
#!/bin/bash
if [ $# -lt 1 ]
then
echo "Start the testing driver!"
echo "Usage: moldyn_driver.sh (D|N) timeout"
echo "D: Debug mode"
echo "N: Not debug mode"
echo "timeout: time in seconds (after which the testcase will be killed if not finished)"
exit 1
fi
ant #Compile the all the java files and test cases
echo "##################################################################" >> ERROR.txt
echo "benchmarks.JFGMoldynBenchSizeA HD starts at "`date` >> ERROR.txt
./test_moldyn.sh test_moldyn HD $1 &
pid=$!
(sleep $2; kill $pid) &
KILLER=$!
wait $pid
kill -HUP $KILLER
echo "benchmarks.JFGMoldynBenchSizeA HD stops at "`date` >> ERROR.txt
echo -n "Path explored: " >> ERROR.txt
cat done.txt | wc -l >> ERROR.txt
echo "##################################################################" >> ERROR.txt
echo "benchmarks.JFGMoldynBenchSizeA PR starts at "`date` >> ERROR.txt
./test_moldyn.sh test_moldyn PR $1 &
pid=$!
(sleep $2; kill $pid) &
KILLER=$!
wait $pid
kill -HUP $KILLER
echo "benchmarks.JFGMoldynBenchSizeA PR stops at "`date` >> ERROR.txt
echo -n "Path explored: " >> ERROR.txt
cat done.txt | wc -l >> ERROR.txt
echo "##################################################################" >> ERROR.txt
echo "benchmarks.JFGMoldynBenchSizeA RT starts at "`date` >> ERROR.txt
./test_moldyn.sh test_moldyn RT $1 &
pid=$!
(sleep $2; kill $pid) &
KILLER=$!
wait $pid
kill -HUP $KILLER
echo "benchmarks.JFGMoldynBenchSizeA RT stops at "`date` >> ERROR.txt
echo -n "Path explored: " >> ERROR.txt
cat done.txt | wc -l >> ERROR.txt
echo "##################################################################" >> ERROR.txt
echo "benchmarks.JFGMoldynBenchSizeA PL starts at "`date` >> ERROR.txt
./test_moldyn.sh test_moldyn PL $1 &
pid=$!
(sleep $2; kill $pid) &
KILLER=$!
wait $pid
kill -HUP $KILLER
echo "benchmarks.JFGMoldynBenchSizeA PL stops at "`date` >> ERROR.txt
echo -n "Path explored: " >> ERROR.txt
cat done.txt | wc -l >> ERROR.txt