Skip to content

Commit a639a62

Browse files
committed
perf tools: Speed up build-tests by reducing the number of builds tested
The 'tools/perf/test/make' makefile has in its default, 'all' target builds that will pollute the source code directory, i.e. that will not use O= variable. The 'build-test' should be run as often as possible, preferrably after each non strictly non-code commit, so speed it up by selecting just the O= targets. Furthermore it tests both the Makefile.perf file, that is normally driven by the main Makefile, and the Makefile, reduce the time in half by having just MK=Makefile, the most usual, tested by 'build-test'. Please run: make -C tools/perf -f tests/make from time to time for testing also the in-place build tests. 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]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 79191c8 commit a639a62

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tools/perf/Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,17 @@ clean:
7575
$(make)
7676

7777
#
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+
# it also uses only the tests/make targets that don't pollute the source
80+
# repository, i.e. that uses O= or builds the tarpkg outside the source
81+
# repo directories.
82+
#
83+
# For a full test, use:
84+
#
85+
# make -C tools/perf -f tests/make
7986
#
8087
build-test:
81-
@$(MAKE) SHUF=1 -f tests/make REUSE_FEATURES_DUMP=1 --no-print-directory
88+
@$(MAKE) SHUF=1 -f tests/make REUSE_FEATURES_DUMP=1 MK=Makefile --no-print-directory tarpkg out
8289

8390
#
8491
# All other targets get passed through:

0 commit comments

Comments
 (0)