From patchwork Wed Jul 12 19:17:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Spewock X-Patchwork-Id: 129504 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 93FE042E57; Wed, 12 Jul 2023 21:20:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6C6E9406BA; Wed, 12 Jul 2023 21:20:48 +0200 (CEST) Received: from mail-il1-f225.google.com (mail-il1-f225.google.com [209.85.166.225]) by mails.dpdk.org (Postfix) with ESMTP id D9B1C400D5 for ; Wed, 12 Jul 2023 21:20:46 +0200 (CEST) Received: by mail-il1-f225.google.com with SMTP id e9e14a558f8ab-3464c774f23so22487935ab.1 for ; Wed, 12 Jul 2023 12:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1689189646; x=1691781646; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=0TUvBdysuTis1AWLCGQjNEYij71SKhOl7+f+iX4IwHY=; b=KxkbK6d+JI3q9BEG3AAq41Rma1Sf/s5BAAyZzm5VltHJGP06pgix09XHniZsdExQy+ PHf3xgzKIEu2O8X2tbQ/n95NhfMni9dDbdCJd3HydAlbtvcY+lRAksgbjeN9/Xl76F8G VGpS5ExzS8iy1Hg2x2vMCDiwTQMGUBGLpi5Cw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689189646; x=1691781646; 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=0TUvBdysuTis1AWLCGQjNEYij71SKhOl7+f+iX4IwHY=; b=VXyqiB0WiDSibA1P9TjMeBSJ6eRGz9oR6dlHF5Rs+exbrHP+9PKva9eJvjBVnseJfe HlfPwB0saBhBuc8OCJNMCE5A2NE6mSDLfe2DVpO9vBBtgfMuBd4CITyBsx3irVVxhzY1 zT+KiYlapgZSDAy5NLA+IpMe743ieerPHLNuT/5VBb/UybmqA35gg1HTtvLCh8+mQzfE Xd1GVSwKw1CfJSfedg9NHz1RTFh9VSkGQwvYj9EVGUDEbMUTvWZY2u3oKcmR8mepM80V 8kvXGuqBcgv339pgZ632Q4gP0FpsdNRFwJ77h5z677Zu+HuqZvnOJ4MI0br9eOPgxLtI iqsQ== X-Gm-Message-State: ABy/qLYYJMZUe/QoTeycR7/19X8vYO8XEujtmKPkFUk/k7pWUBxyN0WG QjJ61SFMr6vrMJtDFR+zkwN72u36G9/0WSCaj/z4yQREFRS+uHfnmqlLlyJw0700sA== X-Google-Smtp-Source: APBJJlF5o8oAxMU0ZPP652pYiaNDdItlXw0Y0/aJRMIHVMX4lo86xi5w4rMFo0b5ElrZ1x566r/EBqJkxmUi X-Received: by 2002:a92:cf41:0:b0:345:cdbe:833c with SMTP id c1-20020a92cf41000000b00345cdbe833cmr15889751ilr.28.1689189646242; Wed, 12 Jul 2023 12:20: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 r25-20020a02c859000000b0042af5268e48sm242399jao.35.2023.07.12.12.20.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Jul 2023 12:20: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 2A7D6605246B; Wed, 12 Jul 2023 15:20: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 v5 0/2] Add DTS smoke tests Date: Wed, 12 Jul 2023 15:17:59 -0400 Message-ID: <20230712192005.2045-3-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 The previous version of this patch removed a method in the InteractiveShell class but after reading the comments over again and looking at the code, there was another method that now becomes unused and not needed. This method for emptying the stdout buffer is removed in this 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 * v3: https://mails.dpdk.org/archives/dev/2023-July/272930.html * v4: https://mails.dpdk.org/archives/dev/2023-July/272964.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 | 75 ++++++++ .../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, 1065 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