From: Petr Vorel <pvorel@suse.cz>
To: Yang Xu <xuyang2018.jy@fujitsu.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v3 7/7] doc/c-test-api.txt
Date: Fri, 16 Dec 2022 11:12:48 +0100 [thread overview]
Message-ID: <Y5xEoHhXDn5EN0gA@pevik> (raw)
In-Reply-To: <1671166923-2173-7-git-send-email-xuyang2018.jy@fujitsu.com>
Hi Xu,
> Update min_kver usage. Also inotify04 has removed tst_kvercmp2,
> so remove it.
> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
> ---
> doc/c-test-api.txt | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
> diff --git a/doc/c-test-api.txt b/doc/c-test-api.txt
> index e6d121dce..f4da9ff41 100644
> --- a/doc/c-test-api.txt
> +++ b/doc/c-test-api.txt
> @@ -559,7 +559,8 @@ static struct tst_test test = {
> Testcases for newly added kernel functionality require kernel newer than a
> certain version to run. All you need to skip a test on older kernels is to
> set the '.min_kver' string in the 'struct tst_test' to a minimal required
> -kernel version, e.g. '.min_kver = "2.6.30"'.
> +kernel version, e.g. '.min_kver = "3.10.0"'. For ltp, the oldest supported
> +kernel version is 3.0, so we don't add this check for old kernel ie 2.6.32.
Again, not sure if this should be added.
> For more complicated operations such as skipping a test for a certain range
> of kernel versions, following functions could be used:
> @@ -585,8 +586,7 @@ positive means that it's newer.
> The second function 'tst_kvercmp2()' allows for specifying per-vendor table of
> kernel versions as vendors typically backport fixes to their kernels and the
> -test may be relevant even if the kernel version does not suggests so. See
> -'testcases/kernel/syscalls/inotify/inotify04.c' for example usage.
> +test may be relevant even if the kernel version does not suggests so.
+1 for this.
Also, I'd wait with this patchset to what brings the discussion of minimal
level.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2022-12-16 10:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-16 5:01 [LTP] [PATCH v3 1/7] lib/tst_kvercmp: Remove old distnames Yang Xu
2022-12-16 5:01 ` [LTP] [PATCH v3 2/7] shell: Remove old kernel version check Yang Xu
2022-12-16 8:55 ` Petr Vorel
2022-12-16 5:01 ` [LTP] [PATCH v3 3/7] cgroup_regression_test.sh: Remove obselte test_6 Yang Xu
2022-12-16 9:02 ` Petr Vorel
2022-12-16 9:11 ` xuyang2018.jy
2022-12-16 10:36 ` Petr Vorel
2022-12-16 5:02 ` [LTP] [PATCH v3 4/7] doc/shell-test-api.txt Yang Xu
2022-12-16 9:49 ` Petr Vorel
2022-12-16 5:02 ` [LTP] [PATCH v3 5/7] Remove old kernel version check in C case when using tst_kvercmp Yang Xu
2022-12-16 10:03 ` Petr Vorel
2022-12-16 5:02 ` [LTP] [PATCH v3 6/7] Remove old kernel version check when using min_kver Yang Xu
2022-12-16 10:11 ` Petr Vorel
2022-12-16 5:02 ` [LTP] [PATCH v3 7/7] doc/c-test-api.txt Yang Xu
2022-12-16 10:12 ` Petr Vorel [this message]
2022-12-19 3:01 ` xuyang2018.jy
2022-12-19 7:38 ` Petr Vorel
2023-01-03 17:53 ` Petr Vorel
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=Y5xEoHhXDn5EN0gA@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
--cc=xuyang2018.jy@fujitsu.com \
/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