Message ID | 20240802164626.389286-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 931794571D; Fri, 2 Aug 2024 18:46:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 63DFF40E0A; Fri, 2 Aug 2024 18:46:39 +0200 (CEST) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id D369E406B8 for <dev@dpdk.org>; Fri, 2 Aug 2024 18:46:37 +0200 (CEST) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-70d150e8153so2361109b3a.0 for <dev@dpdk.org>; Fri, 02 Aug 2024 09:46:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1722617197; x=1723221997; 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=hzlKkn5h+YL6XdeaGf99MwHmQXlqvv59PAVaRJbSqtI=; b=rCi1nQehLgnn5uEFpbgaVFd9S6ZIlVGOcdGLC/8DMyu7qyMsdkPhdFExPyo1Tcsoc/ ohQbRgyzzs790f0AbF81BUXYMvIoDHcRtxau4rCyi2QqmtFo25IAu5JqOR38idcVAdTb E5jV7LgWqPobO4lBtv558doaS06q83B3r+X+IgL8ZJHes2ne5dJ8hTzr24O6JL0oOViX 20NTAUJP0Yeq5ClcNTE94TVSDRqKLZmHGJKmUFwkosmjVFkb9Jgd3PHZp9WOC3xrU1HI uGvXG8TBavKoVySTrxRIsnDmOsOee/1yYGit74wkFc+Ge+XLxyjorvlKHocqi7JOd4uU Dmpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722617197; x=1723221997; 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=hzlKkn5h+YL6XdeaGf99MwHmQXlqvv59PAVaRJbSqtI=; b=V+SQjNfrEBBTJ5tdytBu1YzYZCFFir5n1ovJMzDe+udMsSVYu8Gu1mjuNW+pD5c8PT cIB/IH9XmzZlxqXKuP+tEibeOlGH0n1zOY1Yl2IUJA9JzeLy2IkeXSn/1/QCLqT7egxI GVJaW1YuTgiCzlSnHSRxLcpdRY2duz/EfVXmsqUAQz44KX75q+nYvM4t494kW/VpDwXb XbSskcM4lVVAZkzZCc8cnXhbKgJr/PhBhRaWRvbn33axCLjQPoAWGvThA6Ip535GgpZS DNNqIPrrthvpV52fMRU8WxlSsCo7EXzFNLECIIwbvO7eCuQigpBzY2Tjevea2JgrRluZ Xwgg== X-Gm-Message-State: AOJu0YyGhbHMxbzyS15OQ62I5OzCBos/hllFisJN9GvVVMd1M7hUtoSg L5gprL6E+bbluwuh/zWBoFr0bdpmpzTh1pZBPp4b7frol0YAQNzKQxJ+M/L/LT5khpU8Rio+77x 8 X-Google-Smtp-Source: AGHT+IEEu3+0Dk+VUw5UtL5vKRhFceb5V8L1uX/jXWbciSKdxTsgPCFmt8LTVfrCP9JM2a4ZNMZdog== X-Received: by 2002:a05:6a00:91a9:b0:706:aa39:d5c1 with SMTP id d2e1a72fcca58-7106da2a73emr6233417b3a.8.1722617196735; Fri, 02 Aug 2024 09:46:36 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7106ecdfec9sm1591011b3a.97.2024.08.02.09.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Aug 2024 09:46:36 -0700 (PDT) From: Stephen Hemminger <stephen@networkplumber.org> To: dev@dpdk.org Cc: Stephen Hemminger <stephen@networkplumber.org> Subject: [PATCH v5 0/4] restore unused cfgfile tests Date: Fri, 2 Aug 2024 09:44:59 -0700 Message-ID: <20240802164626.389286-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 | restore unused cfgfile tests | |
Message
Stephen Hemminger
Aug. 2, 2024, 4:44 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. v5 - rearrange tests input files - use unit_suite_runner - more Windows fixes Stephen Hemminger (4): buildtools: add helper to convert text file to header test: remove unused resource API test: restore cfgfile tests test: rearrange test_cfgfiles cases 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