ltp: Enable extra test groups
PATCH 1/2 ltp: Enable extra test groups
Petr Vorel (upstream ltp maintainer) recommended some extra tests we should run. Enable these for extra test coverage.
--- meta/lib/oeqa/runtime/cases/ltp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/lib/oeqa/runtime/cases/ltp.py +1 -1
@@ -57,7 +57,7 @@ class LtpTestBase(OERuntimeTestCase): class LtpTest(LtpTestBase): - ltp_groups = ["math", "syscalls", "dio", "io", "mm", "ipc", "sched", "nptl", "pty", "containers", "controllers", "filecaps", "cap_bounds", "fcntl-locktests", "commands", "net.ipv6_lib", "input","fs_perms_simple"] + ltp_groups = ["math", "syscalls", "dio", "io", "mm", "ipc", "sched", "nptl", "pty", "containers", "controllers", "filecaps", "cap_bounds", "fcntl-locktests", "commands", "net.ipv6_lib", "input","fs_perms_simple", "cve", "crypto", "ima", "net.nfs", "net_stress.ipsec_icmp", "net.ipv6", "numa", "uevent", "ltp-aiodio.part1", "ltp-aiodio.part2", "ltp-aiodio.part3", "ltp-aiodio.part4"] ltp_fs = ["fs", "fs_bind"] # skip kernel cpuhotplug
Signature · 1 line
2.40.1
PATCH 2/2 ltp: Try re-enabling problematic test
The proc01 test used to hang when reading /proc/kmsg. This issue could have been a number of issues which were fixed in the meantime. Try re-enabling the test to see if the issue is still present.
--- .../ltp/ltp/disable_hanging_tests.patch | 27 ------------------- meta/recipes-extended/ltp/ltp_20240129.bb | 1 - 2 files changed, 28 deletions(-) delete mode 100644 meta/recipes-extended/ltp/ltp/disable_hanging_tests.patch
meta/recipes-extended/ltp/ltp/disable_hanging_tests.patch deleted +0 -27
@@ -1,27 +0,0 @@ -This patch disables tests which we've found "hang" on our infrastructure. - -proc01: -https://autobuilder.yoctoproject.org/typhoon/#/builders/96/builds/1748 (arm) -https://autobuilder.yoctoproject.org/typhoon/#/builders/96/builds/1781 (arm) -https://autobuilder.yoctoproject.org/typhoon/#/builders/96/builds/2782 (arm) -(was trying to read /proc/kmsg, looks like a horrible test anyway) - -Upstream-Status: Inappropriate [OE Configuration] -Signed-off-by: Richard Purdie <[email protected]> - -Index: git/runtest/fs -=================================================================== ---- git.orig/runtest/fs -+++ git/runtest/fs -@@ -64,11 +64,6 @@ writetest01 writetest - #Also run the fs_di (Data Integrity tests) - fs_di fs_di -d $TMPDIR - --# Read every file in /proc. Not likely to crash, but does enough --# to disturb the kernel. A good kernel latency killer too. --# Was not sure why it should reside in runtest/crashme and won't get tested ever --proc01 proc01 -m 128 -- - read_all_dev read_all -d /dev -p -q -r 3 - read_all_proc read_all -d /proc -q -r 3 - read_all_sys read_all -d /sys -q -r 3
meta/recipes-extended/ltp/ltp_20240129.bb +0 -1
@@ -28,7 +28,6 @@ SRCREV = "68737d20556d37364c95776044b1119c0912a36a" SRC_URI = "git://github.com/linux-test-project/ltp.git;branch=master;protocol=https \ file://0001-Remove-OOM-tests-from-runtest-mm.patch \ - file://disable_hanging_tests.patch \ " S = "${WORKDIR}/git"
Signature · 1 line
2.40.1
Re: [PATCH 2/2] ltp: Try re-enabling problematic test
Hi Richard,
Quoted 3 lines
The proc01 test used to hang when reading
/proc/kmsg. This issue could have been a number of issues which were fixed in the meantime. Try re-enabling the test to see if the issue is still present.
Crossed fingers to get it either fixed or logs which shows what's wrong.
Thanks!
Kind regards,
Petr
Patchtest results for [PATCH 1/2] ltp: Enable extra test groups
In reply to Richard PurdieThank you for your submission. Patchtest identified one or more issues with the patch. Please see the log below for more information:
---
Testing patch /home/patchtest/share/mboxes/1-2-ltp-Enable-extra-test-groups.patch
FAIL: test max line length: Patch line too long (current length 386, maximum is 200) (test_metadata.TestMetadata.test_max_line_length)
PASS: pretest pylint (test_python_pylint.PyLint.pretest_pylint)
PASS: test Signed-off-by presence (test_mbox.TestMbox.test_signed_off_by_presence)
PASS: test author valid (test_mbox.TestMbox.test_author_valid)
PASS: test commit message presence (test_mbox.TestMbox.test_commit_message_presence)
PASS: test mbox format (test_mbox.TestMbox.test_mbox_format)
PASS: test non-AUH upgrade (test_mbox.TestMbox.test_non_auh_upgrade)
PASS: test pylint (test_python_pylint.PyLint.test_pylint)
PASS: test shortlog format (test_mbox.TestMbox.test_shortlog_format)
PASS: test shortlog length (test_mbox.TestMbox.test_shortlog_length)
SKIP: pretest src uri left files: No modified recipes, skipping pretest (test_metadata.TestMetadata.pretest_src_uri_left_files)
SKIP: test CVE check ignore: No modified recipes, skipping test (test_metadata.TestMetadata.test_cve_check_ignore)
SKIP: test CVE tag format: No new CVE patches introduced (test_patch.TestPatch.test_cve_tag_format)
SKIP: test Signed-off-by presence: No new CVE patches introduced (test_patch.TestPatch.test_signed_off_by_presence)
SKIP: test Upstream-Status presence: No new CVE patches introduced (test_patch.TestPatch.test_upstream_status_presence_format)
SKIP: test bugzilla entry format: No bug ID found (test_mbox.TestMbox.test_bugzilla_entry_format)
SKIP: test lic files chksum modified not mentioned: No modified recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_modified_not_mentioned)
SKIP: test lic files chksum presence: No added recipes, skipping test (test_metadata.TestMetadata.test_lic_files_chksum_presence)
SKIP: test license presence: No added recipes, skipping test (test_metadata.TestMetadata.test_license_presence)
SKIP: test series merge on head: Merge test is disabled for now (test_mbox.TestMbox.test_series_merge_on_head)
SKIP: test src uri left files: No modified recipes, skipping pretest (test_metadata.TestMetadata.test_src_uri_left_files)
SKIP: test summary presence: No added recipes, skipping test (test_metadata.TestMetadata.test_summary_presence)
SKIP: test target mailing list: Series merged, no reason to check other mailing lists (test_mbox.TestMbox.test_target_mailing_list)
---
Please address the issues identified and
submit a new revision of the patch, or alternatively, reply to this email with an explanation of why the patch should be accepted. If you believe these results are due to an error in patchtest, please submit a bug at https://bugzilla.yoctoproject.org/ (use the 'Patchtest' category under 'Yocto Project Subprojects'). For more information on specific failures, see: https://wiki.yoctoproject.org/wiki/Patchtest. Thank you!
Hi Richard,
meta/lib/oeqa/runtime/cases/ltp.py class LtpTestBase(OERuntimeTestCase): · line 60
Quoted 5 lines
Petr Vorel (upstream ltp maintainer) recommended some extra tests we should run. Enable these for extra test coverage.
meta/lib/oeqa/runtime/cases/ltp.py +1
-1- ltp_groups = ["math", "syscalls", "dio", "io", "mm", "ipc", "sched", "nptl", "pty", "containers", "controllers", "filecaps", "cap_bounds", "fcntl-locktests", "commands", "net.ipv6_lib", "input","fs_perms_simple"] + ltp_groups = ["math", "syscalls", "dio", "io", "mm", "ipc", "sched", "nptl", "pty", "containers", "controllers", "filecaps", "cap_bounds", "fcntl-locktests", "commands", "net.ipv6_lib", "input","fs_perms_simple", "cve", "crypto", "ima", "net.nfs", "net_stress.ipsec_icmp", "net.ipv6", "numa", "uevent", "ltp-aiodio.part1", "ltp-aiodio.part2", "ltp-aiodio.part3", "ltp-aiodio.part4"]
nit: Sorting alphabetically or even list single item on it's own line would made list a bit more readable.
Thanks!
Kind regards,
Petr
Quoted 2 lines
ltp_fs= ["fs", "fs_bind"]
# skip kernel cpuhotplug
Hi Richard,
Quoted 13 lines
Petr Vorel (upstream ltp maintainer) recommended some extra tests we should run. Enable these for extra test coverage.
Signed-off-by Richard Purdie <[email protected]>--- meta/lib/oeqa/runtime/cases/ltp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/lib/oeqa/runtime/cases/ltp.py +0
-0
meta/lib/oeqa/runtime/cases/ltp.py class LtpTestBase(OERuntimeTestCase): · line 60
Quoted 5 lines
meta/lib/oeqa/runtime/cases/ltp.py +1
-1@@ -57,7 +57,7 @@ class LtpTestBase(OERuntimeTestCase): class LtpTest(LtpTestBase): - ltp_groups = ["math", "syscalls", "dio", "io", "mm", "ipc", "sched", "nptl", "pty", "containers", "controllers", "filecaps", "cap_bounds", "fcntl-locktests", "commands", "net.ipv6_lib", "input","fs_perms_simple"] + ltp_groups = ["math", "syscalls", "dio", "io", "mm", "ipc", "sched", "nptl", "pty", "containers", "controllers", "filecaps", "cap_bounds", "fcntl-locktests", "commands", "net.ipv6_lib", "input","fs_perms_simple", "cve", "crypto", "ima", "net.nfs", "net_stress.ipsec_icmp", "net.ipv6", "numa", "uevent", "ltp-aiodio.part1", "ltp-aiodio.part2", "ltp-aiodio.part3", "ltp-aiodio.part4"]
Also one thing comes to my mind: would it be possible to list all files in /opt/ltp/runltp/ to detect runtest file names? Then it would be the most reliable solution to find available runtest files.
meta/lib/oeqa/runtime/cases/ltp.py class LtpTestBase(OERuntimeTestCase): · line 63
Quoted 2 lines
meta/lib/oeqa/runtime/cases/ltp.py +0
-0ltp_fs = ["fs", "fs_bind"] # skip kernel cpuhotplug
Also, is this ltp_kernel even used?
ltp_kernel = ["power_management_tests", "hyperthreading ", "kernel_misc", "hugetlb"]
Kind regards,
Petr