summaryrefslogtreecommitdiff
path: root/tests/vsp-unit-test-0006.sh
blob: a7daad791bbe32bb18e336c948fe5c44b8de1514 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/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
	format_configure wpf $format 1024x768 0

	$vsp_runner $mdev output 0 $format

	# 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
	format_configure rpf $format 1024x768 0

	$vsp_runner $mdev input 0 $format

	# The test always passes if the kernel doesn't crash
	test_complete pass
}

test_main() {
	test_no_rpf
	test_no_wpf
}

test_init $0 "$features"
test_run