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