From patchwork Tue Jul 18 14:44:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Spewock X-Patchwork-Id: 129630 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 D51FF42EAB; Tue, 18 Jul 2023 16:48:35 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A2674410D3; Tue, 18 Jul 2023 16:48:35 +0200 (CEST) Received: from mail-pj1-f98.google.com (mail-pj1-f98.google.com [209.85.216.98]) by mails.dpdk.org (Postfix) with ESMTP id CDE4440A84 for ; Tue, 18 Jul 2023 16:48:34 +0200 (CEST) Received: by mail-pj1-f98.google.com with SMTP id 98e67ed59e1d1-262c42d3fafso3644892a91.0 for ; Tue, 18 Jul 2023 07:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1689691714; x=1692283714; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=stA+yG2UCVck1NedqC8t3r20x70NzR15dRixyj8fnm4=; b=Cx4dS6n0j+2+srPJLPetLkeLCtiDgKR+NmsGRY9rpG0RllKu+Xg1OsUFiZVFs2a79B osJY4xZoBrREXEdtxlWWRst9hke4ZVfyoZ7s1tROQUejMHsKiZ4XPU8URfl+lbFzo60H UoJUeDFw1ZHHfW9Ycp5+fRQzcA+89wt+P6Tas= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689691714; x=1692283714; 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=stA+yG2UCVck1NedqC8t3r20x70NzR15dRixyj8fnm4=; b=hCWxpadnRfGT1fciYeNRMZayJHKttzQYG3JK3LqLA2HhqTkDu4wtLw/xSBG4sW9PTb obKBsm/JtB7dNz1Dh7FhOaMwP0eCY7wB+/z8CIecunUc9woDFGZ6t6B6CKmynw/FMoPU 6oCf0Ea+BXzOiiTHejAppZnL2fLNbqDeGUDAtM+NHdZjounGsG1tlMwZZkNVdvDnovR/ mNpOhZ0VSIYv/29e8gyIh4DAJQ/55tzch487EVDJdQLUwpIEeERinmaVPeER7R4vId3D Nm3xasEMps90hS4itiumhlgiI7tqw1C9GKlryzM5sTYHV/m23MfxcXM/WuJqV26nd8sN NfvA== X-Gm-Message-State: ABy/qLYTbAVJX4WaSwFsOHAhlLhEmT4pAZNePaBs6jWDAB6+9wTn+dqV lA+5rtnCBrcMNGUiByliicNjaZePUuwCeBTxa/NnXCyhE0Ox6A== X-Google-Smtp-Source: APBJJlFCFeLUG/pSlPD5j9fn6tpBbhjgc1vsagltu7PlBW/kX4sLrAm4RXmb4w4Bgw+hR9atQWP4BoSh+PTD X-Received: by 2002:a17:90a:a614:b0:263:f3d0:7ea2 with SMTP id c20-20020a17090aa61400b00263f3d07ea2mr16051968pjq.8.1689691713996; Tue, 18 Jul 2023 07:48:33 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [132.177.123.84]) by smtp-relay.gmail.com with ESMTPS id ob3-20020a17090b390300b00263f8407be2sm466135pjb.11.2023.07.18.07.48.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jul 2023 07:48:33 -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 68C8A605246B; Tue, 18 Jul 2023 10:48:33 -0400 (EDT) From: jspewock@iol.unh.edu To: Honnappa.Nagarahalli@arm.com, thomas@monjalon.net, lijuan.tu@intel.com, wathsala.vithanage@arm.com, probb@iol.unh.edu, juraj.linkes@pantheon.tech Cc: dev@dpdk.org, Jeremy Spewock Subject: [PATCH v9 0/1] Add DTS smoke tests Date: Tue, 18 Jul 2023 10:44:18 -0400 Message-ID: <20230718144659.14328-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 Addresses comments on previous patch and polishes code from that version. Also adds documentation to the InteractiveApp class. 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 * v5: https://mails.dpdk.org/archives/dev/2023-July/272983.html * v6: https://mails.dpdk.org/archives/dev/2023-July/273019.html * v7: https://mails.dpdk.org/archives/dev/2023-July/273028.html * v8: https://mails.dpdk.org/archives/dev/2023-July/273117.html Jeremy Spewock (1): dts: add smoke tests dts/conf.yaml | 17 +- dts/framework/config/__init__.py | 79 ++++++-- dts/framework/config/conf_yaml_schema.json | 142 ++++++++++++++- dts/framework/dts.py | 84 ++++++--- dts/framework/exception.py | 12 ++ dts/framework/remote_session/__init__.py | 13 +- dts/framework/remote_session/linux_session.py | 3 +- dts/framework/remote_session/os_session.py | 49 ++++- dts/framework/remote_session/posix_session.py | 29 ++- .../remote_session/remote/__init__.py | 10 ++ .../remote/interactive_remote_session.py | 82 +++++++++ .../remote/interactive_shell.py | 131 ++++++++++++++ .../remote_session/remote/testpmd_shell.py | 49 +++++ dts/framework/test_result.py | 24 ++- dts/framework/test_suite.py | 10 +- dts/framework/testbed_model/node.py | 43 ++++- dts/framework/testbed_model/sut_node.py | 169 +++++++++++++----- dts/framework/utils.py | 3 + dts/tests/TestSuite_smoke_tests.py | 114 ++++++++++++ 19 files changed, 969 insertions(+), 94 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