From dd73c2a754f299c493b30e262bafe2ae84ee4525 Mon Sep 17 00:00:00 2001 From: Ryan Harkin Date: Fri, 20 Apr 2018 11:40:36 +0100 Subject: Add v4l2-compliance test suite WaRP7 has a V4L2 compliant camera driver. This test runs the compliance tests against that driver. Taken from the man page: "The v4l2-compliance tool is used to test video4linux devices, either video, vbi, radio or swradio, both input and output. It attempts to test almost all aspects of a V4L2 device and it covers almost all V4L2 ioctls. It has very good support for video capture and output, VBI capture and output and (software) radio tuning and transmitting." "Note that v4l2-compliance not only tests for compliance against the V4L2 API, but also whether the driver is using all the correct frameworks. These frameworks often automatically provide ioctls that are strictly speaking optional, but that come for free if you use those frameworks. By requiring their presence the v4l2-compliance utility will enforce their use." Change-Id: Ide6de6b954eeb6edd1f19c9c49164d05582c772f Signed-off-by: Ryan Harkin --- automated/linux/v4l2/v4l2-compliance.sh | 60 +++++++++++++++++++++++++++++++ automated/linux/v4l2/v4l2-compliance.yaml | 23 ++++++++++++ 2 files changed, 83 insertions(+) create mode 100755 automated/linux/v4l2/v4l2-compliance.sh create mode 100644 automated/linux/v4l2/v4l2-compliance.yaml diff --git a/automated/linux/v4l2/v4l2-compliance.sh b/automated/linux/v4l2/v4l2-compliance.sh new file mode 100755 index 0000000..73a609f --- /dev/null +++ b/automated/linux/v4l2/v4l2-compliance.sh @@ -0,0 +1,60 @@ +#!/bin/sh + +. ../../lib/sh-test-lib +OUTPUT="$(pwd)/output" +RESULT_FILE="${OUTPUT}/result.txt" +TEST_SUITE="v4l2-compliance" + +usage() { + echo "Usage: $0 [-d