selftests/powerpc: Give all tests 2 minutes timeoutEach of the powerpc selftests runs with a timeout of 2 minutes bydefault (see tools/testing/selftests/powerpc/harness.c).But when tests are run
selftests/powerpc: Give all tests 2 minutes timeoutEach of the powerpc selftests runs with a timeout of 2 minutes bydefault (see tools/testing/selftests/powerpc/harness.c).But when tests are run with run_kselftest.sh it uses a timeout of 45seconds, meaning some tests run OK standalone but fail when run with thetest runner.So tell run_kselftest.sh to give each test 130 seconds, that shouldallow the tests to complete, or be killed by the powerpc test harnessafter 2 minutes. If for some reason the harness fails, or for the fewtests that don't use the harness, the 130 second timeout should catchthem if they get stuck.Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>Link: https://patch.msgid.link/20241106130453.1741013-2-mpe@ellerman.id.au
show more ...
selftests/powerpc: make sub-folders buildable on their ownBuild breaks when executing make with run_tests for sub-foldersunder powerpc. This is because, CFLAGS and GIT_VERSION macros aredefined i
selftests/powerpc: make sub-folders buildable on their ownBuild breaks when executing make with run_tests for sub-foldersunder powerpc. This is because, CFLAGS and GIT_VERSION macros aredefined in Makefile of toplevel powerpc folder. make: Entering directory '/home/maddy/linux/tools/testing/selftests/powerpc/mm' gcc hugetlb_vs_thp_test.c ../harness.c ../utils.c -o /home/maddy/selftest_output//hugetlb_vs_thp_test hugetlb_vs_thp_test.c:6:10: fatal error: utils.h: No such file or directory 6 | #include "utils.h" | ^~~~~~~~~ compilation terminated.Fix this by adding the flags.mk in each sub-folder Makefile. Also removethe CFLAGS and GIT_VERSION macros from powerpc/ folder Makefile sincethe same is definied in flags.mkSigned-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>Link: https://msgid.link/20240229093711.581230-3-maddy@linux.ibm.com
selftests/powerpc: Add missing files to .gitignoresThese were missed when the respective tests were added, add them now.Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>Link: https://lore.ker
selftests/powerpc: Add missing files to .gitignoresThese were missed when the respective tests were added, add them now.Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>Link: https://lore.kernel.org/r/20220616070705.1941829-1-mpe@ellerman.id.au
selftests/powerpc: Add test for real address error handlingAdd test for real address or control memory address accesserror handling, using NX-GZIP engine.The error is injected by accessing the c
selftests/powerpc: Add test for real address error handlingAdd test for real address or control memory address accesserror handling, using NX-GZIP engine.The error is injected by accessing the control memory addressusing illegal instruction, on successful handling the processattempting to access control memory address using illegalinstruction receives SIGBUS.Signed-off-by: Ganesh Goudar <ganeshgr@linux.ibm.com>Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>Link: https://lore.kernel.org/r/20220107141428.67862-2-ganeshgr@linux.ibm.com