From patchwork Tue Jul 11 19:30:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Spewock X-Patchwork-Id: 129475 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E5E9F42E49; Tue, 11 Jul 2023 21:31:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BA16940A89; Tue, 11 Jul 2023 21:31:48 +0200 (CEST) Received: from mail-pl1-f228.google.com (mail-pl1-f228.google.com [209.85.214.228]) by mails.dpdk.org (Postfix) with ESMTP id 8D5504003C for ; Tue, 11 Jul 2023 21:31:47 +0200 (CEST) Received: by mail-pl1-f228.google.com with SMTP id d9443c01a7336-1b8ad907ba4so31371715ad.0 for ; Tue, 11 Jul 2023 12:31:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1689103906; x=1691695906; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=k2w5eyP/pk8midvbqdfJqnnJoUNJSQv4reb7f7XlqkA=; b=VLKEG2yNzkFBU0n5bSUL9C2m+kPPW1LX7X9UK4/IUaiYeAVUqOPnwN6cIDxKzpKjZl 7Bsg1wdqrmoYtj+EiyLao0wD+Xwcp4BUt1JiuagPaM8caLyfdN2g+zCUnHf8MOLUO08F w0JF+WVQp05G7fOvqcbmoIsllTaKo9G3qhIVs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689103906; x=1691695906; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=k2w5eyP/pk8midvbqdfJqnnJoUNJSQv4reb7f7XlqkA=; b=Re//NU9yBmqdbTmLasV0sFy1YpjX1f8L7XXdwMtTdhgPRaeNwvt6CbfWg5cPBSzLKj UdmvHsMGw5uzQE2B/eakztEZyrKCEoYTf3+SK1CYVaU/kShZpVuZfDbYMcQFCu2fbian cXyW465iEZmWaLrneFvnS2JRXVXNxXcFm33nCggMKoFRyocG8njtiBQbsM9WzVrCSSoq PXNDo7ejrkSSZSuG2NFH3N5n4fTngWGLJY8nQaGAJa43bABYXX2vXZvwA0U0Txq4Qqud P0kOdEBkgTM3PCPKI0GbiXCuvFi+YRInWQzquJ+evOCUqtE7VRON4FtJvTOQIFzeUXNs TTlg== X-Gm-Message-State: ABy/qLa6IZlBg6wUXiM3vkxfEcLE11TiK2SBld5qbW/pOpGc/ZeQklOJ Rq4aNqb3XH1c7M7avLdwzFzJhO3+abrPPxy83fw/MVV9KUMpwMlN3WRIjKOhod46+A== X-Google-Smtp-Source: APBJJlGJkWVnR8MTDVfLorrc9NbABq7JXdQtCqy+YaKd1/63KEEdJgKrzGRCy984M5T3EL2FPGFiZI/NuqmP X-Received: by 2002:a17:902:ce8b:b0:1b9:e591:db38 with SMTP id f11-20020a170902ce8b00b001b9e591db38mr4815662plg.8.1689103906648; Tue, 11 Jul 2023 12:31:46 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id m13-20020a170902bb8d00b001b9de120478sm183408pls.50.2023.07.11.12.31.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jul 2023 12:31:46 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1271:90f9:1b64:f6e6:867f]) by postal.iol.unh.edu (Postfix) with ESMTP id B85AF605246B; Tue, 11 Jul 2023 15:31:45 -0400 (EDT) From: jspewock@iol.unh.edu To: Honnappa.Nagarahalli@arm.com, juraj.linkes@pantheon.tech, thomas@monjalon.net, lijuan.tu@intel.com, wathsala.vithanage@arm.com, probb@iol.unh.edu Cc: dev@dpdk.org, Jeremy Spewock Subject: [PATCH v3 0/2] Add DTS smoke tests Date: Tue, 11 Jul 2023 15:30:33 -0400 Message-ID: <20230711193127.17205-2-jspewock@iol.unh.edu> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 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 From: Jeremy Spewock This version of the series addresses comments and improvements listed on the previous non-RFC patch. RFCs for this patch: * v3: https://mails.dpdk.org/archives/dev/2023-June/269859.html * v2: https://mails.dpdk.org/archives/dev/2023-May/267915.html * v1: https://mails.dpdk.org/archives/dev/2023-April/266580.html Previous patch: * v1: https://mails.dpdk.org/archives/dev/2023-June/271309.html * v2: https://mails.dpdk.org/archives/dev/2023-July/272833.html Jeremy Spewock (2): dts: add smoke tests dts: add paramiko to dependencies dts/conf.yaml | 17 +- dts/framework/config/__init__.py | 105 +++++++++-- dts/framework/config/conf_yaml_schema.json | 142 +++++++++++++- dts/framework/dts.py | 87 ++++++--- dts/framework/exception.py | 12 ++ dts/framework/remote_session/__init__.py | 11 +- dts/framework/remote_session/os_session.py | 53 +++++- dts/framework/remote_session/posix_session.py | 29 ++- .../remote_session/remote/__init__.py | 10 + .../remote/interactive_remote_session.py | 82 ++++++++ .../remote/interactive_shell.py | 107 +++++++++++ .../remote_session/remote/testpmd_shell.py | 75 ++++++++ dts/framework/test_result.py | 37 +++- dts/framework/test_suite.py | 10 +- dts/framework/testbed_model/node.py | 2 + dts/framework/testbed_model/sut_node.py | 176 +++++++++++++----- dts/framework/utils.py | 2 + dts/poetry.lock | 160 ++++++++++++---- dts/pyproject.toml | 1 + dts/tests/TestSuite_smoke_tests.py | 113 +++++++++++ 20 files changed, 1097 insertions(+), 134 deletions(-) create mode 100644 dts/framework/remote_session/remote/interactive_remote_session.py create mode 100644 dts/framework/remote_session/remote/interactive_shell.py create mode 100644 dts/framework/remote_session/remote/testpmd_shell.py create mode 100644 dts/tests/TestSuite_smoke_tests.py