Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/powerpc: Turn off timeout setting for benchmarks, dscr, signal, tm

Some specific tests in powerpc can take longer than the default 45
seconds that added in commit 852c8cbf34d3 ("selftests/kselftest/runner.sh:
Add 45 second timeout per test") to run, the following test result was
collected across 2 Power8 nodes and 1 Power9 node in our pool:
powerpc/benchmarks/futex_bench - 52s
powerpc/dscr/dscr_sysfs_test - 116s
powerpc/signal/signal_fuzzer - 88s
powerpc/tm/tm_unavailable_test - 168s
powerpc/tm/tm-poison - 240s

Thus they will fail with TIMEOUT error. Disable the timeout setting
for these sub-tests to allow them finish properly.

https://bugs.launchpad.net/bugs/1864642
Fixes: 852c8cbf34d3 ("selftests/kselftest/runner.sh: Add 45 second timeout per test")
Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200318060004.10685-1-po-hsu.lin@canonical.com

authored by

Po-Hsu Lin and committed by
Michael Ellerman
850507f3 36b78402

+12
+2
tools/testing/selftests/powerpc/benchmarks/Makefile
··· 2 2 TEST_GEN_PROGS := gettimeofday context_switch fork mmap_bench futex_bench null_syscall 3 3 TEST_GEN_FILES := exec_target 4 4 5 + TEST_FILES := settings 6 + 5 7 CFLAGS += -O2 6 8 7 9 top_srcdir = ../../../../..
+1
tools/testing/selftests/powerpc/benchmarks/settings
··· 1 + timeout=0
+2
tools/testing/selftests/powerpc/dscr/Makefile
··· 3 3 dscr_inherit_test dscr_inherit_exec_test dscr_sysfs_test \ 4 4 dscr_sysfs_thread_test 5 5 6 + TEST_FILES := settings 7 + 6 8 top_srcdir = ../../../../.. 7 9 include ../../lib.mk 8 10
+1
tools/testing/selftests/powerpc/dscr/settings
··· 1 + timeout=0
+2
tools/testing/selftests/powerpc/signal/Makefile
··· 5 5 $(OUTPUT)/signal_tm: CFLAGS += -mhtm 6 6 $(OUTPUT)/sigfuz: CFLAGS += -pthread -m64 7 7 8 + TEST_FILES := settings 9 + 8 10 top_srcdir = ../../../../.. 9 11 include ../../lib.mk 10 12
+1
tools/testing/selftests/powerpc/signal/settings
··· 1 + timeout=0
+2
tools/testing/selftests/powerpc/tm/Makefile
··· 7 7 $(SIGNAL_CONTEXT_CHK_TESTS) tm-sigreturn tm-signal-sigreturn-nt \ 8 8 tm-signal-context-force-tm tm-poison tm-signal-pagefault 9 9 10 + TEST_FILES := settings 11 + 10 12 top_srcdir = ../../../../.. 11 13 include ../../lib.mk 12 14
+1
tools/testing/selftests/powerpc/tm/settings
··· 1 + timeout=0