From: Michal Sojka Date: Mon, 31 Aug 2009 17:56:04 +0000 (+0200) Subject: Do not plot graphs by default X-Git-Tag: fix-allnoconfig~360 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/commitdiff_plain/ff20bc9c7ba5c9c21ea1d09bbb41fadf3f7a72c2?ds=sidebyside Do not plot graphs by default Added make plotall to graph all plots for all kernels --- diff --git a/tests/Makefile b/tests/Makefile index 16d522a..f37d4b7 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -3,8 +3,9 @@ T=$(filter-out _lib.sh,$(wildcard *.sh)) .PHONY: $(T) all: $(T) html + @echo "Run 'make plot' to generate graphs" -TEST_FLAGS = -X +TEST_FLAGS = -P $(T):%: ./$@ $(TEST_FLAGS) @@ -13,6 +14,9 @@ $(T):%: plot: $(MAKE) TEST_FLAGS="-p -X" +plotall: + for i in results/by-kern/*; do $(MAKE) plot KVERS=$${i#results/by-kern/}; done + .PHONY: html html: ./genhtml.py results diff --git a/tests/_lib.sh b/tests/_lib.sh index 6100f7e..bb3a60e 100644 --- a/tests/_lib.sh +++ b/tests/_lib.sh @@ -1,6 +1,7 @@ while [ $# -gt 0 ]; do case "$1" in + -P) OPT_PLOT_DISABLE=1; shift;; -p) OPT_PLOT_ONLY=1; shift;; -X|--no-x11-plot) OPT_NO_X11=1; shift;; esac @@ -99,6 +100,7 @@ kvers() { -e 's/ *$//'|tr -s ' ' '_') v=$(uname -r) [ -n "$cmdline" ] && v="$v:$cmdline" + [ -n "$KVERS" ] && v=$KVERS echo $v } @@ -156,9 +158,13 @@ go() { if [ ! -n "$OPT_PLOT_ONLY" ]; then cpufreq-set -f ${clk}MHz run_tests - cpufreq-set -f 2400MHz + cpufreq-set -f ${mhz}MHz + else + unset OPT_PLOT_DISABLE + fi + if [ ! -n "$OPT_PLOT_DISABLE" ]; then + plot fi - plot popd set +x done