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 1A3EB43064; Mon, 14 Aug 2023 20:21:28 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 07C8E432DB; Mon, 14 Aug 2023 20:21:22 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id D2C0B432C0; Mon, 14 Aug 2023 20:21:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692037279; x=1723573279; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=R5VXiABk3hLwCo409KrIVh7+p61FUM2D3dECXMkFHeo=; b=bLutWW5/fZnOI9moA4/DcMmuumXOG6lpMFFJaucOUOfw3coaE8/9vQ6n cAfWZo9md/i3XHku1vsSxoF+tZ1bRmyu3ekRDYE1Imjkekvv34oYd2bol pPae339rNW5axwPLTBApZniitF8yT7Mc5VauVE2U/m7SPIU3tIHOJocbv 5lf5GnmtwmpY62bhMFl/nTr5wx5R2pPvCfvsrRAtSUwOSq9tDjnnd1GH6 9iLWxIXSJdRHI1/ckqZbG30dWoEa7JO5SC0YnDtxOWOPBKktxGloNny3h trQ7l648MbWRVILbeAlq820kUUBMW71NxjFVbqfzNff+NNpq8HvisU6Pl w==; X-IronPort-AV: E=McAfee;i="6600,9927,10802"; a="375831104" X-IronPort-AV: E=Sophos;i="6.01,173,1684825200"; d="scan'208";a="375831104" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2023 11:21:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10802"; a="733545465" X-IronPort-AV: E=Sophos;i="6.01,173,1684825200"; d="scan'208";a="733545465" Received: from silpixa00401385.ir.intel.com ([10.237.214.14]) by orsmga002.jf.intel.com with ESMTP; 14 Aug 2023 11:21:16 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ci@dpdk.org, Bruce Richardson Subject: [PATCH v3 3/8] app/test: make telemetry data test buildable on windows Date: Mon, 14 Aug 2023 19:20:59 +0100 Message-Id: <20230814182104.470270-4-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230814182104.470270-1-bruce.richardson@intel.com> References: <20230721115125.55137-1-bruce.richardson@intel.com> <20230814182104.470270-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ci-bounces@dpdk.org To enable the building of the telemetry data tests file when building on windows, we need to provide a stub implementation. That way, the test file is buildable any time the library itself is built. Signed-off-by: Bruce Richardson --- app/test/test_telemetry_data.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app/test/test_telemetry_data.c b/app/test/test_telemetry_data.c index a960f44c1b..b2dc1d75db 100644 --- a/app/test/test_telemetry_data.c +++ b/app/test/test_telemetry_data.c @@ -2,11 +2,20 @@ * Copyright 2020 Intel Corporation */ +#ifdef RTE_EXEC_ENV_WINDOWS +#include "test.h" + +static int +telemetry_data_autotest(void) +{ + return TEST_SKIPPED; +} + +#else + #include #include -#ifndef RTE_EXEC_ENV_WINDOWS #include -#endif #include #include @@ -604,5 +613,6 @@ telemetry_data_autotest(void) close(sock); return 0; } +#endif /* windows/non-windows */ REGISTER_TEST_COMMAND(telemetry_data_autotest, telemetry_data_autotest); -- 2.39.2