X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/9cfc89cf74db664cd813ea5060bd99f12ae99081..21d25d64f7e7f048b2d2a0313ef9ab83cdca942b:/gw-tests/lib.sh diff --git a/gw-tests/lib.sh b/gw-tests/lib.sh index 8cfcf26..75fb899 100644 --- a/gw-tests/lib.sh +++ b/gw-tests/lib.sh @@ -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