From 9697f93d664e3bce7ec34e334a9488ccaa3ff685 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Fri, 23 Sep 2011 16:27:40 +0200 Subject: [PATCH 1/1] In make_params, extract common options from template file. --- Experimentations/ag_parameters | 2 +- Experimentations/make_params | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Experimentations/ag_parameters b/Experimentations/ag_parameters index de7856f..9906b5e 100644 --- a/Experimentations/ag_parameters +++ b/Experimentations/ag_parameters @@ -39,7 +39,7 @@ LOAD=-1000 DEADLINE=10000 # optional: additional arguments for loba (default: empty) -#MORE_ARGS=( -r 42 ) +MORE_ARGS=( -x4 -m1e-4 -M10 ) # optional: path to binary (default: ./loba) #LOBA=./loba diff --git a/Experimentations/make_params b/Experimentations/make_params index d2098c9..dd7e201 100755 --- a/Experimentations/make_params +++ b/Experimentations/make_params @@ -16,10 +16,13 @@ die() { test -r "$TEMPLATE" || die "file not found: $TEMPLATE" +source "$TEMPLATE" || die "cannot read file: $TEMPLATE" +declare -a common_opts=( "${MORE_ARGS[@]}" ) + for flavour in "I" "R"; do for distrib in "1" "N"; do for ratio in "1000:1" "100:1" "10:1" "1:1" "1:10" "1:100" "1:1000"; do - declare -a opts=( -x4 -m1e-4 -M10 ) + declare -a opts=( "${common_opts[@]}" ) case "$flavour" in "I") opts+=( -Z ) ;; "R") : ;; -- 2.39.5