Permalink
Browse files

Adding script for running analysepipeline

  • Loading branch information...
Chris Wright
Chris Wright committed Dec 7, 2015
1 parent b365e79 commit e4e6f40d7493bbe5d38547694e52f5d9bdbc546b
Showing with 47 additions and 0 deletions.
  1. +47 −0 run-analysepipeline.sh
View
@@ -0,0 +1,47 @@
#!/bin/bash
# Arguments (: separated)
# -s SCHEMAS
# -r REPEATS
# -d DBMSS
# -p PIPELINES
CLASSPATH='lib/*:build/'
CLASS='org.schemaanalyst.mutation.analysis.util.AnalysePipeline'
while getopts s:r:d:p: option
do
case "${option}"
in
s) SCHEMAS=${OPTARG};;
r) REPEATS=${OPTARG};;
d) DBMSS=${OPTARG};;
p) PIPELINES=${OPTARG};;
esac
done
if [ -z $SCHEMAS ] || [ -z $REPEATS ] || [ -z $DBMSS ] || [ -z $PIPELINES ]; then
echo "Experiment failed - requires -s SCHEMAS -r REPEATS -d DBMSS -p PIPELINES"
exit 1
fi
IFS=':' read -ra SCHEMA <<< "$SCHEMAS"
IFS=':' read -ra DBMS <<< "$DBMSS"
IFS=':' read -ra PIPELINE <<< "$PIPELINES"
for p in "${PIPELINE[@]}"; do
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 parsedcasestudy.$s $d --mutationPipeline=$p
done
done
done
done

0 comments on commit e4e6f40

Please sign in to comment.