Commit c563f882 authored by Erwan Bousse's avatar Erwan Bousse
Browse files

Brutal commit of windows adaptations

parent 8b0e385f
......@@ -2,15 +2,19 @@
DIR=`dirname $0`
BENCHTOOL="$DIR/../fr.inria.diverse.cloning.benchmark.tool.product/target/products/fr.inria.diverse.cloning.benchmark.tool.product/linux/gtk/x86_64/cloning-benchmark"
MMGENERATOR="$BENCHTOOL mmgen"
MATERIALGENERATOR="$BENCHTOOL matgen"
############### Must point to the folder of the evaluation tool
BENCHTOOLDIR="$DIR/../x86_64/"
###############
BENCHTOOL="$BENCHTOOLDIR/cloning-benchmark"
MMGENERATOR="$BENCHTOOL mmgen nopause"
MATERIALGENERATOR="$BENCHTOOL matgen nopause"
OUTPUTFOLDER=./benchmarktool-workingdir
for i in {1..10}
# We generate 10 bundles, each with 10 metamodels
# We have to proceed this way because unfortunately some memory leak issue forbids us to generate a bundle with 100 metamodels in a single row
for i in `seq 1 1 $1`
do
$MMGENERATOR --maxClasses 50 --maxProp 250 --maxMutProp 50 --nbMetamodels 10 --outputFolder=$OUTPUTFOLDER/$i
$MMGENERATOR --maxClasses 5 --maxProp 250 --maxMutProp 50 --nbMetamodels 10 --outputFolder=$OUTPUTFOLDER/$i
$MATERIALGENERATOR --metamodelsFolder=$OUTPUTFOLDER/$i --outputFile=$OUTPUTFOLDER/bundle$i.jar # --outputProjectFolder=./$i/generated-project
done
......@@ -2,13 +2,15 @@
DIR=`dirname $0`
BENCHTOOLDIR="$DIR/../fr.inria.diverse.cloning.benchmark.tool.product/target/products/fr.inria.diverse.cloning.benchmark.tool.product/linux/gtk/x86_64/"
BENCHTOOL="$BENCHTOOLDIR/cloning-benchmark"
TOOL="$BENCHTOOL run"
############### Must point to the folder of the evaluation tool
BENCHTOOLDIR="$DIR/../x86_64/"
###############
BENCHTOOL="$BENCHTOOLDIR/cloning-benchmark"
TOOL="$BENCHTOOL run nopause"
OUTPUTFOLDER=./benchmarktool-workingdir
# Parsing arguments
# Parsing arguments (osgi bundles) in order to generate an argument for the evaluation tool
BUNDLES=""
for arg in "$@"
do
......@@ -21,5 +23,5 @@ rm -rf "$BENCHTOOLDIR/configuration/org.eclipse.osgi"
$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 1 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal1.csv --dumpsFolder=/tmp2/cloningDumpsAll
#$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 10 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal10.csv --dumpsFolder=/tmp2/cloningDumpsAll
#$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 100 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal100.csv --dumpsFolder=/tmp2/cloningDumpsAll
$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 1000 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal1000.csv --dumpsFolder=/tmp2/cloningDumpsAll --keepDumps
$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 1000 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal1000.csv --dumpsFolder=/tmp2/cloningDumpsAll
#$TOOL --benchmarkMetamodels=$BUNDLES --nbClones 10000 --nbtries 5 --outputFile $OUTPUTFOLDER/resultsFinal10000.csv --dumpsFolder=/tmp2/cloningDumpsAll
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment