]> AND Private Git Repository - loba.git/blobdiff - Experimentations/run-all
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
run-all: improve summary during run.
[loba.git] / Experimentations / run-all
index bf282cc6482d5868b5ebf100a6eb1ec2bf20beff..5584528a48d3f5cef2a4d6438e57f3a2977b324a 100755 (executable)
@@ -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