DPDK patches and discussions
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <20240802164626.389286-1-stephen@networkplumber.org> (raw)
In-Reply-To: <20240730225520.83314-1-stephen@networkplumber.org>

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

-- 
2.43.0


  parent reply	other threads:[~2024-08-02 16:46 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-30 22:51 [PATCH 0/3] restore cfgfile library tests Stephen Hemminger
2024-07-30 22:51 ` [PATCH 1/3] buildtools: add helper to convert text file to header Stephen Hemminger
2024-07-30 22:51 ` [PATCH 2/3] test: restore cfgfile tests Stephen Hemminger
2024-07-30 22:51 ` [PATCH 3/3] test: remove unused resource API Stephen Hemminger
2024-07-31  4:20 ` [PATCH v2 0/3] restore cfgfile library tests Stephen Hemminger
2024-07-31  4:20   ` [PATCH v2 1/3] buildtools: add helper to convert text file to header Stephen Hemminger
2024-07-31  4:20   ` [PATCH v2 2/3] test: restore cfgfile tests Stephen Hemminger
2024-07-31  4:20   ` [PATCH v2 3/3] test: remove unused resource API Stephen Hemminger
2024-07-31 17:35 ` [PATCH v3 0/3] restore lost tests for rte_cfgfile Stephen Hemminger
2024-07-31 17:35   ` [PATCH v3 1/3] buildtools: add helper to convert text file to header Stephen Hemminger
2024-07-31 17:35   ` [PATCH v3 2/3] test: remove unused resource API Stephen Hemminger
2024-07-31 17:35   ` [PATCH v3 3/3] test: restore cfgfile tests Stephen Hemminger
2024-08-01 17:29 ` [PATCH v4 0/3] restore lost " Stephen Hemminger
2024-08-01 17:29   ` [PATCH v4 1/3] buildtools: add helper to convert text file to header Stephen Hemminger
2024-08-02 15:15     ` Bruce Richardson
2024-08-01 17:29   ` [PATCH v4 2/3] test: remove unused resource API Stephen Hemminger
2024-08-02 15:16     ` Bruce Richardson
2024-08-01 17:29   ` [PATCH v4 3/3] test: restore cfgfile tests Stephen Hemminger
2024-08-02 15:21     ` Bruce Richardson
2024-08-02 16:44 ` Stephen Hemminger [this message]
2024-08-02 16:45   ` [PATCH v5 1/4] buildtools: add helper to convert text file to header Stephen Hemminger
2024-08-02 16:45   ` [PATCH v5 2/4] test: remove unused resource API Stephen Hemminger
2024-08-02 16:45   ` [PATCH v5 3/4] test: restore cfgfile tests Stephen Hemminger
2024-08-02 16:52     ` Bruce Richardson
2024-08-02 16:45   ` [PATCH v5 4/4] test: rearrange test_cfgfiles cases Stephen Hemminger
2024-08-02 16:51     ` Bruce Richardson
2024-08-02 17:06       ` Stephen Hemminger
2024-08-06  8:37         ` Bruce Richardson
2024-08-13 15:57 ` [PATCH v6 0/4] test: restore cfgfile lib tests Stephen Hemminger
2024-08-13 15:57   ` [PATCH v6 1/4] buildtools: add helper to convert text file to header Stephen Hemminger
2024-08-13 15:57   ` [PATCH v6 2/4] test: remove unused resource API Stephen Hemminger
2024-08-13 15:57   ` [PATCH v6 3/4] test: rearrange test_cfgfiles cases Stephen Hemminger
2024-08-13 15:57   ` [PATCH v6 4/4] test: restore cfgfile tests Stephen Hemminger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240802164626.389286-1-stephen@networkplumber.org \
    --to=stephen@networkplumber.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).