Message ID | 20240813160039.5861-1-stephen@networkplumber.org (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> 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 E5683457B3; Tue, 13 Aug 2024 18:00:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CCAF44065C; Tue, 13 Aug 2024 18:00:52 +0200 (CEST) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id 5FF1340A84 for <dev@dpdk.org>; Tue, 13 Aug 2024 18:00:51 +0200 (CEST) Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-2cb64529a36so3856124a91.0 for <dev@dpdk.org>; Tue, 13 Aug 2024 09:00:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1723564850; x=1724169650; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WMYyFQhvqnhTqtonb4r8eh+getfxWSDMD5ujE87EJL4=; b=EiqyMPY+R4pxE0VROZw30HqtjB5h3bcgkNsLcFp6/AKKArzzH1pF9NRnAC+/WD55hL JO0KCPoBnM1wCUDrwCLeVr/lSjRoz0Hu4P7I2StJGOIViwow6ZH8cV5RP3H5T+EShPX5 M8WosawAsh8dFJU5skeZcu+oU6WSGzNq7atbjhxXwJwGSrPbVPCipyKPcIAEDdFia15F fRYhRkSWxTVtUjldxb/KdvEE31YSZQr6IzLTvLaTRn7VYsIv0A0oA7ppWaFEgvBYQN0j VAya8GlW46Tb6ucdBItGzMh6Cb/DSnZ62ssBXw5x6GEE3l2ygajV9gEXhHj8OrXOU8U8 7kIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723564850; x=1724169650; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WMYyFQhvqnhTqtonb4r8eh+getfxWSDMD5ujE87EJL4=; b=O59q3diTm8BLc0p6lRgmz/azq/HsGe95fUnYMdp41dovn6AomcODSCtL65nzDz3Jms TVxidw15fx9/Z0N6QenBffOC9KyHqjPuLrEwtKIO9R7ZyS+845zVAPWxaoU9IQg00kTe DCvci+XfSY6GBSeDXOTpGq+HkoauDvJjuK8h9GxRCIrCCH2bMfWLYG22SVufMLtdq2vi znSw9BunGQxyAblHxI+usCKT2nYYEI2UHhJ+9s5icfybCDwjsNWQ09yrj9sMyPCFMXPO xD+T6JI/EFF9W/pLoCmEwMrTWKPIooA3ajq32Q/f7lOv/zC9FZNQLXt9j7UeD2iFHlbw z21w== X-Gm-Message-State: AOJu0YzKjDj3wnJV+NurSrzKzGJjgurdtP7wypw/ZKvFwxQSy2Rjb8ux Ze/sLEi3djdSj8yTjWhUcOBOYG1chHQjK2TrgcoWWEYwfh/lnQJgkPkPY5EgQSdSWfLcGSoL6SF intk= X-Google-Smtp-Source: AGHT+IF4nbW+3qEbc+7ygPqzKde457Ifw6KeMHGQm78Nl4bZ6VHeYlkTMK1/ZZA3FHFrGC0nmwx5Fw== X-Received: by 2002:a17:90a:6441:b0:2ca:7f3e:a10f with SMTP id 98e67ed59e1d1-2d3924c7f2dmr4223495a91.9.1723564849910; Tue, 13 Aug 2024 09:00:49 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2d1fcfe487esm7482612a91.42.2024.08.13.09.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Aug 2024 09:00:49 -0700 (PDT) From: Stephen Hemminger <stephen@networkplumber.org> To: dev@dpdk.org Cc: Stephen Hemminger <stephen@networkplumber.org> Subject: [PATCH v6 0/4] test: restore cfgfile lib tests Date: Tue, 13 Aug 2024 08:57:51 -0700 Message-ID: <20240813160039.5861-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240730225520.83314-1-stephen@networkplumber.org> References: <20240730225520.83314-1-stephen@networkplumber.org> 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 <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org |
Series | test: restore cfgfile lib tests | |
Message
Stephen Hemminger
Aug. 13, 2024, 3:57 p.m. UTC
The cfgfile tests did not get built since conversion to meson and they used an awkward way to manage the test data. This patchset converts the tests to use a helper to take text file and make it into a C header. Then use the C header to generate temporary files as needed. v6 - rearrange patch order for easier review Stephen Hemminger (4): buildtools: add helper to convert text file to header test: remove unused resource API test: rearrange test_cfgfiles cases test: restore cfgfile tests app/meson.build | 3 +- app/test/meson.build | 8 +- app/test/resource.c | 276 ------------------ app/test/resource.h | 106 ------- app/test/test_cfgfile.c | 213 ++++++++------ app/test/test_cfgfiles/{etc => }/empty.ini | 0 .../{etc => }/empty_key_value.ini | 0 .../{etc => }/invalid_section.ini | 0 .../test_cfgfiles/{etc => }/line_too_long.ini | 0 app/test/test_cfgfiles/meson.build | 19 ++ .../{etc => }/missing_section.ini | 0 .../{etc => }/realloc_sections.ini | 0 app/test/test_cfgfiles/{etc => }/sample1.ini | 0 app/test/test_cfgfiles/{etc => }/sample2.ini | 0 app/test/test_resource.c | 104 ------- buildtools/gen-header.py | 36 +++ buildtools/meson.build | 2 +- 17 files changed, 194 insertions(+), 573 deletions(-) delete mode 100644 app/test/resource.c delete mode 100644 app/test/resource.h rename app/test/test_cfgfiles/{etc => }/empty.ini (100%) rename app/test/test_cfgfiles/{etc => }/empty_key_value.ini (100%) rename app/test/test_cfgfiles/{etc => }/invalid_section.ini (100%) rename app/test/test_cfgfiles/{etc => }/line_too_long.ini (100%) create mode 100644 app/test/test_cfgfiles/meson.build rename app/test/test_cfgfiles/{etc => }/missing_section.ini (100%) rename app/test/test_cfgfiles/{etc => }/realloc_sections.ini (100%) rename app/test/test_cfgfiles/{etc => }/sample1.ini (100%) rename app/test/test_cfgfiles/{etc => }/sample2.ini (100%) delete mode 100644 app/test/test_resource.c create mode 100644 buildtools/gen-header.py