aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorGuillaume Tucker <guillaume.tucker@collabora.com>2018-10-15 11:18:34 +0100
committerGuillaume Tucker <guillaume.tucker@collabora.com>2018-10-29 18:14:31 +0000
commit3bb53dcff27e00cc6446fd708f66ef037feaef3a (patch)
treee3dd12061d2ae32ed332661fb6ead5d523374d52 /templates
parent7027369449ebf74cabd8cfaa86654f76497817e2 (diff)
v4l2: add test overlay with v4l2-parser.sh and use it
* add tests overlay with /usr/bin/v4l2-parser.sh to parse the output of v4l2-compliance and call lava-test-case for each test case with valid test case IDs (no spaces...) * update v4l2.jinja2 to call this script instead of parsing the test cases inline * enable streaming test cases with v4l2-compliance -s * print the v4l2 driver and device names so they appear in the log Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/v4l2/v4l2.jinja28
1 files changed, 1 insertions, 7 deletions
diff --git a/templates/v4l2/v4l2.jinja2 b/templates/v4l2/v4l2.jinja2
index 82ee283..ce02e7d 100644
--- a/templates/v4l2/v4l2.jinja2
+++ b/templates/v4l2/v4l2.jinja2
@@ -13,13 +13,7 @@
- functional
run:
steps:
- - v4l2-compliance | sed "s/test /test $test/g"
- parse:
- pattern: 'test (?P<test_case_id>\S*):\s+(?P<result>(OK|FAIL|SKIP))'
- fixupdict:
- OK: pass
- FAIL: fail
- SKIP: skip
+ - /usr/bin/v4l2-parser.sh
lava-signal: kmsg
from: inline
name: v4l2