Skip to content

Commit 9891639

Browse files
committed
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>
1 parent cb8382e commit 9891639

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎tools/perf/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ clean:
7878
# The build-test target is not really parallel, don't print the jobs info:
7979
#
8080
build-test:
81-
@$(MAKE) -f tests/make --no-print-directory
81+
@$(MAKE) SHUF=1 -f tests/make --no-print-directory
8282

8383
#
8484
# All other targets get passed through:

‎tools/perf/tests/make‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ test_O = $(if $(test_$1),$(test_$1),$(test_default_O))
221221

222222
all:
223223

224+
ifdef SHUF
225+
run := $(shell shuf -e $(run))
226+
run_O := $(shell shuf -e $(run_O))
227+
endif
228+
224229
ifdef DEBUG
225230
d := $(info run $(run))
226231
d := $(info run_O $(run_O))

0 commit comments

Comments
 (0)