diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-05-16 21:55:52 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-05-19 16:55:07 +0300 |
commit | 62f0b16f639a9ecb116a79819655bdf44e269443 (patch) | |
tree | f66dc07c616b3f387f3ec941537e840fce261322 /tests/vsp-unit-test-0006.sh |
Initial commit
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'tests/vsp-unit-test-0006.sh')
-rwxr-xr-x | tests/vsp-unit-test-0006.sh | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/vsp-unit-test-0006.sh b/tests/vsp-unit-test-0006.sh new file mode 100755 index 0000000..0ae4259 --- /dev/null +++ b/tests/vsp-unit-test-0006.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +# +# Test invalid pipelines, without an RPF or without a WPF. +# + +source vsp-lib.sh + +features="rpf.0 wpf.0" +format=RGB24 + +test_no_rpf() { + test_start "invalid pipeline with no RPF" + + pipe_configure none | ./logger.sh config >> $logfile + format_configure wpf \ + $format 1024x768 0 | ./logger.sh config >> $logfile + + $vsp_runner $mdev output 0 $format | ./logger.sh input.0 >> $logfile + + # The test always passes if the kernel doesn't crash + test_complete pass +} + +test_no_wpf() { + test_start "invalid pipeline with no WPF" + + pipe_configure none | ./logger.sh config >> $logfile + format_configure rpf \ + $format 1024x768 0 | ./logger.sh config >> $logfile + + $vsp_runner $mdev input 0 $format | ./logger.sh input.0 >> $logfile + + # The test always passes if the kernel doesn't crash + test_complete pass +} + +test_run() { + test_no_rpf + test_no_wpf +} + +test_init $0 "$features" +test_run |