]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - gw-tests/lib.sh
Allow rerunning only the necessary experiments
[can-benchmark.git] / gw-tests / lib.sh
index 8cfcf265094c0f493d7dc78ab8782b33a34edadd..75fb899c4c0d34910d59ef0157a63ceb98639a83 100644 (file)
@@ -25,6 +25,7 @@ while [ $# -gt 0 ]; do
                *) error "Unknown load specification: $2";;
            esac;
            shift 2;;
+       -u) OPT_UPDATE=1; shift;;
     esac
 done
 
@@ -112,6 +113,7 @@ kill_load() {
 }
 
 _measure() {
+    if [[ "$OPT_UPDATE" && -f plot.sh && ( plot.sh -nt $test.sh ) ]]; then echo "skiping: up-to-date"; return; fi
     # Remove data from the last measurement
     rm -rf *
     # Kill load generators left possibly from the past runs