foot/tests
Daniel Eklöf e1c3bdc6f2
test: initial external unit test suite for ‘config.c’
This patch adds a separate (external) test binary with unit tests for
config.c

This is achieved by having the test’s source file include
config.c (yes, the C file, not the header file).

This allows us to call e.g. parse_section_*() directly, without having
to go through config_load() (which requires having a readable file at
“path”).
2021-12-11 18:52:05 +01:00
..
meson.build test: initial external unit test suite for ‘config.c’ 2021-12-11 18:52:05 +01:00
test-config.c test: initial external unit test suite for ‘config.c’ 2021-12-11 18:52:05 +01:00