X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/c0a35285e53870b4f8f0be9857debc39e61f6ba2..c1cbfced478eee0bb6cc64eeb409de67e2366bf8:/Experimentations/run-all diff --git a/Experimentations/run-all b/Experimentations/run-all index 9d43542..95d70b1 100755 --- a/Experimentations/run-all +++ b/Experimentations/run-all @@ -70,7 +70,6 @@ variable_check DEADLINE : ${LOBA:=$PWD/loba} COMMON_OPTS=( - --cfg=contexts/factory:raw "${MORE_ARGS[@]}" ) @@ -100,9 +99,9 @@ for plat in "${PLATFORMS[@]}"; do plat_output="$RESULTS/plat_$tmp" for topo in "${TOPOLOGIES[@]}"; do topo_output="$plat_output/topo_$topo" + [ $debug = 0 ] && mkdir -p "$topo_output" for algo in "${ALGORITHMS[@]}"; do algo_output="$topo_output/algo_$algo" - [ $debug = 0 ] && mkdir -p "$algo_output" args=( -T"$topo" -a"$algo" @@ -111,11 +110,16 @@ for plat in "${PLATFORMS[@]}"; do -t"$DEADLINE" "$plat" ) - for bk in "" "-b"; do - tmp=$(outfile "loba" $bk "${args[@]}") - out="$algo_output/$tmp.out" + for bk in "plain" "bookkeeping"; do + cmd=( "$LOBA" "${COMMON_OPTS[@]}" ) + case "$bk" in + "plain") : ;; + "bookkeeping") cmd+=( "-b" ) ;; + *) die "internal error (bk = \"$bk\")" ;; + esac + out="${algo_output}_${bk}.out" outf="$out$outsuffix" - cmd=( "$LOBA" "${COMMON_OPTS[@]}" $bk "${args[@]}" ) + cmd+=( "${args[@]}" ) log "Run: ${cmd[@]}"$'\n'"... &> $outf" if [ $overwrite = 0 -a -e "$outf" ]; then log "already run !"