From patchwork Mon Jan 15 16:47:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10164801 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 2A57D601C0 for ; Mon, 15 Jan 2018 16:48:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 155C72018E for ; Mon, 15 Jan 2018 16:48:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 09C07201A4; Mon, 15 Jan 2018 16:48: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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI,URIBL_GREY 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 7B6422018E for ; Mon, 15 Jan 2018 16:48:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965789AbeAOQsA (ORCPT ); Mon, 15 Jan 2018 11:48:00 -0500 Received: from o1.7nn.fshared.sendgrid.net ([167.89.55.65]:51301 "EHLO o1.7nn.fshared.sendgrid.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965492AbeAOQr7 (ORCPT ); Mon, 15 Jan 2018 11:47:59 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.me; h=from:to:cc:subject; s=smtpapi; bh=c8btDRJlJPoWW3PY1/s8lBs4Aek=; b=juHHXJBtScpMdACiajxYK6D9Fq8MV7V9P2JSt3IYjLMKNJsgMeW3jnaXPMgdcr 6AM6m8dNCzjTsTLLVL2iHpbqLs3un6EsruefCXrD6ovJPiZznNFOB9o2+89zy6KH AUMqRHtK8xnn4CT0QJBqX/19uqL+s5Vgz3yuNj5KHB3iI= Received: by filter0017p3mdw1.sendgrid.net with SMTP id filter0017p3mdw1-28489-5A5CDB3E-B 2018-01-15 16:47:58.189544151 +0000 UTC Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by ismtpd0004p1lon1.sendgrid.net (SG) with ESMTP id w2iPBL3bRKu6zOK3kJMTeQ Mon, 15 Jan 2018 16:47:57.948 +0000 (UTC) From: Kieran Bingham To: Laurent Pinchart Cc: linux-renesas-soc@vger.kernel.org, Kieran Bingham Subject: [PATCH] [VSP-Tests] tests: add pseudo platform test Date: Mon, 15 Jan 2018 16:47:58 +0000 (UTC) Message-Id: <1516034870-27229-1-git-send-email-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.7.4 X-SG-EID: 8V71jyRnV10cxvLYTaW9vh8CCDNIgitSt4v541MRe1uDw0Xke9mkdk+md0c3JBuP2qD4mAL502+3L1 +xgZAiug9mFlipZ7neyrMyvzO+grvdlo0Kd3cuWw+Z9OkInS3MoFqN/nU/2wCkg8hb5w3SdfMjF90d v0hqGPJGoL3KwIVIeLV/DYcwPoKJx1WRctW4v/v0eVvAyh/gEI8bGMrozwmCo6YDschRz3HcAdd6qC 3RtGiVB69CgofktmjIbfpE4D8gMuvk9I5nYIUkpaQ1Qw== 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 From: Kieran Bingham 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 --- 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 ":"