From: Razvan Deaconescu Date: Tue, 17 Aug 2010 18:52:51 +0000 (+0300) Subject: TestSpecs/gen: add first draft of R script generation script X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=a31d8a361b89d35c672449879972252d4f7dd477;p=p2p-testing-infrastructure.git TestSpecs/gen: add first draft of R script generation script --- diff --git a/TestSpecs/gen/rgen b/TestSpecs/gen/rgen new file mode 100755 index 0000000..4f4adfb --- /dev/null +++ b/TestSpecs/gen/rgen @@ -0,0 +1,114 @@ +#!/bin/bash + +# +# Generate R script for plot processing from campaign and scenario +# configuration file +# + +if test $# -ne 2; then + echo "Usage: $0 campaign-config-file scenario-config-file" 1>&2 + exit 1 +fi + +campaign_file=$1 +scenario_file=$2 + +campaign_name=${campaign_file/%.cfg} +scenario_name=${scenario_file/%.cfg} + +cat <