diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-11-27 16:23:33 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-12-11 17:52:05 +0000 |
| commit | e1c3bdc6f2658e5c0f3bf128000f3dc1dc7f88bb (patch) | |
| tree | e29ea299a561414ebfdadadc91ff421e7b55a4af /tests/meson.build | |
| parent | changelog: kitty kbd: add link to codeberg issue (diff) | |
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”).
Diffstat (limited to 'tests/meson.build')
| -rw-r--r-- | tests/meson.build | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build new file mode 100644 index 00000000..8618bf04 --- /dev/null +++ b/tests/meson.build @@ -0,0 +1,8 @@ +config_test = executable( + 'test-config', + 'test-config.c', '../tokenize.c', + wl_proto_headers, + link_with: [common], + dependencies: [pixman, xkb, fcft]) + +test('config', config_test) |
