summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2018-12-04 15:51:41 +0000
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-02-19 18:38:40 +0200
commit4b6ceb2d6e79f055abbbde19e2522cbf49d695f9 (patch)
tree0a0809d6ebd2a96616cbeaf50c5bd861a0dd76a5
parente1b8f6cf2726a10ed7d43a1e090de91f8a473a90 (diff)
tests: Provide copy test to validate 1xN streams
Validate that a 1xN stream can be read through the RPF and written through the WPF. The test framework does not currently support processing images where the stride does not match the output width - so the testing is currently limited to testing only the vertical direction in this aspect. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> [Drop 1024x768 and 128x128 resolutions] Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rwxr-xr-xtests/vsp-unit-test-0025.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/vsp-unit-test-0025.sh b/tests/vsp-unit-test-0025.sh
new file mode 100755
index 0000000..b0216df
--- /dev/null
+++ b/tests/vsp-unit-test-0025.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+#
+# Test pipelines which have a single pixel dimension. Use a RPF -> WPF
+# pipeline with identical input and output formats to generate our output.
+#
+
+. ./vsp-lib.sh
+
+features="rpf.0 uds wpf.0"
+formats="RGB24 ARGB32"
+
+# Input is directly copied to the output. No change in format or size.
+test_copy() {
+ local format=$1
+ local insize=$2
+
+ test_start "copying $insize in $format"
+
+ pipe_configure rpf-wpf 0 0
+ format_configure rpf-wpf 0 0 $format $insize $format
+
+ vsp_runner rpf.0 &
+ vsp_runner wpf.0
+
+ local result=$(compare_frames)
+
+ test_complete $result
+}
+
+test_main() {
+ local format
+
+ for format in $formats ; do
+ test_copy $format 128x1
+
+ # Skipped : Test framework does not yet support strides != width
+ #test_copy $format 1x128
+ done
+}
+
+test_init $0 "$features"
+test_run