From: Li Wang <li.wang@linux.dev>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v3 00/31] Add sysfs sanity tests
Date: Fri, 28 Aug 2026 16:32:58 +0800 [thread overview]
Message-ID: <apFHunHIcZWSglnf@linux.dev> (raw)
In-Reply-To: <20260827112157.1748734-1-chrubis@suse.cz>
On Thu, Aug 27, 2026 at 01:21:26PM +0200, Cyril Hrubis wrote:
> This is a first bach of the sysfs sanity tests I've been working on
> recently.
>
> The main goal of these tests is to make sure that these files contains
> expected data, e.g. files that are supposes to be boolean are 0 or 1,
> numeric files contain numbers, etc.
>
> I've tried to make the code of the tests as clear as possible. Hence the
> first addition in this patchset is a library that implements common
> assertions for sysfs files to be done in a single line of a code.
>
> Majority of these tests are just reading the files and checking that the
> content is sane. The exceptions are loop device, veth, tap tests that
> cerate virtual devices, which attributes can be changed freely.
>
> v2:
>
> Fixed all problems pointed out by Li and real problems by the LTP reviewer.
>
> v3:
>
> Fix for a CI compilation failure:
>
> - sys_net04 compilation on Leap 42.2
>
> Fixes for issues found by OpenQA run by Peter:
>
> - sys_net04 use TST_RETRY_FUNC() for operstate
> - sys_net02 use TST_RETRY_FUNC() for operstate
> - sys_net01 make sure the we have a iface (directory) before run test
> - sys_rtc01 use tst_is_virt() to multiply slack on VMs
> - sys_cpu_topology02 use tst_is_virt() to relax package physical id checks
> - sys_bdi01 max_bytes and min_bytes were added to 6.2
> - sys_wakeup01 depend on CONFIG_PM_SLEEP=y
> - sys_power01 In kernel lockdown disk state can be "disabled"
> - sys_cpu_cache01 Report TCONF if no caches are exported
>
> v4:
>
> - Added TST_SYSFS_TRY_OPENDIR() that handles ENOENT and produces
> TCONF and hopefully finally fixed all possible missing directories
> (e.g. hugepages could have been missing on ppc64le if lpar was
> configured without support for them)
>
> - Fixed " vs `` in test doc spinx comments
>
> - Fixed copy&paste errors in tst_sysfs_assert.h
>
> - Fixed missing keywords in sys_cpu_vulnerabilities01 and sys_ata01
>
> - Fixed >= 0 vs != -1 in sys_net04
Patchset v4 looks good to me. I ran the tests and all passed on c9s, c10s,
and kernel v6.6 as well (x86_64 vm).
Feel free to add:
Reviewed-by: Li Wang <li.wang@linux.dev>
Tested-by: Li Wang <li.wang@linux.dev>
--
Regards,
Li Wang
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-08-28 8:33 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 11:21 [LTP] [PATCH v3 00/31] Add sysfs sanity tests Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 01/31] lib: Add tst_sysfs_assert Cyril Hrubis
2026-09-03 14:57 ` Petr Vorel
2026-09-03 15:08 ` Cyril Hrubis
2026-09-03 15:34 ` Petr Vorel
2026-09-03 15:03 ` Petr Vorel
2026-09-03 15:25 ` Petr Vorel
2026-08-27 11:21 ` [LTP] [PATCH v4 02/31] testcases: sysfs: Add sys_power01 Cyril Hrubis
2026-08-27 14:04 ` [LTP] lib: Add tst_sysfs_assert linuxtestproject.agent
2026-08-27 11:21 ` [LTP] [PATCH v4 03/31] testcases: sysfs: Add sys_kernel01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 04/31] testcases: sysfs: Add sys_clocksource01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 05/31] testcases: sysfs: Add sys_node01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 06/31] testcases: sysfs: Add sys_cpu_topology01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 07/31] testcases: sysfs: Add sys_cpu_topology02 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 08/31] testcases: sysfs: Add sys_cpu_vulnerabilities01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 09/31] testcases: sysfs: Add sys_cpu_smt01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 10/31] testcases: sysfs: Add sys_cpu_cache01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 11/31] testcases: sysfs: Add sys_clockevents01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 12/31] testcases: sysfs: Add sys_ata01 Cyril Hrubis
2026-09-03 15:59 ` Petr Vorel
2026-08-27 11:21 ` [LTP] [PATCH v4 13/31] testcases: sysfs: Add sys_bdi01 Cyril Hrubis
2026-09-03 16:05 ` Petr Vorel
2026-08-27 11:21 ` [LTP] [PATCH v4 14/31] testcases: sysfs: sys_hwmon01 Cyril Hrubis
2026-09-03 16:21 ` Petr Vorel
2026-08-27 11:21 ` [LTP] [PATCH v4 15/31] testcases: sysfs: sys_leds01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 16/31] testcases: sysfs: Add sys_wakeup01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 17/31] testcases: sysfs: Add sys_rtc01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 18/31] testcases: sysfs: Add sys_thermal01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 19/31] tst_netdevice: Add two more helper macros Cyril Hrubis
2026-09-03 16:43 ` Petr Vorel
2026-08-27 11:21 ` [LTP] [PATCH v4 20/31] testcases: sysfs: Add sys_net01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 21/31] testcases: sysfs: Add sys_net02 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 22/31] testcases: sysfs: Add sys_net03 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 23/31] testcases: sysfs: Add sys_net04 Cyril Hrubis
2026-09-03 17:03 ` Petr Vorel
2026-08-27 11:21 ` [LTP] [PATCH v4 24/31] testcases: sysfs: Add sys_block_loop01 Cyril Hrubis
2026-09-03 17:11 ` Petr Vorel
2026-09-07 15:14 ` Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 25/31] testcases: sysfs: Add sys_block_queue01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 26/31] testcases: sysfs: Add sys_block_size01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 27/31] testcases: sysfs: Add sys_hugepages01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 28/31] testcases: sysfs: Add sys_hugepages02 Cyril Hrubis
2026-09-03 14:44 ` Petr Vorel
2026-09-03 14:49 ` Cyril Hrubis
2026-09-03 15:38 ` Petr Vorel
2026-09-03 17:21 ` Petr Vorel
2026-08-27 11:21 ` [LTP] [PATCH v4 29/31] testcases: sysfs: Add sys_ksm01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 30/31] testcases: sysfs: Add sys_mm_swap01 Cyril Hrubis
2026-08-27 11:21 ` [LTP] [PATCH v4 31/31] testcases: sysfs: Add sys_thp01 Cyril Hrubis
2026-08-28 8:32 ` Li Wang [this message]
2026-09-03 17:24 ` [LTP] [PATCH v3 00/31] Add sysfs sanity tests Petr Vorel
2026-09-04 8:44 ` Petr Vorel
2026-09-08 8:35 ` Cyril Hrubis
-- strict thread matches above, loose matches on Subject: below --
2026-08-25 11:35 Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=apFHunHIcZWSglnf@linux.dev \
--to=li.wang@linux.dev \
--cc=chrubis@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox