-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrun-experiments.sh
More file actions
84 lines (80 loc) · 3.66 KB
/
run-experiments.sh
File metadata and controls
84 lines (80 loc) · 3.66 KB
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
83
84
#! /bin/bash
if [ "$1" == '' ]
then
echo "Either fully run a specific experiment one time (RQ1|RQ2|RQ3|RQ4|RQ5), run all experiments (run), evaluate the results (evaluate), or a do quick setup validation (validate)."
echo "-- Bash Examples --"
echo "Run RQ1: './experiments.sh RQ1'"
echo "Run RQ2: './experiments.sh RQ2'"
echo "Evaluate all gathered results: './experiments.sh evaluate'"
echo "Validate the setup: './experiments.sh validate'"
exit
fi
echo "Starting $1"
cd /home/user || exit
if [ "$1" == 'evaluate' ]
then
echo "Running result evaluation"
cd result_analysis_python || exit
python3 evaluation.py
exit
else
echo "Copying jars"
cp target/*Runner*-jar-with* .
echo ""
if [ "$1" == 'run' ]
then
echo "Running all experiments."
echo "Running experiment for RQ1"
java -Xmx16G -jar RQ1Runner-jar-with-dependencies.jar full-experiments.properties
echo "Running experiment for RQ2"
java -Xmx16G -jar RQ2Runner-jar-with-dependencies.jar full-experiments.properties
echo "Running experiment for RQ3"
java -Xmx16G -jar RQ3Runner-jar-with-dependencies.jar full-experiments.properties $2
echo "Running experiment for RQ4"
java -Xmx16G -jar RQ4Runner-jar-with-dependencies.jar full-experiments.properties
echo "Running experiment for RQ5"
java -Xmx16G -jar RQ5Runner-jar-with-dependencies.jar full-experiments.properties $2
elif [ "$1" == 'RQ1' ]
then
echo "Running experiment for RQ1"
java -Xmx16G -jar RQ1Runner-jar-with-dependencies.jar single-experiment.properties
elif [ "$1" == 'RQ2' ]
then
echo "Running experiment for RQ2"
java -Xmx16G -jar RQ2Runner-jar-with-dependencies.jar single-experiment.properties
elif [ "$1" == 'RQ3' ]
then
echo "Running experiment for RQ3"
java -Xmx16G -jar RQ3Runner-jar-with-dependencies.jar single-experiment.properties $2
elif [ "$1" == 'RQ4' ]
then
echo "Running experiment for RQ4"
java -Xmx16G -jar RQ4Runner-jar-with-dependencies.jar single-experiment.properties
elif [ "$1" == 'RQ5' ]
then
echo "Running experiment for RQ5"
java -Xmx16G -jar RQ5Runner-jar-with-dependencies.jar single-experiment.properties $2
elif [ "$1" == 'validate' ]
then
echo "Running a (hopefully) short validation. This might take up to one hour."
java -Xmx16G -jar RQ1Runner-jar-with-dependencies.jar quick-validation.properties
java -Xmx16G -jar RQ2Runner-jar-with-dependencies.jar quick-validation.properties
java -Xmx16G -jar RQ3Runner-jar-with-dependencies.jar quick-validation.properties 1
java -Xmx16G -jar RQ3Runner-jar-with-dependencies.jar quick-validation.properties 2
java -Xmx16G -jar RQ3Runner-jar-with-dependencies.jar quick-validation.properties 3
java -Xmx16G -jar RQ4Runner-jar-with-dependencies.jar quick-validation.properties
java -Xmx16G -jar RQ5Runner-jar-with-dependencies.jar quick-validation.properties 1
java -Xmx16G -jar RQ5Runner-jar-with-dependencies.jar quick-validation.properties 2
java -Xmx16G -jar RQ5Runner-jar-with-dependencies.jar quick-validation.properties 3
echo "Running result evaluation"
cd result_analysis_python || exit
python3 evaluation.py
else
echo "Either fully run a specific experiment one time (RQ1|RQ2|RQ3|RQ4|RQ5), run all experiments (run), evaluate the results (evaluate), or a do quick setup validation (validate)."
echo "-- Bash Examples --"
echo "Run RQ1: './experiments.sh RQ1'"
echo "Run RQ2: './experiments.sh RQ2'"
echo "Evaluate all gathered results: './experiments.sh evaluate'"
echo "Validate the setup: './experiments.sh validate'"
fi
fi