From: Hans Verkuil <hverkuil@xs4all.nl>
To: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: [ANN] Added streaming tests for v4l2-compliance
Date: Tue, 11 Feb 2014 08:55:55 +0100 [thread overview]
Message-ID: <52F9D78B.4010201@xs4all.nl> (raw)
Hi all,
I've just committed and pushed my latest changes to v4l2-compliance. It adds
initial support for testing the I/O streaming ioctls. It's currently limited
to standard VIDEO_CAPTURE, so no output, m2m or multiplanar support.
You need to add the -s flag in order to test this, and you may have to set the
correct input and frequency as well since the streaming tests assume you have
a proper video signal on the input.
It already found this regression:
http://www.spinics.net/lists/linux-media/msg72824.html
So any driver that supports VIDIOC_PREPARE_BUF will have to apply that patch
first, otherwise it will definitely fail to work.
By no means am I doing full coverage testing, but at least the main things
are now covered.
Particularly tests for nasty things (wrong pointers, buffers too small, closing
filehandles mid-streaming, stuff like that) need to be added. That's never tested
normally so stress tests like that will be very useful.
Feedback and ideas are welcome!
Regards,
Hans
reply other threads:[~2014-02-11 7:56 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=52F9D78B.4010201@xs4all.nl \
--to=hverkuil@xs4all.nl \
--cc=linux-media@vger.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