From: Michal Sojka Date: Fri, 23 Sep 2011 22:24:06 +0000 (+0200) Subject: Allow rerunning only the necessary experiments X-Git-Tag: fix-allnoconfig~176 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/21d25d64f7e7f048b2d2a0313ef9ab83cdca942b Allow rerunning only the necessary experiments i.e. those that were not run yet or that changed --- diff --git a/gw-tests/Makefile b/gw-tests/Makefile index 520bc6c..580d3ad 100644 --- a/gw-tests/Makefile +++ b/gw-tests/Makefile @@ -8,7 +8,7 @@ T:=$(filter-out filter%,$(T)) $(filter filter%,$(T)) all: $(T:%=run-%) html @echo "Run 'make plot' to generate graphs" -TEST_FLAGS = -P -t all -l all +TEST_FLAGS = -P -t all -l all $(if $(UPDATE),-u) $(T:%=run-%):run-%: ./$* $(TEST_FLAGS) 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