From 2db264d5453536301fb81a8427df89843210e770 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 16 Jun 2016 22:30:12 +0300 Subject: vsp-lib: Don't pass WPF index and format to comparison functions The information is already known to the pipeline configuration functions, store it internally and reuse it instead of having to pass it explicitly. Signed-off-by: Laurent Pinchart --- tests/vsp-unit-test-0001.sh | 2 +- tests/vsp-unit-test-0002.sh | 2 +- tests/vsp-unit-test-0003.sh | 2 +- tests/vsp-unit-test-0004.sh | 2 +- tests/vsp-unit-test-0005.sh | 2 +- tests/vsp-unit-test-0007.sh | 2 +- tests/vsp-unit-test-0008.sh | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/vsp-unit-test-0001.sh b/tests/vsp-unit-test-0001.sh index f0e41da..c5b71e1 100755 --- a/tests/vsp-unit-test-0001.sh +++ b/tests/vsp-unit-test-0001.sh @@ -20,7 +20,7 @@ test_wpf_packing() { $vsp_runner $mdev input 0 ARGB32 & $vsp_runner $mdev output 0 $format - result=$(compare_frames exact reference $format 0) + result=$(compare_frames exact reference) test_complete $result } diff --git a/tests/vsp-unit-test-0002.sh b/tests/vsp-unit-test-0002.sh index 49c0d43..0b97965 100755 --- a/tests/vsp-unit-test-0002.sh +++ b/tests/vsp-unit-test-0002.sh @@ -20,7 +20,7 @@ test_wpf_packing() { $vsp_runner $mdev input 0 YUYV & $vsp_runner $mdev output 0 $format - result=$(compare_frames fuzzy reference $format 0) + result=$(compare_frames fuzzy reference) test_complete $result } diff --git a/tests/vsp-unit-test-0003.sh b/tests/vsp-unit-test-0003.sh index c79cc8a..9b04b60 100755 --- a/tests/vsp-unit-test-0003.sh +++ b/tests/vsp-unit-test-0003.sh @@ -23,7 +23,7 @@ test_scale() { $vsp_runner $mdev input 0 $format & $vsp_runner $mdev output 0 $format - result=$(compare_frames exact scaled $format 0) + result=$(compare_frames exact scaled) test_complete $result } diff --git a/tests/vsp-unit-test-0004.sh b/tests/vsp-unit-test-0004.sh index fd49af1..12a2545 100755 --- a/tests/vsp-unit-test-0004.sh +++ b/tests/vsp-unit-test-0004.sh @@ -21,7 +21,7 @@ test_histogram() { $vsp_runner $mdev input 0 $format & $vsp_runner $mdev output 0 $format - result=$(compare_histograms $format 0) + result=$(compare_histograms) test_complete $result } diff --git a/tests/vsp-unit-test-0005.sh b/tests/vsp-unit-test-0005.sh index 2ba11bf..168ee55 100755 --- a/tests/vsp-unit-test-0005.sh +++ b/tests/vsp-unit-test-0005.sh @@ -21,7 +21,7 @@ test_rpf() { $vsp_runner $mdev input $rpf $format & $vsp_runner $mdev output 0 $format - result=$(compare_frames exact reference $format 0) + result=$(compare_frames exact reference) test_complete $result } diff --git a/tests/vsp-unit-test-0007.sh b/tests/vsp-unit-test-0007.sh index 68bd838..fa45422 100755 --- a/tests/vsp-unit-test-0007.sh +++ b/tests/vsp-unit-test-0007.sh @@ -23,7 +23,7 @@ test_bru() { done $vsp_runner $mdev output 0 $format - result=$(compare_frames fuzzy composed-$ninputs $format 0) + result=$(compare_frames fuzzy composed-$ninputs) test_complete $result } diff --git a/tests/vsp-unit-test-0008.sh b/tests/vsp-unit-test-0008.sh index be3db96..15379d4 100755 --- a/tests/vsp-unit-test-0008.sh +++ b/tests/vsp-unit-test-0008.sh @@ -30,7 +30,7 @@ test_scale() { $vsp_runner $mdev input 0 $format & $vsp_runner $mdev output 0 $format - result=$(compare_frames exact scaled $format 0) + result=$(compare_frames exact scaled) test_complete $result } -- cgit v1.2.3