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 2FB1243081; Wed, 16 Aug 2023 17:35:58 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9E6DB43271; Wed, 16 Aug 2023 17:35:38 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 049B842B8B for ; Wed, 16 Aug 2023 17:35:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692200137; x=1723736137; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HHP7ViyhFhLzkjpmXQOpckgtuQR6fkUcGsxT4YFC2aM=; b=SdkQreoWGLjHA375figgpHCv/sO/cL3BVcv51BA1J+qQ2buLk7NvA0l8 Qz5xFHQDL6Nu44XVP5B8muzP3Npb1do7IdqloJJqVrkiTyOwMACck9WcK dRWE5aRPRQBmPoQZeNvHa3RyaNAGeecKbtiPTQ7+GPZmD5GvAKjL/oU6W GhkU12PagsrBEK6dJd6AFaFpJQecAJV/0M72x62OEOSAqavNA+9sWajBZ gGoOfgMLYacx527wMojvLvFaUtb/OOCi40i/khpkedUNV9WxRzLAHys1w PnyIfqTWI5IVBPM/XhZKcxT0hElBcqCLxNRJLm6TejKUbl88x1xLMhrV7 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="458915961" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="458915961" 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:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10803"; a="857856233" X-IronPort-AV: E=Sophos;i="6.01,177,1684825200"; d="scan'208";a="857856233" Received: from silpixa00401385.ir.intel.com ([10.237.214.14]) by orsmga004.jf.intel.com with ESMTP; 16 Aug 2023 08:35:35 -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 04/11] app/test: make telemetry data test buildable on windows Date: Wed, 16 Aug 2023 16:34:32 +0100 Message-Id: <20230816153439.551501-5-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 Content-Type: text/plain; charset=UTF-8 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 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