]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - gw-tests/Makefile
Merge branch 'master' of ssh://rtime.felk.cvut.cz/can-benchmark
[can-benchmark.git] / gw-tests / Makefile
1 T:=$(filter-out lib.sh,$(wildcard *.sh))
2
3 # Run slow test at the end
4 T:=$(filter-out filter%,$(T)) $(filter filter%,$(T))
5
6 .PHONY: $(T:%=run-%)
7
8 all: $(T:%=run-%)
9         @echo "Run 'make plot' to generate graphs"
10
11 TEST_FLAGS = -P -t all -l all $(if $(UPDATE),-u)
12
13 $(T:%=run-%):run-%:
14         ./$* $(TEST_FLAGS)
15
16 .PHONY: plot plotall
17
18 PLOT_SCRIPTS=$(shell find results/ -name plot.sh)
19
20 define plot_template
21 plot: $1/graph.png
22 $1/graph.png: $1/plot.sh $(notdir $1).sh lib.sh $(wildcard $1/*.txt)
23         $1/plot.sh -X
24 endef
25
26 define plotall_template
27 plotall: plot-$1
28 .PHONY: plot-$1
29 plot-$1:
30         $1/plot.sh -X
31 endef
32
33 $(foreach result_dir,$(PLOT_SCRIPTS:%/plot.sh=%),$(eval $(call plot_template,$(result_dir))))
34 $(foreach result_dir,$(PLOT_SCRIPTS:%/plot.sh=%),$(eval $(call plotall_template,$(result_dir))))
35
36 .PHONY: RTEMS
37 RTEMS:
38         ./rtems_bench.py
39
40 .PHONY: html
41 html:
42         ./genhtml/genhtml.py results
43
44 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
45
46 .PHONY: allkern $(KERNELS:%=kernel-%)
47 allkern: $(KERNELS:%=kernel-%)
48
49 $(KERNELS:%=kernel-%): kernel-%: 
50         ln -sf uImage-$* /srv/tftp/ryu/uImage
51         dtrrts /dev/ttyUSB0 1 1
52         sleep 30
53         $(MAKE)