From e1c3bdc6f2658e5c0f3bf128000f3dc1dc7f88bb Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 27 Nov 2021 17:23:33 +0100 Subject: test: initial external unit test suite for ‘config.c’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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”). --- meson.build | 1 + 1 file changed, 1 insertion(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 9faaf44b..39237a33 100644 --- a/meson.build +++ b/meson.build @@ -272,6 +272,7 @@ endif subdir('completions') subdir('icons') +subdir('tests') summary( { -- cgit v1.3