From patchwork Wed Aug 16 15:34:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 130424 X-Patchwork-Delegate: david.marchand@redhat.com 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 DAC2D43081; Wed, 16 Aug 2023 17:36:23 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 47A3D4327D; Wed, 16 Aug 2023 17:35:45 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id CCF1F43275 for ; Wed, 16 Aug 2023 17:35:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692200143; x=1723736143; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=82GQQzzfgd3S9lmruDsdwsPwemXae04BzIG+wJEpClM=; b=bO43W2ojpiatYqZQ7o2eWP/khC5OIicoihDZ552FJbn4xKjfzB+RFevR NhHd3vdMvZ+qL0JCVzXMAUjFxZcyIMC+NXleE/UJFs2o9LI2k9WCUt3IX uqE5uuyy2O2HZgOQLkqiL5eo6Bp5DbMGbWjFtbxndHA761dqkotz291dk diy/F+CqalAmb0YaW50K5WvX9Zz7Q55lu/bOjl1L0tLTVJ98GXVF4qtUz P2QJoJbQBiu+jCzssTtlYOUUu1suxMB214PYPyrHryzN4SeyMefNmN7Ni YEHn03JOrIKHNw3tUa5YTHwoKJNycU5dbyMU5cAzFBcm4ARTOTZMMx0t6 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="458916013" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="458916013" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Aug 2023 08:35:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="857856288" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="857856288" Received: from silpixa00401385.ir.intel.com ([10.237.214.14]) by orsmga004.jf.intel.com with ESMTP; 16 Aug 2023 08:35:40 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: david.marchand@redhat.com, probb@iol.unh.edu, mb@smartsharesystems.com, Bruce Richardson Subject: [PATCH v6 07/11] app/test: add test case for scripted telemetry commands Date: Wed, 16 Aug 2023 16:34:35 +0100 Message-Id: <20230816153439.551501-8-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230816153439.551501-1-bruce.richardson@intel.com> References: <20230721115125.55137-1-bruce.richardson@intel.com> <20230816153439.551501-1-bruce.richardson@intel.com> 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 The test script for calling all telemetry commands is not discoverable by checking the C files for the build. Therefore we need to add it in as a special-case test in the fast-tests group. Signed-off-by: Bruce Richardson --- app/test/suites/meson.build | 30 +++++++++++++++++++++++++ app/test/{ => suites}/test_telemetry.sh | 0 2 files changed, 30 insertions(+) rename app/test/{ => suites}/test_telemetry.sh (100%) diff --git a/app/test/suites/meson.build b/app/test/suites/meson.build index 5cdf7c200c..eddf332156 100644 --- a/app/test/suites/meson.build +++ b/app/test/suites/meson.build @@ -72,3 +72,33 @@ foreach suite:test_suites endforeach endif endforeach + +# standalone test for telemetry +if not is_windows and dpdk_conf.has('RTE_LIB_TELEMETRY') + test_args = [dpdk_test] + test_args += test_no_huge_args + if get_option('default_library') == 'shared' + test_args += ['-d', dpdk_drivers_build_dir] + endif + if dpdk_conf.has('RTE_CRYPTO_NULL') + test_args += ['--vdev=crypto_null0'] + endif + if dpdk_conf.has('RTE_DMA_SKELETON') + test_args += ['--vdev=dma_skeleton0'] + endif + if dpdk_conf.has('RTE_EVENT_SKELETON') + test_args += ['--vdev=event_skeleton0'] + endif + if dpdk_conf.has('RTE_NET_NULL') + test_args += ['--vdev=net_null0'] + endif + if dpdk_conf.has('RTE_RAW_SKELETON') + test_args += ['--vdev=rawdev_skeleton0'] + endif + test_args += ['-a', '0000:00:00.0'] + test('telemetry_all', find_program('test_telemetry.sh'), + args: test_args, + timeout : timeout_seconds_fast, + is_parallel : false, + suite : 'fast-tests') +endif diff --git a/app/test/test_telemetry.sh b/app/test/suites/test_telemetry.sh similarity index 100% rename from app/test/test_telemetry.sh rename to app/test/suites/test_telemetry.sh