X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-benchmark.git/blobdiff_plain/4e25bba0f22a675ba1950e2e41fe22dfd60073c9..bc30d749065d4d9296ad50791615e74cf084c890:/gw-tests/Makefile diff --git a/gw-tests/Makefile b/gw-tests/Makefile index 9819160..524ddd1 100644 --- a/gw-tests/Makefile +++ b/gw-tests/Makefile @@ -1,19 +1,49 @@ -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 $(if $(UPDATE),-u) + +$(T:%=run-%):run-%: + ./$* $(TEST_FLAGS) + +.PHONY: plot plotall + +PLOT_SCRIPTS=$(shell find results -name plot.sh) -$(T):%: - ./$@ $(TEST_FLAGS) +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 -.PHONY: plot -plot: - $(MAKE) TEST_FLAGS="-p -X" +define plotall_template +plotall: plot-$1 +.PHONY: plot-$1 +plot-$1: + $1/plot.sh -X +endef + +$(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/genhtml.py results + +KERNELS=2.6.33.7-00007-g9c0ff90 2.6.33.7-rt29-00004-g92487e4 2.6.36.2-00015-g4f1bc4e 3.0.4-00007-g1c8c373 3.0.4-rt14-00008-gb2052fd + +.PHONY: allkern $(KERNELS:%=kernel-%) +allkern: $(KERNELS:%=kernel-%) + +$(KERNELS:%=kernel-%): kernel-%: + ln -sf uImage-$* /srv/tftp/ryu/uImage + dtrrts /dev/ttyUSB0 1 1 + sleep 30 + $(MAKE)