diff options
author | Jiri Olsa <jolsa@redhat.com> | 2013-07-22 08:43:31 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-07-22 14:36:19 -0400 |
commit | 8ba7cdea321d4d5bb53ac210f4e0a4bca5b0dba5 (patch) | |
tree | a0f4d1958760132fe34bcd7c920066e9f6017a22 /tools/perf | |
parent | 0659e66981ab137c11a746899672c886e1973a7b (diff) |
perf tests: Rename TMP to TMP_O tests/make variable
Renaming TMP to TMP_O tests/make variable to make a name space for other
temp variables.
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: Ingo Molnar <mingo@elte.hu>
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-3-git-send-email-jolsa@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/tests/make | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/tests/make b/tools/perf/tests/make index d1efef9c7576..dbbb62c0d0f3 100644 --- a/tools/perf/tests/make +++ b/tools/perf/tests/make | |||
@@ -102,7 +102,7 @@ test_make_util_map_o_O := true | |||
102 | test_default = test -x $(PERF)/perf | 102 | test_default = test -x $(PERF)/perf |
103 | test = $(if $(test_$1),$(test_$1),$(test_default)) | 103 | test = $(if $(test_$1),$(test_$1),$(test_default)) |
104 | 104 | ||
105 | test_default_O = test -x $$TMP/perf | 105 | test_default_O = test -x $$TMP_O/perf |
106 | test_O = $(if $(test_$1),$(test_$1),$(test_default_O)) | 106 | test_O = $(if $(test_$1),$(test_$1),$(test_default_O)) |
107 | 107 | ||
108 | all: | 108 | all: |
@@ -127,14 +127,14 @@ $(run): | |||
127 | 127 | ||
128 | $(run_O): | 128 | $(run_O): |
129 | $(call clean) | 129 | $(call clean) |
130 | @TMP=$$(mktemp -d); \ | 130 | @TMP_O=$$(mktemp -d); \ |
131 | cmd="cd $(PERF) && make -f $(MK) $($(patsubst %_O,%,$@)) O=$$TMP"; \ | 131 | cmd="cd $(PERF) && make -f $(MK) $($(patsubst %_O,%,$@)) O=$$TMP_O"; \ |
132 | echo "- $@: $$cmd" && echo $$cmd > $@ && \ | 132 | echo "- $@: $$cmd" && echo $$cmd > $@ && \ |
133 | ( eval $$cmd ) >> $@ 2>&1 && \ | 133 | ( eval $$cmd ) >> $@ 2>&1 && \ |
134 | echo " test: $(call test_O,$@)"; \ | 134 | echo " test: $(call test_O,$@)"; \ |
135 | $(call test_O,$@) && \ | 135 | $(call test_O,$@) && \ |
136 | rm -f $@ && \ | 136 | rm -f $@ && \ |
137 | rm -rf $$TMP | 137 | rm -rf $$TMP_O |
138 | 138 | ||
139 | all: $(run) $(run_O) | 139 | all: $(run) $(run_O) |
140 | @echo OK | 140 | @echo OK |