From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
Linux Media Mailing List <linux-media@vger.kernel.org>,
Ezequiel Garcia <ezequiel@collabora.com>
Subject: Re: [RFC] Create test script(s?) for regression testing
Date: Tue, 06 Nov 2018 15:12:19 +0200 [thread overview]
Message-ID: <1795902.nUhofaO05U@avalon> (raw)
In-Reply-To: <20181106113654.dhindu3lgaks74rr@paasikivi.fi.intel.com>
Hello,
On Tuesday, 6 November 2018 13:36:55 EET Sakari Ailus wrote:
> On Tue, Nov 06, 2018 at 09:37:07AM +0100, Hans Verkuil wrote:
> > Hi all,
> >
> > After the media summit (heavy on test discussions) and the V4L2 event
> > regression we just found it is clear we need to do a better job with
> > testing.
> >
> > All the pieces are in place, so what is needed is to combine it and create
> > a script that anyone of us as core developers can run to check for
> > regressions. The same script can be run as part of the kernelci
> > regression testing.
>
> I'd say that *some* pieces are in place. Of course, the more there is, the
> better.
>
> The more there are tests, the more important it would be they're automated,
> preferrably without the developer having to run them on his/her own
> machine.
>From my experience with testing, it's important to have both a core set of
tests (a.k.a. smoke tests) that can easily be run on developers' machines, and
extended tests that can be offloaded to a shared testing infrastructure (but
possibly also run locally if desired).
> > We have four virtual drivers: vivid, vim2m, vimc and vicodec. The last one
> > is IMHO not quite good enough yet for testing: it is not fully compliant
> > to the upcoming stateful codec spec. Work for that is planned as part of
> > an Outreachy project.
> >
> > My idea is to create a script that is maintained as part of v4l-utils that
> > loads the drivers and runs v4l2-compliance and possibly other tests
> > against the virtual drivers.
>
> How about spending a little time to pick a suitable framework for running
> the tests? It could be useful to get more informative reports than just
> pass / fail.
We should keep in mind that other tests will be added later, and the test
framework should make that easy.
Regarding the test output, many formats exist (see https://testanything.org/
and https://chromium.googlesource.com/chromium/src/+/master/docs/testing/
json_test_results_format.md for instance), we should pick one of the leading
industry standards (what those standards are still needs to be researched
:-)).
> Do note that for different hardware the tests would be likely different as
> well although there are classes of devices for which the exact same tests
> would be applicable.
See http://git.ideasonboard.com/renesas/vsp-tests.git for an example of
device-specific tests. I think some of that could be generalized.
> > It should be simple to use and require very little in the way of
> > dependencies. Ideally no dependencies other than what is in v4l-utils so
> > it can easily be run on an embedded system as well.
> >
> > For a 64-bit kernel it should run the tests both with 32-bit and 64-bit
> > applications.
> >
> > It should also test with both single and multiplanar modes where
> > available.
> >
> > Since vivid emulates CEC as well, it should run CEC tests too.
> >
> > As core developers we should have an environment where we can easily test
> > our patches with this script (I use a VM for that).
> >
> > I think maintaining the script (or perhaps scripts) in v4l-utils is best
> > since that keeps it in sync with the latest kernel and v4l-utils
> > developments.
>
> Makes sense --- and that can be always changed later on if there's a need
> to.
I wonder whether that would be best going forward, especially if we want to
add more tests. Wouldn't a v4l-tests project make sense ?
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2018-11-06 22:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-06 8:37 [RFC] Create test script(s?) for regression testing Hans Verkuil
2018-11-06 11:36 ` Sakari Ailus
2018-11-06 13:12 ` Laurent Pinchart [this message]
2018-11-06 13:56 ` Hans Verkuil
2018-11-06 19:58 ` Laurent Pinchart
2018-11-07 8:05 ` Hans Verkuil
2018-11-07 10:06 ` Laurent Pinchart
2018-11-07 19:10 ` Mauro Carvalho Chehab
2018-11-07 19:35 ` Laurent Pinchart
2018-11-07 19:53 ` Mauro Carvalho Chehab
2018-11-07 20:04 ` Laurent Pinchart
2018-11-07 21:03 ` Shuah Khan
2018-11-07 19:36 ` Ezequiel Garcia
2018-11-06 13:39 ` Ezequiel Garcia
2018-12-10 13:44 ` Hans Verkuil
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=1795902.nUhofaO05U@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=ezequiel@collabora.com \
--cc=hverkuil@xs4all.nl \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@linux.intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.