aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/tests/make8
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
102test_default = test -x $(PERF)/perf 102test_default = test -x $(PERF)/perf
103test = $(if $(test_$1),$(test_$1),$(test_default)) 103test = $(if $(test_$1),$(test_$1),$(test_default))
104 104
105test_default_O = test -x $$TMP/perf 105test_default_O = test -x $$TMP_O/perf
106test_O = $(if $(test_$1),$(test_$1),$(test_default_O)) 106test_O = $(if $(test_$1),$(test_$1),$(test_default_O))
107 107
108all: 108all:
@@ -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
139all: $(run) $(run_O) 139all: $(run) $(run_O)
140 @echo OK 140 @echo OK