]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - gw-tests/Makefile
gethtml: Add load dimenstion
[can-benchmark.git] / gw-tests / Makefile
1 T=$(filter-out lib.sh,$(wildcard *.sh))
2
3 .PHONY: $(T:%=run-%)
4
5 all: $(T:%=run-%) html
6         @echo "Run 'make plot' to generate graphs"
7
8 TEST_FLAGS = -P -t all
9
10 $(T:%=run-%):run-%:
11         ./$* $(TEST_FLAGS)
12
13 .PHONY: plot plotall
14
15 PLOT_SCRIPTS=$(shell find results -name plot.sh)
16
17 define plot_template
18 plot: $1/thumb
19 $1/thumb: $1/plot.sh $(notdir $1).sh $(wildcard $1/*.txt)
20         $1/plot.sh -X
21 endef
22
23 define plotall_template
24 plotall: plot-$1
25 .PHONY: plot-$1
26 plot-$1:
27         $1/plot.sh -X
28 endef
29
30 $(foreach result_dir,$(PLOT_SCRIPTS:%/plot.sh=%),$(eval $(call plot_template,$(result_dir))))
31 $(foreach result_dir,$(PLOT_SCRIPTS:%/plot.sh=%),$(eval $(call plotall_template,$(result_dir))))
32
33 .PHONY: html
34 html:
35         ./genhtml/genhtml.py results