linux-stable/tools/testing/selftests/powerpc
Michael Ellerman 58b33e78a3 selftests/powerpc: Fix emit_tests to work with run_kselftest.sh
In order to use run_kselftest.sh the list of tests must be emitted to
populate kselftest-list.txt.

The powerpc Makefile is written to use EMIT_TESTS. But support for
EMIT_TESTS was dropped in commit d4e59a536f ("selftests: Use runner.sh
for emit targets"). Although prior to that commit a548de0fe8
("selftests: lib.mk: add test execute bit check to EMIT_TESTS") had
already broken run_kselftest.sh for powerpc due to the executable check
using the wrong path.

It can be fixed by replacing the EMIT_TESTS definitions with actual
emit_tests rules in the powerpc Makefiles. This makes run_kselftest.sh
able to run powerpc tests:

  $ cd linux
  $ export ARCH=powerpc
  $ export CROSS_COMPILE=powerpc64le-linux-gnu-
  $ make headers
  $ make -j -C tools/testing/selftests install
  $ grep -c "^powerpc" tools/testing/selftests/kselftest_install/kselftest-list.txt
  182

Fixes: d4e59a536f ("selftests: Use runner.sh for emit targets")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230921072623.828772-1-mpe@ellerman.id.au
2023-09-22 20:29:48 +10:00
..
alignment selftests/powerpc: Suggest memtrace instead of /dev/mem for ci memory 2021-04-08 21:17:44 +10:00
benchmarks powerpc/selftests: Use timersub() for gettimeofday() 2022-08-22 13:36:59 +10:00
cache_shape .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
copyloops powerpc: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-16 23:54:48 +10:00
dexcr selftests/powerpc/dexcr: Add DEXCR status utility lsdexcr 2023-06-19 17:36:28 +10:00
dscr selftests/powerpc/dscr: Restore timeout to DSCR selftests 2023-04-20 13:21:46 +10:00
eeh selftests/powerpc: Add VF recovery tests 2021-01-31 22:35:47 +11:00
include selftests/powerpc: add const qualification where possible 2023-08-18 17:03:15 +10:00
lib selftests/powerpc/ptrace: Convert to load/store doubles 2022-07-25 12:05:16 +10:00
math selftests/powerpc: Increase timeout for vsx_signal test 2023-03-15 00:52:09 +11:00
mce selftests/powerpc: Add missing files to .gitignores 2022-06-29 19:37:04 +10:00
mm powerpc/selftests: sort mm/.gitignore, add exec_prot 2023-08-18 17:03:15 +10:00
nx-gzip selftests/powerpc: Add automatically allocating read_file 2023-02-09 23:56:45 +11:00
papr_attributes selftests/powerpc: Skip energy_scale_info test on older firmware 2022-06-26 10:29:43 +10:00
pmu selftests/powerpc: Fix emit_tests to work with run_kselftest.sh 2023-09-22 20:29:48 +10:00
primitives powerpc/bug: Provide better flexibility to WARN_ON/__WARN_FLAGS() with asm goto 2021-08-15 13:49:24 +10:00
ptrace selftests/powerpc/ptrace: Update ptrace-perf watchpoint selftest 2023-08-16 23:54:50 +10:00
scripts selftests: powerpc: Use "grep -E" instead of "egrep" 2022-12-02 18:04:27 +11:00
security selftests/powerpc: Fix incorrect kernel headers search path 2023-02-15 22:41:00 +11:00
signal selftests/powerpc: Add a test of sigreturning to an unaligned address 2021-12-25 10:56:05 +11:00
stringloops powerpc: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-16 23:54:48 +10:00
switch_endian selftests/powerpc: Properly handle failure in switch_endian_test 2020-09-08 22:24:13 +10:00
syscalls selftests/powerpc: Fix incorrect kernel headers search path 2023-02-15 22:41:00 +11:00
tm selftests/powerpc: Fix incorrect kernel headers search path 2023-02-15 22:41:00 +11:00
vphn powerpc/pseries: Move VPHN constants into vphn.h 2023-08-24 22:33:16 +10:00
harness.c selftests/powerpc: add const qualification where possible 2023-08-18 17:03:15 +10:00
Makefile selftests/powerpc: Fix emit_tests to work with run_kselftest.sh 2023-09-22 20:29:48 +10:00
utils.c selftests/powerpc/dexcr: Add hashst/hashchk test 2023-06-19 17:36:28 +10:00