From patchwork Thu Aug 24 09:30:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 9919639 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.web.codeaurora.org (Postfix) with ESMTP id AE45F60327 for ; Thu, 24 Aug 2017 09:30:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A335228BD7 for ; Thu, 24 Aug 2017 09:30:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 984E828BDC; Thu, 24 Aug 2017 09:30:22 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, 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 52F1F28BCF for ; Thu, 24 Aug 2017 09:30:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751823AbdHXJaU (ORCPT ); Thu, 24 Aug 2017 05:30:20 -0400 Received: from galahad.ideasonboard.com ([185.26.127.97]:34914 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751342AbdHXJaS (ORCPT ); Thu, 24 Aug 2017 05:30:18 -0400 Received: from avalon.bb.dnainternet.fi (dfj612ybrt5fhg77mgycy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id 0FCBC208B1; Thu, 24 Aug 2017 11:28:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1503566926; bh=hnT8CE/yrZNiNZSRxgb0SsE977ecjU+pas1E7qyO7hM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YxPha7UcFJ+3CoHbS8A9BzsXpPa7t4fcOtnGBcYRSA/TFhm69wajZ8Lf9Pp9WYbj1 kc2XMJQeR9Xj6mk0aP8fDZHf0bUwnvWQeNVe1ppeenLTESfj+j2rxe5uOEMIsEkQZb Zi9QRuEugkqZCmQB4Kj3/BW+a5hQaaJv2hi+hzW0= From: Laurent Pinchart To: linux-renesas-soc@vger.kernel.org Cc: Kieran Bingham Subject: [PATCH 3/3] tests: Add BRS test Date: Thu, 24 Aug 2017 12:30:43 +0300 Message-Id: <20170824093043.8606-4-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170824093043.8606-1-laurent.pinchart@ideasonboard.com> References: <20170824093043.8606-1-laurent.pinchart@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: Laurent Pinchart Reviewed-by: Kieran Bingham --- tests/vsp-unit-test-0024.sh | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 tests/vsp-unit-test-0024.sh diff --git a/tests/vsp-unit-test-0024.sh b/tests/vsp-unit-test-0024.sh new file mode 100755 index 000000000000..036429254a8f --- /dev/null +++ b/tests/vsp-unit-test-0024.sh @@ -0,0 +1,45 @@ +#!/bin/sh + +# +# Test composition through the BRS in RGB and YUV formats. +# + +source vsp-lib.sh + +features="rpf.0 rpf.1 brs wpf.0" +formats="RGB24 YUV444M" + +test_brs() { + local format=$1 + local ninputs=$2 + + test_start "BRS in $format with $ninputs inputs" + + pipe_configure rpf-brs $ninputs + format_configure rpf-brs $format 1024x768 $ninputs + + local input + for input in `seq 0 1 $((ninputs-1))` ; do + vsp_runner rpf.$input & + done + vsp_runner wpf.0 + + local result=$(compare_frames) + + test_complete $result +} + +test_main() { + local num_inputs=2 + local format + local ninputs + + for format in $formats ; do + for ninputs in `seq $num_inputs` ; do + test_brs $format $ninputs + done + done +} + +test_init $0 "$features" +test_run