From patchwork Fri Aug 31 13:41:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10583757 X-Patchwork-Delegate: geert@linux-m68k.org 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 1C1ED13AC for ; Fri, 31 Aug 2018 13:41:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 059B52BE97 for ; Fri, 31 Aug 2018 13:41:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0418E2BEA6; Fri, 31 Aug 2018 13:41:23 +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 AEAA92BEBC for ; Fri, 31 Aug 2018 13:41:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728413AbeHaRsx (ORCPT ); Fri, 31 Aug 2018 13:48:53 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:44258 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728428AbeHaRsx (ORCPT ); Fri, 31 Aug 2018 13:48:53 -0400 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 20207B8E; Fri, 31 Aug 2018 15:41:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1535722880; bh=enFqQj65SmKFciTUZnNoy9FkRPx0LX2RB6uYA9G4EF4=; h=From:To:Cc:Subject:Date:From; b=IE7R6t/VjHtuBcmgiDOO81DBLqmySIjRtPGe+vrPCjjx4xEzM2wDeuUBSLO1HG9mL Fvp2+ByAqZldVEIi2BFx62KCjodqDvhwp4MDuf98v6cx0NBEOLN0jXn7bEs913wePB Xyee3szaW3V48Df7XxKYlLln6k3A7aVybFuEFsFU= From: Kieran Bingham To: Laurent Pinchart Cc: linux-renesas-soc@vger.kernel.org, Kieran Bingham Subject: [VSP-Tests: PATCH] tests: Provide copy test to validate 1xN streams Date: Fri, 31 Aug 2018 14:41:16 +0100 Message-Id: <20180831134116.27510-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.17.1 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..5c8980c40d89 --- /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 -> UDS -> 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