From patchwork Mon Aug 13 03:05:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 956793 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41pgb36yrZz9s8T for ; Mon, 13 Aug 2018 13:05:35 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="eQAwljl0"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41pgb34Vx3zF0bq for ; Mon, 13 Aug 2018 13:05:35 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="eQAwljl0"; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41pgZf27lpzF0WL for ; Mon, 13 Aug 2018 13:05:14 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.b="eQAwljl0"; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 41pgZd73F5z9s8T; Mon, 13 Aug 2018 13:05:13 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ozlabs.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1534129514; bh=K9FVABnPY5QyT5Av/LIC71jQCwY7o4+YV1SGksmi4Qc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eQAwljl0SwaXCFSY1vj574Zh7mdcF8jrdp4bVWIpXFM91YVtLHhOdJZwmMuAHUa7O lTHAtpl1x/aoH+y9KuldPovEwS88oYZ+qvg0mTDuKG/RfaTShsfaZZ94+nZ7PUDmoO c91IjDJJPeR0OHOiHxJhTV3MI1jZaOiG/pAJ9WxX7k5s9Wm56B1fLypgGmP6u6e4O4 b9SebLkJ8L74nwhkJX/Hg80ddElvfP5hmwzxopOWTyT9BzvCEgDUuXapgA10pIM7mh oXj0ueyLw0OAgueAVvZk7/Mn4Knt2so0LmWrDdNMXBGUqIIT8b8AtVxuOJ+WdMZFIX 5V5Nzqb/lV0qg== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Mon, 13 Aug 2018 13:05:06 +1000 Message-Id: <20180813030506.429060-5-amitay@ozlabs.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180813030506.429060-1-amitay@ozlabs.org> References: <20180813030506.429060-1-amitay@ozlabs.org> Subject: [Pdbg] [PATCH 4/4] tests: Add target selection tests X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- Makefile.am | 8 +- tests/test_selection.sh | 496 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 502 insertions(+), 2 deletions(-) create mode 100755 tests/test_selection.sh diff --git a/Makefile.am b/Makefile.am index d7254ff..571660d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,7 +6,10 @@ GIT_SHA1 ?= `git --work-tree=$(top_srcdir) --git-dir=$(top_srcdir)/.git describe bin_PROGRAMS = pdbg check_PROGRAMS = optcmd_test -TESTS = optcmd_test +PDBG_TESTS = \ + tests/test_selection.sh + +TESTS = optcmd_test $(PDBG_TESTS) TEST_EXTENSIONS = .sh SH_LOG_DRIVER = $(SHELL) $(srcdir)/tests/run_test.sh @@ -31,7 +34,8 @@ EXTRA_DIST = \ generate_dt_header.sh \ tests/driver.sh \ tests/run_test.sh \ - tests/test_driver.sh + tests/test_driver.sh \ + $(PDBG_TESTS) if TARGET_ARM DT_ARM = p8-fsi.dts p8-i2c.dts \ diff --git a/tests/test_selection.sh b/tests/test_selection.sh new file mode 100755 index 0000000..606b99c --- /dev/null +++ b/tests/test_selection.sh @@ -0,0 +1,496 @@ +#!/bin/sh + +. $(dirname "$0")/driver.sh + +test_group "target selection tests" + +arch=$(arch 2>/dev/null) + +do_skip () +{ + if [ "$arch" != "x86_64" ] ; then + test_skip + fi +} + +test_result 0 <