Skip to content

Commit 2da789c

Browse files
gctuckershuahkh
authored andcommitted
selftests: amd-pstate: fix TEST_FILES
Bring back the Python scripts that were initially added with TEST_GEN_FILES but now with TEST_FILES to avoid having them deleted when doing a clean. Also fix the way the architecture is being determined as they should also be installed when ARCH=x86_64 is provided explicitly. Then also append extra files to TEST_FILES and TEST_PROGS with += so they don't get discarded. Fixes: ba2d788 ("selftests: amd-pstate: Trigger tbench benchmark and test cpus") Fixes: a49fb72 ("selftests: amd-pstate: Don't delete source files via Makefile") Signed-off-by: Guillaume Tucker <[email protected]> Acked-by: Huang Rui <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent fe15c26 commit 2da789c

File tree

1 file changed

+9
-4
lines changed
  • tools/testing/selftests/amd-pstate

1 file changed

+9
-4
lines changed

tools/testing/selftests/amd-pstate/Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
# No binaries, but make sure arg-less "make" doesn't trigger "run_tests"
55
all:
66

7-
uname_M := $(shell uname -m 2>/dev/null || echo not)
8-
ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
7+
ARCH ?= $(shell uname -m 2>/dev/null || echo not)
8+
ARCH := $(shell echo $(ARCH) | sed -e s/i.86/x86/ -e s/x86_64/x86/)
99

10-
TEST_PROGS := run.sh
11-
TEST_FILES := basic.sh tbench.sh gitsource.sh
10+
ifeq (x86,$(ARCH))
11+
TEST_FILES += ../../../power/x86/amd_pstate_tracer/amd_pstate_trace.py
12+
TEST_FILES += ../../../power/x86/intel_pstate_tracer/intel_pstate_tracer.py
13+
endif
14+
15+
TEST_PROGS += run.sh
16+
TEST_FILES += basic.sh tbench.sh gitsource.sh
1217

1318
include ../lib.mk

0 commit comments

Comments
 (0)