Permalink
Browse files

Adding a virtual mutation analysis technique that includes generation…

… of mutant-level results
  • Loading branch information...
Chris Wright
Chris Wright committed Dec 9, 2015
1 parent f9cab72 commit c09ffff8facf9a443658abc89825f895c829a20e
View
@@ -0,0 +1,36 @@
#!/bin/bash
CLASSPATH='lib/*:build/'
VIRTCLASS='org.schemaanalyst.mutation.analysis.executor.MutationAnalysisVirtualWithTiming'
DATAGENERATOR='avsDefaults'
PIPELINE='AllOperatorsNormalisedWithRemovers'
while getopts s:c:r:b: option
do
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
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
done
View
@@ -3,6 +3,7 @@
CLASSPATH='lib/*:build/'
VIRTCLASS='org.schemaanalyst.mutation.analysis.executor.MutationAnalysisVirtual'
DATAGENERATOR='avsDefaults'
PIPELINE='AllOperatorsNormalisedWithRemovers'
while getopts s:c:r:b: option
do
@@ -28,7 +29,7 @@ for (( x=1; x<=$REPEATS; x++ )) do
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
java -cp $CLASSPATH $VIRTCLASS parsedcasestudy.$s --criterion=$c --randomseed=$SEED --dataGenerator=$DATAGENERATOR --mutationPipeline=$PIPELINE
done
done
done
Oops, something went wrong.

0 comments on commit c09ffff

Please sign in to comment.