From patchwork Mon Jul 17 19:33:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Spewock X-Patchwork-Id: 129580 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 AE1B342E75; Mon, 17 Jul 2023 21:37:17 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 440A340A80; Mon, 17 Jul 2023 21:37:17 +0200 (CEST) Received: from mail-io1-f99.google.com (mail-io1-f99.google.com [209.85.166.99]) by mails.dpdk.org (Postfix) with ESMTP id 6AFC54068E for ; Mon, 17 Jul 2023 21:37:16 +0200 (CEST) Received: by mail-io1-f99.google.com with SMTP id ca18e2360f4ac-78360b822abso204223639f.2 for ; Mon, 17 Jul 2023 12:37:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1689622635; x=1692214635; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=E2iU8mrQY6rI0ZBjCxpy0+OhjcTSKYYVE3+ImBsHCi4=; b=HH8NsA5HL94khCnwDcdNLfjqOpz/xei5+dm81GJHDeggaqZzLvabXKf6YGLBWngexf 4Ul7e9UEbgDb4xiODIG71g9lrT/ToyuBd8J9rU41aZxAn0RVp8MuMutWOGpceP6e+qRu tJWpfwUf+cKJDOo8snPUxoNoW5nX6MP5acM58= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689622635; x=1692214635; 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=E2iU8mrQY6rI0ZBjCxpy0+OhjcTSKYYVE3+ImBsHCi4=; b=CSLnGm2bE69NGqh216UvILpmhZYFL555eU987vHqpbPcznJuLpMX/OvSmubJwzxlOq i8SuaZmmd8uut3p2XhX9lyYHW4oL4dC1lcJPrmdstQbwvu2sOHFa1xYra84DPWELwweH 7xqh+T8Q1QUVaX4Y6bkoiGhIBx+6Y6K5iXXk/sR5P821B9fyM78oyLN7zhS5OExhIHa1 EXXCzoUTzABxg/Mz6Y8W0/GzG7huNqmaxLPeziSZH+G8StyCjZ8KDEZwVyXR1n4JgV+v mkrIp2Cn0487udScfmJA9RNjoT2v8mOpvCMBUOpOhteW55gW+xkLLWs5r+78lTHajrdh Nw4g== X-Gm-Message-State: ABy/qLYpgiX+fKfUafmZOpG5a3HUjb/s5gNNtwd6plxjhYrAlFHNd2Rg uhQjyyrET7w4VrwHKnuLff/3HyixeTqIv387z/XbM/q3w3gkog== X-Google-Smtp-Source: APBJJlGV+vCL8E0iaC87XL0GutpcZt52tK6/RcYRib8CZd0Up62VIqF4bCamkAWQgEznUGSPl1dXj8mAbB+s X-Received: by 2002:a05:6e02:1a4e:b0:348:8158:c386 with SMTP id u14-20020a056e021a4e00b003488158c386mr729691ilv.8.1689622635669; Mon, 17 Jul 2023 12:37:15 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [132.177.123.84]) by smtp-relay.gmail.com with ESMTPS id s23-20020a02c517000000b0040b2543be47sm7468jam.5.2023.07.17.12.37.15 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jul 2023 12:37:15 -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 1D8C0605246B; Mon, 17 Jul 2023 15:37:15 -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 Cc: dev@dpdk.org, Jeremy Spewock Subject: [PATCH v8 0/1] Add DTS smoke tests Date: Mon, 17 Jul 2023 15:33:50 -0400 Message-ID: <20230717193705.26594-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 Addresses comments on previous patch and allows for non-root users to run DTS. To do this, a reference to the method for getting elevated permissions was passed into the InteractiveShell. The only alternative to this would be to build the arguments in OSSession which isn't ideal because the arguments are of course app specific and it would be preferred if the application would append it's arguments. Some comments to ignore typing on these lines were added as recommended but the following issue: https://github.com/python/mypy/issues/2427. 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 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/os_session.py | 48 ++++- dts/framework/remote_session/posix_session.py | 29 ++- .../remote_session/remote/__init__.py | 10 ++ .../remote/interactive_remote_session.py | 82 +++++++++ .../remote/interactive_shell.py | 98 ++++++++++ .../remote_session/remote/testpmd_shell.py | 46 +++++ 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 ++++++++++++ 18 files changed, 931 insertions(+), 92 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