selftests: amd-pstate: fix TEST_FILES
authorGuillaume Tucker <guillaume.tucker@collabora.com>
Sat, 4 Feb 2023 13:34:54 +0000 (14:34 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 7 Mar 2023 00:03:20 +0000 (17:03 -0700)
commit2da789cda462bda93679f53ee38f9aa2309d47e8
tree63dbab0bebae21300ec6c4191fecdf626a4c50a3
parentfe15c26ee26efa11741a7b632e9f23b01aca4cc6
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: ba2d788aa873 ("selftests: amd-pstate: Trigger tbench benchmark and test cpus")
Fixes: a49fb7218ed8 ("selftests: amd-pstate: Don't delete source files via Makefile")
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/amd-pstate/Makefile