From patchwork Mon Aug 14 15:16:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 130270 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B5B3043063; Mon, 14 Aug 2023 17:16:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ACC78432B7; Mon, 14 Aug 2023 17:16:26 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 705B3432A4; Mon, 14 Aug 2023 17:16:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1692026183; x=1723562183; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=R5VXiABk3hLwCo409KrIVh7+p61FUM2D3dECXMkFHeo=; b=QrSvROXuL4PAp35wAiGZb0v56IB74ZbImTsa/Qq7qxZ36cO3sKgNfzNx MYQ9zxuIdKmzp2NfsHHBatmDVYU4Nodp5rz0Gxv1KEDqik22/Hf+yur5R /iU2jJbNteB6OKC7PiE8P9AZpWWF5EmoEFQpZ2HJJFhnc2jjfKLot4OHd VQf+bzTHSWmHIh16ir92zlu4F7wOqyg4VfrD4+5/bNJNbuTmJzT5T2xUc RtU5SPpK8rgsTixmImHJy0OykW6aUHns+LbbRjx4sCKSGcUu9/cKQE3i4 lhe/bNHBUbv9vvBw1xqbwmTcKlirjYNj7P2IzlxCL3T89hkBSf+v6JnYA g==; X-IronPort-AV: E=McAfee;i="6600,9927,10802"; a="362211266" X-IronPort-AV: E=Sophos;i="6.01,172,1684825200"; d="scan'208";a="362211266" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2023 08:16:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10802"; a="803499935" X-IronPort-AV: E=Sophos;i="6.01,172,1684825200"; d="scan'208";a="803499935" Received: from silpixa00401385.ir.intel.com ([10.237.214.14]) by fmsmga004.fm.intel.com with ESMTP; 14 Aug 2023 08:16:21 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ci@dpdk.org, Bruce Richardson Subject: [PATCH v2 3/8] app/test: make telemetry data test buildable on windows Date: Mon, 14 Aug 2023 16:16:04 +0100 Message-Id: <20230814151609.3077077-4-bruce.richardson@intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230814151609.3077077-1-bruce.richardson@intel.com> References: <20230721115125.55137-1-bruce.richardson@intel.com> <20230814151609.3077077-1-bruce.richardson@intel.com> MIME-Version: 1.0 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);