From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3F7B445E5F; Mon, 9 Dec 2024 21:53:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 112FB4042E; Mon, 9 Dec 2024 21:53:09 +0100 (CET) Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) by mails.dpdk.org (Postfix) with ESMTP id D0132402E5 for ; Mon, 9 Dec 2024 21:53:07 +0100 (CET) Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-7b6d2ff5048so129576685a.3 for ; Mon, 09 Dec 2024 12:53:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1733777587; x=1734382387; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eBkUxXDaBbiQgHSUeZhH12Mn6e+KYc/1aNJ2gCfo2fk=; b=X4C0OxpmXk0iZ9A6LTgb7FFOPf/RK1Ylc3cV9smjiBD59VaSY5Jv1YY/X3pq15kmQ8 c0mjdRCiSn6q7awNWEDf620xSrZ+RhvxgA4i6CTDre0qHg+olGup2rQHjrHm43Y1nEKg 3oQ+GBY6Xt53vcTQ7ns/0E1Y152wB70Ai2yKE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733777587; x=1734382387; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eBkUxXDaBbiQgHSUeZhH12Mn6e+KYc/1aNJ2gCfo2fk=; b=W+SpPi3i3UEgsK/X/zUx8FwY7+bX7UsXPfPYgqeBdWE+kwKb7r33+0hKSdZ1aoWKCI 4skElzEJcNMJ9CaSjRaIDofEneRZ+ze6X7qFlyz4SYK3OG/rWrW3mAy3l50RB5UNAE0u 1ds3VgRALpiIyI6TEUcE/e+wmMISDpIiS6LG7hniCt7nQIX5q/xUTWsTxTggEceat37u UG2OzNZWM7iwexbikzWwzGgekMQZ3//J0X3JipkRsclCa5qCDJo1P7l/f4p9w2puyoum ioqAttk7NvKHyp17634PZXSnnhejDFfg+G2+8uqCqItHOOtC9qBF5qXhB5aIYPNpUGyq iXNA== X-Gm-Message-State: AOJu0Yw+gBbWoeBVTo+iA4x4+eDRG3dKspudG1pIncRT1UB+4+aa4fm0 Sc7EWHIT5JU4i/J6PYIpchmWPiuupBMiQA0xnWijaoe9n222YqNkBySUkyhJiwE= X-Gm-Gg: ASbGncs+TcgBc26avigc2Iyp0ttCvhFDDJJjY7kdBnGhRMP7y/1arN9AA8Qat43sLfk uI8jJYiH4jTRlXqLytw8cCfhRsKujpogLKc5B8jnemO8NyLqIo6NRlzCi3lmEPZ1LQIg3scEmT2 3tRdzrFhFT1O2J+xxZvs77JkmVE/Yk0XLq19ESWArwaPR6J9skKjAHMOdIvfknJ9r2taes7abWM zKzhWTL5j7D8zhcu7mEghPTy9OkamxN+qMcbexaEwawLYbbQtLxKPLsxgrcAw5aQ5ivuZxoAmX9 YipGB6x/m2Se X-Google-Smtp-Source: AGHT+IEMY4C2nm27BSS+WPzYrSvB/JBpNTPsJ6efy3j17WKPMNJSvz4S3MJUIjCjMAYc6wO3HYZWQg== X-Received: by 2002:a05:620a:63c8:b0:7b6:d632:37be with SMTP id af79cd13be357-7b6d63238a8mr810191885a.4.1733777587267; Mon, 09 Dec 2024 12:53:07 -0800 (PST) Received: from dean-laptop.iol.unh.edu ([2606:4100:3880:1271:f9bd:24da:464d:6294]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b6d9a9fdf3sm85502585a.91.2024.12.09.12.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 12:53:06 -0800 (PST) From: Dean Marx To: probb@iol.unh.edu, npratte@iol.unh.edu, luca.vizzarro@arm.com, yoan.picchi@foss.arm.com, Honnappa.Nagarahalli@arm.com, paul.szczepanek@arm.com Cc: dev@dpdk.org, Dean Marx Subject: [PATCH v1 1/1] dts: add EAL sanity check suite Date: Mon, 9 Dec 2024 16:54:06 -0500 Message-ID: <20241209215406.6982-2-dmarx@iol.unh.edu> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20241209215406.6982-1-dmarx@iol.unh.edu> References: <20241209215406.6982-1-dmarx@iol.unh.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Add a test suite to replace hello_world which simply starts and stops a testpmd session. The user can use this as a sanity check to verify their configuration. Signed-off-by: Dean Marx --- dts/tests/TestSuite_eal.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 dts/tests/TestSuite_eal.py diff --git a/dts/tests/TestSuite_eal.py b/dts/tests/TestSuite_eal.py new file mode 100644 index 0000000000..35660178f0 --- /dev/null +++ b/dts/tests/TestSuite_eal.py @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2024 University of New Hampshire + +"""DPDK EAL sanity check suite. + +Starts and stops a testpmd session to verify EAL parameters +are properly configured. +""" + +from framework.remote_session.testpmd_shell import TestPmdShell +from framework.test_suite import TestSuite, func_test + + +class TestEal(TestSuite): + """EAL test suite. One test case, which starts and stops a testpmd session.""" + + @func_test + def test_verify_eal(self) -> None: + """EAL sanity test. + + Steps: + Start testpmd session and check status. + Verify: + The testpmd session is alive after starting. + """ + with TestPmdShell(node=self.sut_node) as testpmd: + testpmd.start() + self.verify(True, "True") -- 2.44.0