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 5A72243052; Tue, 15 Aug 2023 17:22:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 85AE54326E; Tue, 15 Aug 2023 17:22:55 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 636504114B; Tue, 15 Aug 2023 17:22:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692112971; x=1723648971; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HHP7ViyhFhLzkjpmXQOpckgtuQR6fkUcGsxT4YFC2aM=; b=nt8vrtcJPpqn83tZahdhB7vIdoZTuIgtij1xkToGUJ98T/XeFHtVLEP6 NzaD98JqC2Yj0keDHGa/QE3vEypq2ioHDqOjRU6MWiKnfIQXIpj9IeYLp aE0JsNt3tDTHuC/RqBkPMWKyMvmLBSJNZL70Fv4N+VV7RMdElDXNmB7pe YF+NFVoZZYttdeAtyQ726n5l0mUZ0kIcudOEdoWwV/OTwgwmUtQpGnTXN dMFfFhkvqkGGd9+is+RO8q2VvcVdQuNdlgbFy7NFr61hSvR79WdiR70U9 noZOuZbKMibHHjyGHRcJR8h7BoG6aBL32PsJ0gpJrDTBIX0LQPLMiJNhF A==; X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="357271525" X-IronPort-AV: E=Sophos;i="6.01,174,1684825200"; d="scan'208";a="357271525" 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:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="803843797" X-IronPort-AV: E=Sophos;i="6.01,174,1684825200"; d="scan'208";a="803843797" Received: from silpixa00401385.ir.intel.com ([10.237.214.14]) by fmsmga004.fm.intel.com with ESMTP; 15 Aug 2023 08:11:01 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ci@dpdk.org, Bruce Richardson , =?UTF-8?q?Morten=20Br=C3=B8rup?= Subject: [PATCH v5 03/10] app/test: make telemetry data test buildable on windows Date: Tue, 15 Aug 2023 16:10:47 +0100 Message-Id: <20230815151053.996469-4-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-Type: text/plain; charset=UTF-8 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 Acked-by: Morten Brørup --- 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