diff options
author | Jiri Olsa <jolsa@redhat.com> | 2013-07-22 08:43:30 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-07-22 14:35:03 -0400 |
commit | 0659e66981ab137c11a746899672c886e1973a7b (patch) | |
tree | f8a1c91e33d2010723161fde5600e010a1d44696 /tools | |
parent | 575bf1d04e908469d26da424b52fc1b12a1db9d8 (diff) |
perf tests: Run ctags/cscope make tests only with needed binaries
Running tags and cscope make tests only if the 'ctags' and 'cscope'
binaries are installed, so we don't have false alarm test failures.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1374497014-2817-2-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/tests/make | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/perf/tests/make b/tools/perf/tests/make index c441a2875128..d1efef9c7576 100644 --- a/tools/perf/tests/make +++ b/tools/perf/tests/make | |||
@@ -1,6 +1,8 @@ | |||
1 | PERF := . | 1 | PERF := . |
2 | MK := Makefile | 2 | MK := Makefile |
3 | 3 | ||
4 | has = $(shell which $1 2>/dev/null) | ||
5 | |||
4 | # standard single make variable specified | 6 | # standard single make variable specified |
5 | make_clean_all := clean all | 7 | make_clean_all := clean all |
6 | make_python_perf_so := python/perf.so | 8 | make_python_perf_so := python/perf.so |
@@ -50,14 +52,19 @@ run += make_no_backtrace | |||
50 | run += make_no_libnuma | 52 | run += make_no_libnuma |
51 | run += make_no_libaudit | 53 | run += make_no_libaudit |
52 | run += make_no_libbionic | 54 | run += make_no_libbionic |
53 | run += make_tags | ||
54 | run += make_cscope | ||
55 | run += make_help | 55 | run += make_help |
56 | run += make_doc | 56 | run += make_doc |
57 | run += make_perf_o | 57 | run += make_perf_o |
58 | run += make_util_map_o | 58 | run += make_util_map_o |
59 | run += make_minimal | 59 | run += make_minimal |
60 | 60 | ||
61 | ifneq ($(call has,ctags),) | ||
62 | run += make_tags | ||
63 | endif | ||
64 | ifneq ($(call has,cscope),) | ||
65 | run += make_cscope | ||
66 | endif | ||
67 | |||
61 | # $(run_O) contains same portion of $(run) tests with '_O' attached | 68 | # $(run_O) contains same portion of $(run) tests with '_O' attached |
62 | # to distinguish O=... tests | 69 | # to distinguish O=... tests |
63 | run_O := $(addsuffix _O,$(run)) | 70 | run_O := $(addsuffix _O,$(run)) |