Permalink
Browse files

adding script to gather mutant timings for a list of schemas and DBMS…

…s over a set number of trials
  • Loading branch information...
Colton McCurdy
Colton McCurdy committed Nov 14, 2016
1 parent e405686 commit 32eb4468431828e85bd6f69c50b3348018048fe7
Showing with 42 additions and 0 deletions.
  1. +42 −0 run-mutant-timing.sh
View
@@ -0,0 +1,42 @@
#!/bin/bash
# Arguments (: separated)
# -s SCHEMAS
# -r REPEATS
# -d DBMSS
CLASSPATH='build/classes/main:lib/*:build/lib/*:.'
CLASS='org.schemaanalyst.util.Go'
TECHNIQUE='mutantTiming'
while getopts s:r:d: option
do
case "${option}" in
s) SCHEMAS=${OPTARG};;
r) REPEATS=${OPTARG};;
d) DBMSS=${OPTARG};;
esac
done
if [ -z $SCHEMAS ] || [ -z $REPEATS ] || [ -z $DBMSS ]; then
echo "Experiment failed - requires -s SCHEMAS -r REPEATS -d DBMSS"
exit 1
fi
IFS=':' read -ra SCHEMA <<< "$SCHEMAS"
IFS=':' read -ra DBMS <<< "$DBMSS"
for d in "${DBMS[@]}"; do
if [ -f config/database.properties.local ]; then
scripts/updateproperties.sh -f config/database.properties.local -k dbms -v $d
else
scripts/updateproperties.sh -f config/database.properties -k dbms -v $d
fi
for (( x=1; x<=$REPEATS; x++ )) do
for s in "${SCHEMA[@]}"; do
echo "$d,$x,$s"
java -cp $CLASSPATH $CLASS --schema parsedcasestudy.$s --dbms $d mutation --technique=$TECHNIQUE
done
done
done

0 comments on commit 32eb446

Please sign in to comment.