aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2015-11-04 14:25:32 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-11-05 09:39:54 -0500
commit98916392a0bdfd71668b711fd93915791f45df02 (patch)
tree749303b493b5c11bac787daa4939dbcb4982429b /tools
parentcb8382e05817a8104ea0edb63b8e37b8fbecd14c (diff)
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 <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-ey7461i9q4k8u0987j8guun6@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/Makefile2
-rw-r--r--tools/perf/tests/make5
2 files changed, 6 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 480546d5f13b..dcd9a70c7193 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -78,7 +78,7 @@ clean:
78# The build-test target is not really parallel, don't print the jobs info: 78# The build-test target is not really parallel, don't print the jobs info:
79# 79#
80build-test: 80build-test:
81 @$(MAKE) -f tests/make --no-print-directory 81 @$(MAKE) SHUF=1 -f tests/make --no-print-directory
82 82
83# 83#
84# All other targets get passed through: 84# All other targets get passed through:
diff --git a/tools/perf/tests/make b/tools/perf/tests/make
index 2cbd0c6901e3..8ea3dffc5065 100644
--- a/tools/perf/tests/make
+++ b/tools/perf/tests/make
@@ -221,6 +221,11 @@ test_O = $(if $(test_$1),$(test_$1),$(test_default_O))
221 221
222all: 222all:
223 223
224ifdef SHUF
225run := $(shell shuf -e $(run))
226run_O := $(shell shuf -e $(run_O))
227endif
228
224ifdef DEBUG 229ifdef DEBUG
225d := $(info run $(run)) 230d := $(info run $(run))
226d := $(info run_O $(run_O)) 231d := $(info run_O $(run_O))