RE: [KTAP V2 PATCH v2] ktap_v2: add test metadata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Rae Moar <rmoar@xxxxxxxxxx>
> On Sun, Feb 4, 2024 at 8:03 AM Kees Cook <kees@xxxxxxxxxx> wrote:
> >
> > On January 26, 2024 11:14:26 PM GMT+01:00, Rae Moar <rmoar@xxxxxxxxxx> wrote:
> > > KTAP version 2
> > > # ktap_test: main
> > > # ktap_arch: uml
> > > 1..1
> > >     KTAP version 2
> > >     # ktap_test: suite_1
> > >     # ktap_subsystem: example
> > >     # ktap_test_file: lib/test.c
> >
> > I think it's a mistake to mix "diagnostics" lines with semantic lines. Since the diagnostic prefix is [# ] (hash space) how about make the test
> metadata lines be [#:] (hash colon). For example:
> >
> >
> >      1..2
> >      ok 1 test_1
> >      #:ktap_test: test_2
> >      #:ktap_speed: very_slow
> >      #:custom_is_flaky: true
> >      # format-free stuff goes here
> >      ok 2 test_2
> > ...
> 
> Hello!
> 
> I really like this idea. The reason I chose the diagnostic line format
> was to make it easier for existing parsers to parse the KTAP Metadata
> lines. However, if it won't be too much of an issue for current
> parsers, I think this idea would be better. So I am happy to change
> this in the next version if there are no complaints.

I like this suggestion as well.  So this response is the opposite of a complaint.
 -- Tim





[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux