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.
v4 - add special treatment for temp directory in Windows
the test obviously never ran before on Windows.
Stephen Hemminger (3):
buildtools: add helper to convert text file to header
test: remove unused resource API
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 | 153 ++++++++++------
app/test/test_cfgfiles/meson.build | 19 ++
app/test/test_resource.c | 104 -----------
buildtools/gen-header.py | 36 ++++
buildtools/meson.build | 2 +-
9 files changed, 166 insertions(+), 541 deletions(-)
delete mode 100644 app/test/resource.c
delete mode 100644 app/test/resource.h
create mode 100644 app/test/test_cfgfiles/meson.build
delete mode 100644 app/test/test_resource.c
create mode 100644 buildtools/gen-header.py
--
2.43.0