-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrandom-runner.sh
executable file
·32 lines (23 loc) · 1.88 KB
/
random-runner.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
source ./config.sh
compileSource
index=0
count=${#experiments[@]}
ARRAY=()
rm -rf random-runner-results/
mkdir random-runner-results
while [ "$index" -lt "$count" ]; do
echo -e "Starting experiment: ${experiments[$index]}"
for k in "${testTypes[@]}"; do
cd ${directories[$index]}
#java -cp ${experimentsCP[$index]} edu.washington.cs.dt.impact.Main.InstrumentationMain -inputDir bin
#echo 'Generating sootTestOutput on old subject'
#java -cp ${sootCP[$index]} edu.washington.cs.dt.main.ImpactMain -inputTests ${experiments[$index]}-$k-order
cd ..
# Run this only with orig or auto testType and not both. Since -nIterations is not testType aware.
#java -Xms1g -Xmx2g -cp ${experimentsCPWithDirectory[$index]} edu.washington.cs.dt.impact.Main.RandomizeRunner -technique prioritization -coverage statement -order original -resolveDependences -origOrder ${directories[$index]}/${experiments[$index]}-$k-order -testInputDir ${directories[$index]}/sootTestOutput-$k -filesToDelete ${directories[$index]}/${experiments[$index]}-env-files -randomTimes $randomTimes -project ${experiments[$index]} -testType $k -outputDir ./random-runner-results -nIterations ${doubleNumOfAutoTests[$index]}
# Amend an existing precomputed dependences
java -Xms1g -Xmx2g -cp ${experimentsCPWithDirectory[$index]} edu.washington.cs.dt.impact.Main.RandomizeRunner -technique prioritization -coverage statement -order original -resolveDependences -origOrder ${directories[$index]}/${experiments[$index]}-$k-order -testInputDir ${directories[$index]}/sootTestOutput-$k -filesToDelete ${directories[$index]}/${experiments[$index]}-env-files -randomTimes $randomTimes -project ${experiments[$index]} -testType $k -outputDir ./random-runner-results -nIterations ${numOfAutoTests[$index]} -dependentTestFile ./
clearSelectionTemp ${directories[$index]} ${newDirectories[$index]}
done
let "index++"
done