Permalink
Browse files

Modified paths of run-virtual-timing.sh script

  • Loading branch information...
philmcminn committed Nov 22, 2016
1 parent 33ce35b commit 7586f44ed0fa8744edfcb5f29bb1ddd63f4c349e
Showing with 17 additions and 17 deletions.
  1. +17 −17 run-virtual-timing.sh
View
@@ -1,36 +1,36 @@
#!/bin/bash
CLASSPATH='lib/*:build/'
CLASSPATH='build/lib/*:build/classes/main/'
VIRTCLASS='org.schemaanalyst.mutation.analysis.executor.MutationAnalysisVirtualWithTiming'
DATAGENERATOR='avsDefaults'
PIPELINE='AllOperatorsNoFKANormalisedWithClassifiers'
while getopts s:c:r:b: option
do
case "${option}"
in
s) SCHEMAS=${OPTARG};;
c) CRITERION=${OPTARG};;
r) REPEATS=${OPTARG};;
b) BEGINNING=${OPTARG};;
esac
case "${option}"
in
s) SCHEMAS=${OPTARG};;
c) CRITERION=${OPTARG};;
r) REPEATS=${OPTARG};;
b) BEGINNING=${OPTARG};;
esac
done
if [ -z $SCHEMAS ] || [ -z $CRITERION ] || [ -z $REPEATS ] ; then
echo "Experiment failed - requires -s SCHEMAS -c CRITERION -r REPEATS -b BEGINNING_SEED"
exit 1
echo "Experiment failed - requires -s SCHEMAS -c CRITERION -r REPEATS -b BEGINNING_SEED"
exit 1
fi
IFS=':' read -ra CRITERIA <<< "$CRITERION"
IFS=':' read -ra SCHEMA <<< "$SCHEMAS"
for (( x=1; x<=$REPEATS; x++ )) do
SEED=$(($BEGINNING+$x-1))
for s in "${SCHEMA[@]}"; do
for c in "${CRITERIA[@]}"; do
echo "$x,virtual,$s,$c,false"
java -cp $CLASSPATH $VIRTCLASS parsedcasestudy.$s --criterion=$c --randomseed=$SEED --dataGenerator=$DATAGENERATOR --mutationPipeline=$PIPELINE
done
done
SEED=$(($BEGINNING+$x-1))
for s in "${SCHEMA[@]}"; do
for c in "${CRITERIA[@]}"; do
echo "$x,virtual,$s,$c,false"
java -cp $CLASSPATH $VIRTCLASS parsedcasestudy.$s --criterion=$c --randomseed=$SEED --dataGenerator=$DATAGENERATOR --mutationPipeline=$PIPELINE
done
done
done

0 comments on commit 7586f44

Please sign in to comment.