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 ":"