From: Arnaud Giersch Date: Thu, 30 Jun 2011 16:02:53 +0000 (+0200) Subject: run-all: improve summary during run. X-Git-Tag: v0.1~40 X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/commitdiff_plain/bd0d55b6e8fb8c48072740d52c09af1f0b043f2f run-all: improve summary during run. --- diff --git a/Experimentations/run-all b/Experimentations/run-all index bf282cc..5584528 100755 --- a/Experimentations/run-all +++ b/Experimentations/run-all @@ -79,6 +79,12 @@ outfile() { echo "$*" | sed 's,[^ ]*/,,g;s/\.xml//;y/ /_/' } +summary() { + sed -n '\!^\[main/INFO\] ,----\[ Results \]!,${ + /send\|recv\|wall clock\|Simulation succeeded/d;p; + }' "$1" +} + for plat in "${PLATFORMS[@]}"; do tmp=$(basename "$plat" ".xml") plat_output="$RESULTS/plat_$tmp" @@ -102,7 +108,7 @@ for plat in "${PLATFORMS[@]}"; do log "Run: ${cmd[@]}"$'\n'"... &> $out" if [ $overwrite = 0 -a -e "$out" ]; then log "already run !" - tail -n4 "$out" + summary "$out" continue fi if [ $debug = 1 ]; then @@ -110,7 +116,7 @@ for plat in "${PLATFORMS[@]}"; do else echo "# ${cmd[@]}" > "$out" "${cmd[@]}" >> "$out" 2>&1 - tail -n4 "$out" + summary "$out" fi done done