From patchwork Wed Jul 12 14:05:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Spewock X-Patchwork-Id: 129500 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 6B58E42E54; Wed, 12 Jul 2023 16:07:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 080EC40F17; Wed, 12 Jul 2023 16:07:34 +0200 (CEST) Received: from mail-qk1-f228.google.com (mail-qk1-f228.google.com [209.85.222.228]) by mails.dpdk.org (Postfix) with ESMTP id 6998440A7D for ; Wed, 12 Jul 2023 16:07:32 +0200 (CEST) Received: by mail-qk1-f228.google.com with SMTP id af79cd13be357-7656652da3cso608255585a.1 for ; Wed, 12 Jul 2023 07:07:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1689170852; x=1691762852; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=69MjkSkHG+Cx4VpWNc7by9Np+J9Yntr8gyVi97WszBM=; b=GJlzMjkQxA8it6bXVkk/zyPleyiQZCnPaS+z24MzloBYGqGUYHn6CfOZyeRB04GIEW /KI8Ffk4/QJHue9ppH/TBJnnQ7sgxthf1IuRJvRPzXHw/MbuvZ25/2JXWEdVlcoV5yhn LlZiQS1HL0w3S8Hl86hLahlvNysN/kP1B2C4s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689170852; x=1691762852; 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=69MjkSkHG+Cx4VpWNc7by9Np+J9Yntr8gyVi97WszBM=; b=Nf+waP0antMH6LHXdMjYs2hZDmktKBamyAbm691hBUI0D/JXcblF6kjnYk0tSEYyNh TaeBiUE47qi/YokctGdzomykJO5uWGWX4wH1ZoCgsGhkFibQQvfGWdTyUOnja53sk+29 WJwnW3lojqkXnGxDsr3Ka3ydkyyEsM0Zl7TE3pRSg0zPzUqpXSJB2LPKOmp9p+0JNqSe ZMD/dbYijQiznu2XvuFFwZzck8ZOGnA6IE6z5kbFVCuMZzFo/9Y+hMXJctDfwkap/iVX TH4yS7MWivhCuKU0iKGp3c7+PA85DxfuCzhDR6QWkoF+Prbm1/85CHAoK3x3onDhvRe8 6NjQ== X-Gm-Message-State: ABy/qLbyHut417EYQuI8emU0wX9c/7uYBZ6fxlaMcx0J8h4U9v512gNZ wTfi4lEXWvtJ9wAjBd5Ycq2kXp+p+nZy1dUoIHmBkvlfkYn4c5RuDjw9dyEiqstoCw== X-Google-Smtp-Source: APBJJlEY7+M1qiQvT4X6FI2Tlc7v81531QAlvKbxVXmJugEcjkrWeKc7neXYZ80EK9lvbFMOPy3cQ0IDleYp X-Received: by 2002:a0c:e247:0:b0:631:f1fa:8c04 with SMTP id x7-20020a0ce247000000b00631f1fa8c04mr16276067qvl.38.1689170851756; Wed, 12 Jul 2023 07:07:31 -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 c27-20020a0ca9db000000b0062a42154a2dsm394435qvb.28.2023.07.12.07.07.31 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jul 2023 07:07:31 -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 563DE605246B; Wed, 12 Jul 2023 10:07:31 -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 v4 0/2] Add DTS smoke tests Date: Wed, 12 Jul 2023 10:05:43 -0400 Message-ID: <20230712140717.14856-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 Removes the method for sending a command to an interactive shell and ignoring output. 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 * v3: https://mails.dpdk.org/archives/dev/2023-July/272930.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 | 93 +++++++++ .../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, 1083 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