X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/46501dba4480f0dbb96b994246442c11fdd6e58e..c36e3d6a2a7c2a96eb98cd1db64a11f508a03677:/gw-tests/Makefile diff --git a/gw-tests/Makefile b/gw-tests/Makefile index d496337..520bc6c 100644 --- a/gw-tests/Makefile +++ b/gw-tests/Makefile @@ -1,19 +1,38 @@ -T=$(filter-out lib.sh,$(wildcard *.sh)) +T:=$(filter-out lib.sh,$(wildcard *.sh)) -.PHONY: $(T) +# Run slow test at the end +T:=$(filter-out filter%,$(T)) $(filter filter%,$(T)) -all: $(T) html +.PHONY: $(T:%=run-%) + +all: $(T:%=run-%) html @echo "Run 'make plot' to generate graphs" -TEST_FLAGS = -P +TEST_FLAGS = -P -t all -l all + +$(T:%=run-%):run-%: + ./$* $(TEST_FLAGS) + +.PHONY: plot plotall + +PLOT_SCRIPTS=$(shell find results -name plot.sh) + +define plot_template +plot: $1/graph.png +$1/graph.png: $1/plot.sh $(notdir $1).sh lib.sh $(wildcard $1/*.txt) + $1/plot.sh -X +endef -$(T):%: - ./$@ $(TEST_FLAGS) +define plotall_template +plotall: plot-$1 +.PHONY: plot-$1 +plot-$1: + $1/plot.sh -X +endef -.PHONY: plot -plot: - $(MAKE) TEST_FLAGS="-p -X" +$(foreach result_dir,$(PLOT_SCRIPTS:%/plot.sh=%),$(eval $(call plot_template,$(result_dir)))) +$(foreach result_dir,$(PLOT_SCRIPTS:%/plot.sh=%),$(eval $(call plotall_template,$(result_dir)))) .PHONY: html html: - ./genhtml.py results + ./genhtml/genhtml.py results