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: Skip energy_scale_info test on older firmwareOlder machines don't have the firmware feature that enables the codethis test is testing. Skip the test if the sysfs directory doesn
selftests/powerpc: Skip energy_scale_info test on older firmwareOlder machines don't have the firmware feature that enables the codethis test is testing. Skip the test if the sysfs directory doesn'texist. Also use the FAIL_IF() macro to provide more verbose errorreporting if an error is encountered.Fixes: 57201d657eb7 ("selftest/powerpc: Add PAPR sysfs attributes sniff test")Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>Link: https://lore.kernel.org/r/20220619233103.2666171-1-mpe@ellerman.id.au
selftest/powerpc: Add PAPR sysfs attributes sniff testInclude a testcase to check if the sysfs files for energy and frequencyrelated have its related attribute files exist and populatedSigned-of
selftest/powerpc: Add PAPR sysfs attributes sniff testInclude a testcase to check if the sysfs files for energy and frequencyrelated have its related attribute files exist and populatedSigned-off-by: Pratik R. Sampat <psampat@linux.ibm.com>Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>Link: https://lore.kernel.org/r/20220217105321.52941-3-psampat@linux.ibm.com