From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AD2E443052; Tue, 15 Aug 2023 17:23:36 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1AE3B43296; Tue, 15 Aug 2023 17:22:59 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 4C6244114B; Tue, 15 Aug 2023 17:22:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692112972; x=1723648972; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wAkE0BVt56lpBfhFTJiJzxLl0zwL0glQbj9jXAPkhHo=; b=MaJWRz0+KwM9nDUDImfBZtVrp1KmZRmi0RcAXp4fgPcdFVervtOM2Btg Q0qZKOfUWMQmHcyORrFSR8rttWFE9s6/7/zMb/oM3IZYVlSEuCgtpnsdE DwSFhYt51Blgv87QmD8WamJ1KxLUtre8nqVT50RqPjqFDEvohTZW/koca b3A7gTfORemdiqvbrF3JkSMmmVpVhvyW9EOapw07GGISrLU0TkcSL8C5M waVf6Wt29zq6JVNbgc4bjT3zPORMv3BWLMR3d7HTXxHUn7ng7umU729c7 xyd5zrlGOKfYWjGnumCkcm2MTld/QyI+16nXBRkwsCUHMTxVaijzCeXZ9 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="357271539" X-IronPort-AV: E=Sophos;i="6.01,174,1684825200"; d="scan'208";a="357271539" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2023 08:11:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="803843832" X-IronPort-AV: E=Sophos;i="6.01,174,1684825200"; d="scan'208";a="803843832" Received: from silpixa00401385.ir.intel.com ([10.237.214.14]) by fmsmga004.fm.intel.com with ESMTP; 15 Aug 2023 08:11:06 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ci@dpdk.org, Bruce Richardson Subject: [PATCH v5 06/10] app/test: add test case for scripted telemetry commands Date: Tue, 15 Aug 2023 16:10:50 +0100 Message-Id: <20230815151053.996469-7-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230815151053.996469-1-bruce.richardson@intel.com> References: <20230721115125.55137-1-bruce.richardson@intel.com> <20230815151053.996469-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 ec74d8adf2..2b428847c6 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 -- 2.39.2