Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 42 lines (35 sloc) 1014 Bytes
#!/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