Unit tests not defined in any test suite

Bruce Richardson bruce.richardson at intel.com
Fri Sep 15 10:21:31 CEST 2023


On Fri, Sep 15, 2023 at 09:55:49AM +0200, David Marchand wrote:
> Hello Bruce,
> 
> On Thu, Sep 14, 2023 at 6:16 PM Bruce Richardson
> <bruce.richardson at intel.com> wrote:
> >
> > Hi all,
> >
> > As part of the recent rework of the build of our unit test binary
> > (dpdk-test), the individual autotests were updated in the source code to
> > specify the test suite they belong to. The replacement of the
> > registration macro was done automatically using the existing suite lists
> > in the meson.build file, but following the replacement, it appears that
> > there are quite a number of test cases which are not in any test suite -
> > and as such as not being run automatically for patches in the IOL test
> > lab.
> >
> > Below is a list of these test cases, and the files each is defined in.
> > We should endeavour to ensure each test case is in a suite. Currently we
> > have 3 suites - fast-test, perf-test, and driver-test, but more suites
> > can be added as necessary.
> >
> > I've attempted to automatically identify the maintainers of the various
> > tests using "get-maintainers" script - hence the list of those on CC. If
> > possible, can each of you identify what test cases you may be maintainer
> > for, and add them to a test suite, to help improve our test coverage.
> > [Apologies for any mis-identifications]
> >
> > Thanks,
> > /Bruce
> >
> > alarm_autotest (test_alarm.c)
> > bitratestats_autotest (test_bitratestats.c)
> 
> Those two tests above (and the one on the graph library) made me raise
> an eyebrow as I remembered them being part of the fast-tests list.
> I thought I had checked the tests lists before/after rework..., but
> looking again I did not do this properly (the blame is on the
> reviewers and commiters).
> 
Blame also falls on my as patch author, my apologies. I missed the fact
that the test lists given at the top of the old meson.build file were
incomplete, and were added to by additional tests later down the file in
the if/else blocks. [This is, after all, the main reason I did the rework,
to make this more comprehensible, so I suppose my mistake helped prove the
need :-) ]

Apologies to those on the CC list for whom I have accidentally removed your
test from the list. I'll work with David to get things fixed back the way
they were, and then we can do a new audit list of tests.

/Bruce


More information about the dev mailing list