perf tools: Allow shuffling the build tests
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 98916392a0bdfd71668b711fd93915791f45df02 Gitweb: http://git.kernel.org/tip/98916392a0bdfd71668b711fd93915791f45df02 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Wed, 4 Nov 2015 16:25:32 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Thu, 5 Nov 2015 11:39:54 -0300
perf tools: Allow shuffling the build tests
Those tests take a long time and sometimes we stop it, so allow randomly shuffling the tests so that we have a better chance of running more of them in partial 'make build-test' runs.
Using it just on the 'build-test' target, i.e.:
make -C tools/perf build-test
Is equivalent to:
make SHUF=1 -C tools/perf -f tests/make
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/Makefile | 2 +- tools/perf/tests/make | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-)
tools/perf/Makefile +1 -1
@@ -78,7 +78,7 @@ clean: # The build-test target is not really parallel, don't print the jobs info: # build-test: - @$(MAKE) -f tests/make --no-print-directory + @$(MAKE) SHUF=1 -f tests/make --no-print-directory # # All other targets get passed through:
tools/perf/tests/make +5 -0
@@ -221,6 +221,11 @@ test_O = $(if $(test_$1),$(test_$1),$(test_default_O)) all: +ifdef SHUF +run := $(shell shuf -e $(run)) +run_O := $(shell shuf -e $(run_O)) +endif + ifdef DEBUG d := $(info run $(run)) d := $(info run_O $(run_O))