From patchwork Thu Oct 1 07:08:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1374874 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C246q6sfSz9sVK for ; Thu, 1 Oct 2020 17:11:31 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (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.a=rsa-sha256 header.s=201707 header.b=yP9MXqPu; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4C246q5nCyzDqTn for ; Thu, 1 Oct 2020 17:11:31 +1000 (AEST) 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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4C246j0N5rzDqTC for ; Thu, 1 Oct 2020 17:11:25 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (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.a=rsa-sha256 header.s=201707 header.b=yP9MXqPu; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4C246c10Bcz9sVL; Thu, 1 Oct 2020 17:11:19 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1601536284; bh=aZFm1sGl3/fbXlzrzknoviTQf2ifkBG7fMNEWd+R6EE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yP9MXqPu9RMOSrUwzfAv2AvL2ZjjQ41TQKwfy+NxlJcgjtbkyTbD9dA3Hfputk6lu mAoMgH2yQtw84NpYBAPfcSmoOCxT18O50iYHgyuzZV8VuO380W+0Q6HRbOfW0w5CSf TMGSRgGOigGUjqpLEH7bvxVHJtri5NFcvR4d1RQi2UpK8FPEYA74iqcRBHS6rQMEz1 sW7zOf5ykU37uojVqfppYQTPUUorSREOMZ8CAxgBqW/H43oHQ8lqHd16mTaGcw3BER CZEmnANgLFfsLxGwW1JznZkP3yG5IWcBS7YgMGCI5Xloz5eZsCynZcrsHrAZqL9rM1 4nZZZc4fvURUQ== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 1 Oct 2020 17:08:02 +1000 Message-Id: <20201001070814.102735-9-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201001070814.102735-1-amitay@ozlabs.org> References: <20201001070814.102735-1-amitay@ozlabs.org> MIME-Version: 1.0 Subject: [Pdbg] [PATCH v2 08/20] tests: Add P10 address translation tests wrapper X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 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 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs Reviewed-by: Joel Stanley --- Makefile.am | 4 +- tests/test_p10_fapi_translation.sh | 206 +++++++++++++++++++++++++++++ 2 files changed, 209 insertions(+), 1 deletion(-) create mode 100755 tests/test_p10_fapi_translation.sh diff --git a/Makefile.am b/Makefile.am index ceeadb9..d902863 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,13 +32,15 @@ PDBG_TESTS = \ tests/test_attr_array.sh \ tests/test_attr_packed.sh \ tests/test_traverse.sh \ - tests/test_p9_fapi_translation.sh + tests/test_p9_fapi_translation.sh \ + tests/test_p10_fapi_translation.sh TESTS = $(libpdbg_tests) optcmd_test $(PDBG_TESTS) tests/test_tree2.sh: fake2.dtb fake2-backend.dtb tests/test_prop.sh: fake.dtb fake-backend.dtb tests/test_p9_fapi_translation.sh: p9.dtb bmc-kernel.dtb +tests/test_p10_fapi_translation.sh: p10.dtb bmc-kernel.dtb test: $(libpdbg_tests) diff --git a/tests/test_p10_fapi_translation.sh b/tests/test_p10_fapi_translation.sh new file mode 100755 index 0000000..5e58ccb --- /dev/null +++ b/tests/test_p10_fapi_translation.sh @@ -0,0 +1,206 @@ +#!/bin/sh + +. $(dirname "$0")/driver.sh + +test_group "p10 fapi translation tests" + +export PDBG_BACKEND_DTB=bmc-kernel.dtb +export PDBG_DTB=p10.dtb + +test_result 0 <