From patchwork Tue Dec 4 15:51:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10712127 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0A683109C for ; Tue, 4 Dec 2018 15:51:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EFB782C1A4 for ; Tue, 4 Dec 2018 15:51:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED9912C1EC; Tue, 4 Dec 2018 15:51:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 880872C1DE for ; Tue, 4 Dec 2018 15:51:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726152AbeLDPvy (ORCPT ); Tue, 4 Dec 2018 10:51:54 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:33616 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726151AbeLDPvy (ORCPT ); Tue, 4 Dec 2018 10:51:54 -0500 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 81AEC591; Tue, 4 Dec 2018 16:51:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1543938711; bh=bR5GPTdsBOk5/FkrwXLxHHoCLg24URa0UAEpA8d3oIc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wmjCj06XRwSbGVxYKhNoQrVIcNTXADIOLL72zZgYhoQ9n48tM0z95q5jSVJxYBhHL CA7KVg7jrbBhavYDZgMLIU5TZzqI1Tz8ZSkvEBoLBL3M5iVSxEegmGruRZcvtkWZef b/g4dsL1oJImaZxRizBlI6DDHJhrn0s6RQuzfgIU= From: Kieran Bingham To: Laurent Pinchart Cc: Kieran Bingham , linux-renesas-soc@vger.kernel.org, Kieran Bingham Subject: [VSP-Tests PATCH 1/7] tests: add pseudo platform test Date: Tue, 4 Dec 2018 15:51:40 +0000 Message-Id: <20181204155146.9726-2-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> References: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Provide an initial test which can run as part of the test suite. This test will report the platform and kernel version, along with the identified paths of required utilities. This will aid in ensuring that required tools are available on a running platform - and report the kernel and platform details in any test suite output for clarification of results. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- tests/vsp-unit-test-0000.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 tests/vsp-unit-test-0000.sh diff --git a/tests/vsp-unit-test-0000.sh b/tests/vsp-unit-test-0000.sh new file mode 100755 index 000000000000..144cfc677b32 --- /dev/null +++ b/tests/vsp-unit-test-0000.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# Report testing conditions + +model=`cat /sys/firmware/devicetree/base/model` + +echo "Test Conditions:" + +function check_all() { + echo " Platform: " "$model" + echo " Kernel release: " `uname -r` + echo " convert: " `which convert` + echo " compare: " `which compare` + echo " killall: " `which killall` + echo " raw2rgbpnm: " `which raw2rgbpnm` + echo " stress: " `which stress` + echo " yavta: " `which yavta` +} + +check_all | column -ts ":" From patchwork Tue Dec 4 15:51:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10712133 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2F23413AF for ; Tue, 4 Dec 2018 15:51:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D9012C19A for ; Tue, 4 Dec 2018 15:51:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1B7492C1DC; Tue, 4 Dec 2018 15:51:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A99542C19A for ; Tue, 4 Dec 2018 15:51:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726420AbeLDPv4 (ORCPT ); Tue, 4 Dec 2018 10:51:56 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:33638 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726151AbeLDPv4 (ORCPT ); Tue, 4 Dec 2018 10:51:56 -0500 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D803CBB4; Tue, 4 Dec 2018 16:51:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1543938712; bh=RJMrip8wmOwn/THyJ3oVJ9X58LUTo46X6/K6+4asXEQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yy01OTWu/XpVdhhIVLagAx98Zdi1pMzzOMQMZiLvpe/YBBPhgWMU/p+thbYz81m0e eMF4tee7EHJQhKVtrEbKVFacEfGIsujGOJH+AP+V81v2OHVhm1tmWSCHo5wIK/xfhZ hIXvRSAAFoskBu8VaFvleT+b853pOaE200yW+cmE= From: Kieran Bingham To: Laurent Pinchart Cc: Kieran Bingham , linux-renesas-soc@vger.kernel.org, Kieran Bingham Subject: [VSP-Tests PATCH 2/7] tests: Provide copy test to validate 1xN streams Date: Tue, 4 Dec 2018 15:51:41 +0000 Message-Id: <20181204155146.9726-3-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> References: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- tests/vsp-unit-test-0025.sh | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 tests/vsp-unit-test-0025.sh diff --git a/tests/vsp-unit-test-0025.sh b/tests/vsp-unit-test-0025.sh new file mode 100755 index 000000000000..57a1fac6e369 --- /dev/null +++ b/tests/vsp-unit-test-0025.sh @@ -0,0 +1,45 @@ +#!/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 1024x768 + test_copy $format 128x128 + test_copy $format 128x1 + + # Skipped : Test framework does not yet support strides != width + #test_copy $format 1x128 + done +} + +test_init $0 "$features" +test_run From patchwork Tue Dec 4 15:51:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10712131 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F262C109C for ; Tue, 4 Dec 2018 15:51:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D945F2C1ED for ; Tue, 4 Dec 2018 15:51:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5F7E2C184; Tue, 4 Dec 2018 15:51:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 361212C1DC for ; Tue, 4 Dec 2018 15:51:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726381AbeLDPv4 (ORCPT ); Tue, 4 Dec 2018 10:51:56 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:33640 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726367AbeLDPvz (ORCPT ); Tue, 4 Dec 2018 10:51:55 -0500 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3FA3DBC7; Tue, 4 Dec 2018 16:51:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1543938712; bh=TxQTr3TX1HyetLm5wi6ylo+409oRogYrRBWkBZbhL8M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=max0UqNbkJgmnTeUvl56l11wthGHKTzysrX2bz4jvIV56vCpXPRXAHUNVOaX2qqoB 0a3M3dK5Wec6TzIYJ3iJ911ALPK6lAYSXJCXR+eJT/9KAww8LLeKT3alM2LyD10T0g j5IpFMC7DKETi7vcDHmHxLtenW8x1+rxY1Jkc7es= From: Kieran Bingham To: Laurent Pinchart Cc: Kieran Bingham , linux-renesas-soc@vger.kernel.org, Kieran Bingham Subject: [VSP-Tests PATCH 3/7] vsp-lib: Provide command line argument parsing Date: Tue, 4 Dec 2018 15:51:42 +0000 Message-Id: <20181204155146.9726-4-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> References: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Extend the vsp-lib to support command line parsing for all tests. The arguments parsed here should be common to all tests, and initially provide shell level verbose debug output, and the option to easily keep frames output by the VSP1. Signed-off-by: Kieran Bingham --- scripts/vsp-lib.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index 0f3992a7827e..56969606382f 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -1094,3 +1094,37 @@ test_complete() { test_run() { test_main | ./logger.sh error >> $logfile } + +# ------------------------------------------------------------------------------ +# Common argument parsing +# +# non-recognised arguments are restored, to allow tests to implement their own +# parsing if necessary. + +POSITIONAL=() +while [[ $# -gt 0 ]] +do +case $1 in + -x|--debug) + set -x; + shift + ;; + -k|--keep-frames) + export VSP_KEEP_FRAMES=1 + shift + ;; + -h|--help) + echo "$(basename $0): VSP Test library" + echo " -x|--debug enable shell debug" + echo " -k|--keep-frames keep generated and captured frames" + echo " -h|--help this help" + exit + shift + ;; + *) # unknown option + POSITIONAL+=("$1") # save it in an array for later + shift # past argument + ;; +esac +done +set -- "${POSITIONAL[@]}" # restore positional parameters From patchwork Tue Dec 4 15:51:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10712143 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AFCF013AF for ; Tue, 4 Dec 2018 15:52:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A1A272C199 for ; Tue, 4 Dec 2018 15:52:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F5112C1D8; Tue, 4 Dec 2018 15:52:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C2C52C1CB for ; Tue, 4 Dec 2018 15:52:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726541AbeLDPv5 (ORCPT ); Tue, 4 Dec 2018 10:51:57 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:33640 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726367AbeLDPv5 (ORCPT ); Tue, 4 Dec 2018 10:51:57 -0500 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 9BB42E15; Tue, 4 Dec 2018 16:51:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1543938712; bh=KWh3Bvz+kPEnhtYlKNlala5yOg6KJbAC4uw8nCVmtpo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KusESBfvfhCEhgHXAxs9MGVDL5YUePvAKL9EW3FwkjbQLxCqCUcKE/heKNTFBzuPy Iu0qDJ5LKW0KbiYBqIBje+VtbCs+8epE1qLNkhfMJ7KLah6PIfhti8lsutLWlXHo5r K0k9+ygkhNby894lyxTURey7HHSsPQJ2fUHKt+Ts= From: Kieran Bingham To: Laurent Pinchart Cc: Kieran Bingham , linux-renesas-soc@vger.kernel.org, Kieran Bingham Subject: [VSP-Tests PATCH 4/7] vsp-lib: trivial: Fix spelling of Reference Date: Tue, 4 Dec 2018 15:51:43 +0000 Message-Id: <20181204155146.9726-5-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> References: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- scripts/vsp-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index 56969606382f..cf15a045ea8c 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -95,7 +95,7 @@ vsp1_set_control() { } # ----------------------------------------------------------------------------- -# Referance frame generation +# Reference frame generation # reference_frame() { From patchwork Tue Dec 4 15:51:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10712139 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 689A113AF for ; Tue, 4 Dec 2018 15:52:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B9C82C1DF for ; Tue, 4 Dec 2018 15:52:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A0942C1F4; Tue, 4 Dec 2018 15:52:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC2042C1D7 for ; Tue, 4 Dec 2018 15:52:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726740AbeLDPv6 (ORCPT ); Tue, 4 Dec 2018 10:51:58 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:33638 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726151AbeLDPv6 (ORCPT ); Tue, 4 Dec 2018 10:51:58 -0500 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 06AD7E2E; Tue, 4 Dec 2018 16:51:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1543938713; bh=8OBza3eMqqqm9qH5ALUYGyuQT5hAzO6LefasHwJUASU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ntyEqWvM4wJnc83+m6K+FuP9b7/ABV7Fr4UD1j7hU+2CDDWrhULRp64zxKEOjMbTx Jjl6WkVeOdK9pcRMUsjoxwA6dV7E1mHe1KABRUZYXHoT6pQ2CLgvCgCs31l5YjbstC LRqQy3omZ6YD1GQAoeWY5J15fUNwJzVuQ34Em2gw= From: Kieran Bingham To: Laurent Pinchart Cc: Kieran Bingham , linux-renesas-soc@vger.kernel.org, Kieran Bingham Subject: [VSP-Tests PATCH 5/7] vsp-lib: Allow forcing pixel perfect comparisons Date: Tue, 4 Dec 2018 15:51:44 +0000 Message-Id: <20181204155146.9726-6-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> References: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Provide a means for the tester to request pixel perfect matches on tests. This can be either through setting the environment variable VSP_PIXEL_PERFECT, or by passing either '-p' or '--pixel-perfect' on the test command line. Signed-off-by: Kieran Bingham --- scripts/vsp-lib.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index cf15a045ea8c..9140254c7459 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -287,7 +287,11 @@ compare_frames() { params=${params//)/_} params=$pipe-$in_fmt-$out_fmt-$size$params - if [ x$__vsp_pixel_perfect != xtrue ] ; then + # The system can hint when pixel-perfection is not supported, + # however the user can override to force this requirement with + # VSP_PIXEL_PERFECT=1 in the environment or by passing -p, or + # --pixel-perfect on the commandline. + if [ x$__vsp_pixel_perfect != xtrue -a x$VSP_PIXEL_PERFECT != x1 ] ; then method=fuzzy fi @@ -1113,10 +1117,15 @@ case $1 in export VSP_KEEP_FRAMES=1 shift ;; + -p|--pixel-perfect) + export VSP_PIXEL_PERFECT=1 + shift + ;; -h|--help) echo "$(basename $0): VSP Test library" echo " -x|--debug enable shell debug" echo " -k|--keep-frames keep generated and captured frames" + echo " -p|--pixel-perfect frames must match with pixel perfection" echo " -h|--help this help" exit shift From patchwork Tue Dec 4 15:51:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10712137 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 19C52109C for ; Tue, 4 Dec 2018 15:52:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07E152C1E8 for ; Tue, 4 Dec 2018 15:52:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 058842C1E2; Tue, 4 Dec 2018 15:52:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0AF62C1EC for ; Tue, 4 Dec 2018 15:52:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726445AbeLDPv7 (ORCPT ); Tue, 4 Dec 2018 10:51:59 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:33640 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726421AbeLDPv7 (ORCPT ); Tue, 4 Dec 2018 10:51:59 -0500 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5F969E4F; Tue, 4 Dec 2018 16:51:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1543938713; bh=sjGCWQYsuuF0eM3+Tmj3Kb12LTguivikSA0X18sHq7Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FdEomJCF+ajQPM0QilEhQMJTPD6dIzVU3pMPq8ZlMW4sNH1OHljhQGREqqcu/WzyQ iL21ZR48LLQjQZxA7gfKP2fhIAgWAzRe+y0ghLnwr/l10WhBu2f1r/cLK3ZGME8ysP KoSGggphp3zZ5PHp3ZWi37mTEmh/aeWikG7+YCco= From: Kieran Bingham To: Laurent Pinchart Cc: Kieran Bingham , linux-renesas-soc@vger.kernel.org, Kieran Bingham Subject: [VSP-Tests PATCH 6/7] vsp-lib: Support late queuing of buffers in yavta Date: Tue, 4 Dec 2018 15:51:45 +0000 Message-Id: <20181204155146.9726-7-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> References: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Provide the pass-through option of --queue-late to vsp-runner, to request that yavta will queue frames after the stream has started. Signed-off-by: Kieran Bingham --- scripts/vsp-lib.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index 9140254c7459..3d2792707d24 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -898,6 +898,7 @@ vsp_runner() { local count=10 local pause= local skip=7 + local queue_late= for option in $* ; do case $option in @@ -916,6 +917,8 @@ vsp_runner() { --skip=*) skip=${option/--skip=/} ;; + --queue-late) + queue_late=queue-late *) return 1 @@ -959,6 +962,7 @@ vsp_runner() { $yavta -c$count -n $buffers ${format:+-f $format} ${size:+-s $size} \ ${skip:+--skip $skip} ${file:+--file=$file} ${pause:+-p$pause} \ + ${queue_late:+--$queue_late} \ $videodev | ./logger.sh $entity >> $logfile } From patchwork Tue Dec 4 15:51:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10712141 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 34DB413AF for ; Tue, 4 Dec 2018 15:52:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23C8F2C0F4 for ; Tue, 4 Dec 2018 15:52:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 215BB2C1EA; Tue, 4 Dec 2018 15:52:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD2F92C0F4 for ; Tue, 4 Dec 2018 15:52:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726421AbeLDPwA (ORCPT ); Tue, 4 Dec 2018 10:52:00 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:33638 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726725AbeLDPv7 (ORCPT ); Tue, 4 Dec 2018 10:51:59 -0500 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id B9F77E58; Tue, 4 Dec 2018 16:51:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1543938713; bh=fyWYvjN3xNiFOSSaIFeQbc4FLn5Lyoqx8TexaB+zPag=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dIdU5hrirRdfPenaZXca9Dl/clsArOkNKPS6F3vRKXxtTVtyssIOnpvXkGWRyYmVV b3LFmEuqPYLkRFv1gCmLjN8UCJEFcJgYIzQaiKQwNonF8TR+WZrHAx4xhtQFTdTgzF nBmOljkIPg+VNMDp83ZKcthL6o/h9UUuyZIQqLYA= From: Kieran Bingham To: Laurent Pinchart Cc: Kieran Bingham , linux-renesas-soc@vger.kernel.org, Kieran Bingham Subject: [VSP-Tests PATCH 7/7] vsp-lib: Reset controls to defaults on each test run Date: Tue, 4 Dec 2018 15:51:46 +0000 Message-Id: <20181204155146.9726-8-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> References: <20181204155146.9726-1-kieran.bingham@ideasonboard.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some of our tests set flipping and rotation controls, and the VSP cell can be used again by later tests. If these controls are not reset, then that operation is applied to later tests incorrectly causing that test to fail. In an ideal world, tests should clean up after themselves, and leave the system in a known state. However the world is not ideal and we would not be able to guarantee any previous system state before a test was run anyway. Therefore it is more effective to reset state at the beginning of a test. To repair this - reset all control values to their defaults at the start of every test during test_init() Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- scripts/vsp-lib.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scripts/vsp-lib.sh b/scripts/vsp-lib.sh index 3d2792707d24..33442816f208 100755 --- a/scripts/vsp-lib.sh +++ b/scripts/vsp-lib.sh @@ -94,6 +94,14 @@ vsp1_set_control() { $yavta --no-query -w "$control $value" $subdev | ./logger.sh "$entity" >> $logfile } +vsp1_reset_controls() { + local entity=$1 + local subdev=$(vsp1_entity_subdev $entity) + + echo "Resetting controls on $subdev" | ./logger.sh "$entity" >> $logfile + $yavta --no-query --reset-controls $subdev | ./logger.sh "$entity" >> $logfile +} + # ----------------------------------------------------------------------------- # Reference frame generation # @@ -1082,6 +1090,9 @@ test_init() { dev=$(vsp1_device $mdev) echo "Using device $mdev ($dev)" | ./logger.sh config >> $logfile + # Reset any rotation or flipping controls + vsp1_reset_controls wpf.0 + vsp_runner=./vsp-runner.sh }