test: restore cfgfile lib tests
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest4 patches 1 replyIn review
- v54 patches 4 repliesSuperseded
- v43 patches 3 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 3 patches | 0 replies | Superseded | |
| v2 | 3 patches | 0 replies | Superseded | |
| v1 | 3 patches | 0 replies | Superseded |
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | buildtools: add helper to convert text file to headerbuildtools/ buildtools/ | +37 | 0 replies | |
| 2/4 | test: remove unused resource APIapp/ app/ app/ +1 more | +0 | 0 replies | |
| 3/4 | test: rearrange test_cfgfiles casesapp/ app/ app/ +5 more | +0 | 0 replies | |
| 4/4 | test: restore cfgfile testsapp/ app/ app/ +1 more | +157 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Bruce Richardson |
|---|---|
| 1/4 | A-b |
| 2/4 | A-b |
| 3/4 | A-b |
| 4/4 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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.pySignature · 1 line
2.43.0