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 29AC143070; Tue, 15 Aug 2023 15:13:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BF6D343269; Tue, 15 Aug 2023 15:13:38 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 1F9F14325B; Tue, 15 Aug 2023 15:13:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692105214; x=1723641214; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=R5VXiABk3hLwCo409KrIVh7+p61FUM2D3dECXMkFHeo=; b=ENHg30tRfCcqwnM2cZxKPV6KVlOg+AdTcw3vRcYmHRufpgOW6V71CZ+i wY2aidfFzG+KhjDuMIO5Enov0JJWtr4yKFP6gwA4AAXPlrKNLtIJMuddQ dHXFSWHZWMQ07XPkKZaosCnapwyFvH80KVJ9gGkz4Boa6LQPtRtdprADw /hxQ6PkvCGuGOZ1b5FaYadRI65eMo0ecXpBjbH0iWBWo5RR0DgtQ2U94V ZWnBGFY/fciSMVvVmehmLRAFqryWaDFeqQRZm1yCAuY/tC4ABhawAbrE5 e3tpIDwJiby7/J2KtyxJKoY/0sXa1nQBlARk1TVcurLXgWzK83pj2gaw+ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="458623162" X-IronPort-AV: E=Sophos;i="6.01,174,1684825200"; d="scan'208";a="458623162" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2023 06:13:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="799189820" X-IronPort-AV: E=Sophos;i="6.01,174,1684825200"; d="scan'208";a="799189820" Received: from silpixa00401385.ir.intel.com ([10.237.214.14]) by fmsmga008.fm.intel.com with ESMTP; 15 Aug 2023 06:13:32 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ci@dpdk.org, Bruce Richardson Subject: [PATCH v4 3/8] app/test: make telemetry data test buildable on windows Date: Tue, 15 Aug 2023 14:13:15 +0100 Message-Id: <20230815131320.375088-4-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230815131320.375088-1-bruce.richardson@intel.com> References: <20230721115125.55137-1-bruce.richardson@intel.com> <20230815131320.375088-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 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