linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Ryan Roberts <ryan.roberts@arm.com>
To: John Hubbard <jhubbard@nvidia.com>, Mark Brown <broonie@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Shuah Khan <shuah@kernel.org>, Peter Xu <peterx@redhat.com>,
	Aishwarya TCV <Aishwarya.TCV@arm.com>,
	linux-mm@kvack.org, linux-kselftest@vger.kernel.org
Subject: Re: [PATCH v1] selftests/mm: Log run_vmtests.sh results in TAP format
Date: Tue, 19 Dec 2023 08:33:03 +0000	[thread overview]
Message-ID: <cd831119-0462-44bc-adfe-aaf557c3b4e6@arm.com> (raw)
In-Reply-To: <cbcdce88-def8-49e2-aad4-d510fb82208f@nvidia.com>

On 19/12/2023 00:55, John Hubbard wrote:
> On 12/18/23 16:51, John Hubbard wrote:
>> On 12/18/23 03:32, Ryan Roberts wrote:
>> ...
>>>> I should also point out that some of the subtests already attempt a TAP
>>>> output. So now we end up with TAP-within-TAP output for those programs.
>>>
>>> It's actually TAP-in-TAP-in-TAP if you're running from run_kselftest.sh :)
>>>
>>>>
>>>> For example:
>>>>      # -----------------------
>>>>      # running ./madv_populate
>>>>      # -----------------------
>>>>      # TAP version 13
>>>>      # 1..21
>>>>      # # [RUN] test_prot_read
>>>>      # ok 1 MADV_POPULATE_READ with PROT_READ
>>>>      # ok 2 MADV_POPULATE_WRITE with PROT_READ
>>>>      # # [RUN] test_prot_write
>>>>      # ok 3 MADV_POPULATE_READ with PROT_WRITE
>>>>      ...etc...
>>>>
>>>> Note the double level of leading '#' characters.
>>>>
>>>> Again, this is still readable enough for humans. But it should probably
>>>> be removed in subsequent patches to the subtests.
>>>
>>> I personally don't agree with this. It would be difficult to flatten to a single
>>> TAP instance because the top level doesn't have a clue how many test cases the
>>
>> That's not quite what I had in mind...
>>
>>> child is running. Trying to do this will make things more fragile and less
>>> modular. LAVA can certainly deal with nested test cases and correctly parses
>>> everything to test case names that contain the test name at each level of
>>> nesting. The thing I was trying to solve with this patch was that previously the
>>> top level (run_kselftest.sh) and the bottom level (individual mm test binaries)
>>> were using TAP, but the middle level (run_vmtests.sh) wasn't, and this was
>>> confusing the LAVA parser.
>>>
>>
>> I was thinking more along these lines:
>>
>> a) For the individual programs (binaries), there is actually neither need nor
>> desire to create TAP output at that level, because frameworks like LAVA only
>> care about running a lot of tests and parsing the output.
>>
>> b) Therefore, just stop specifying TAP output at the leaf level, and let
>> run_vmtests.sh and run_kselftest.sh do it.
>>
>> Looking at madv_populate.c, I see that it scatters calls to ksft_*() around.
>> And I was thinking that this is all just redundant, isn't it?
>>
> 
> Although I suppose that the counter argument is that the subtests in
> madv_populate.c really *do* want to be specifically printed in TAP
> format.
> 
> arggh, I guess this is just not worth fooling around with after all.

Yes; I wouldn't want to lose the fine granularity we have currently. For example
cow.c has ~900 test cases now that I've multiplied everything up for mTHP. 16 of
those are known to fail (hugetlb issue) and 1 is skipped. I wouldn't want to
reduce that down to a single cow test case that always fails; that's not helpful
to understand if I've regressed something.

But sounds like we are both on the same page now.


>  
> 
> thanks,



      reply	other threads:[~2023-12-19  8:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-14 16:24 Ryan Roberts
2023-12-15 13:54 ` Mark Brown
2023-12-15 13:58   ` Ryan Roberts
2023-12-15 14:08     ` Mark Brown
2023-12-15 14:28       ` Ryan Roberts
2023-12-15 14:34         ` Mark Brown
2023-12-16  2:25         ` John Hubbard
2023-12-16  2:40           ` John Hubbard
2023-12-18 11:32             ` Ryan Roberts
2023-12-19  0:51               ` John Hubbard
2023-12-19  0:55                 ` John Hubbard
2023-12-19  8:33                   ` Ryan Roberts [this message]

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=cd831119-0462-44bc-adfe-aaf557c3b4e6@arm.com \
    --to=ryan.roberts@arm.com \
    --cc=Aishwarya.TCV@arm.com \
    --cc=akpm@linux-foundation.org \
    --cc=broonie@kernel.org \
    --cc=jhubbard@nvidia.com \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=peterx@redhat.com \
    --cc=shuah@kernel.org \
    /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