Skip to content

test: restore cfgfile lib tests

Stephen Hemminger dpdk-dev 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 1 replyIn review
  2. v54 patches 4 repliesSuperseded
  3. v43 patches 3 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v33 patches0 repliesSuperseded
v23 patches0 repliesSuperseded
v13 patches0 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4buildtools: add helper to convert text file to headerbuildtools/gen-header.py buildtools/meson.build+37 -10 replies
2/4test: remove unused resource APIapp/test/meson.build app/test/resource.c app/test/resource.h +1 more+0 -4880 replies
3/4test: rearrange test_cfgfiles casesapp/test/test_cfgfiles/empty.ini app/test/test_cfgfiles/empty_key_value.ini app/test/test_cfgfiles/invalid_section.ini +5 more+0 -00 replies
4/4test: restore cfgfile testsapp/meson.build app/test/meson.build app/test/test_cfgfile.c +1 more+157 -840 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchBruce Richardson
1/4A-b
2/4A-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/4] test: restore cfgfile lib tests

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
Signature · 1 line
2.43.0