Commit graph

80 commits

Author SHA1 Message Date
Daniel Eklöf
c0aa414404
test: config: colors: test ‘256’ is an invalid key 2021-12-30 21:49:08 +01:00
Daniel Eklöf
b7976e9565
test: config: test colors section 2021-12-29 19:54:21 +01:00
Daniel Eklöf
3583d1cd98
test: config: csd: test color options 2021-12-29 19:43:11 +01:00
Daniel Eklöf
7938b9e811
test: config: add test_color() utility function 2021-12-29 19:43:01 +01:00
Daniel Eklöf
a780a8b66f
test: config: test csd section 2021-12-29 19:33:18 +01:00
Daniel Eklöf
8b2e46b6dc
test: config: test mouse section 2021-12-29 19:18:41 +01:00
Daniel Eklöf
956f8995b9
test: config: test cursor section 2021-12-29 19:18:40 +01:00
Daniel Eklöf
58ce3b4a17
test: config: test URL section 2021-12-29 19:18:40 +01:00
Daniel Eklöf
8aa0ab0d9a
test: config: rename ‘conf_ptr’ -> ‘ptr’ 2021-12-29 19:10:37 +01:00
Daniel Eklöf
67edb43db4
test: config: scrollback: test indicator-positition 2021-12-29 19:04:19 +01:00
Daniel Eklöf
e058a43689
test: config: main: test dpi-aware, selection-target and initial-window-mode 2021-12-29 19:03:59 +01:00
Daniel Eklöf
a7c489980e
test: config: add test_enum() utility function 2021-12-29 19:03:36 +01:00
Daniel Eklöf
4986df7eeb
test: config: fix format specifier: uint32_t needs %u, not %hu 2021-12-26 13:03:45 +01:00
Daniel Eklöf
2fa29fb5f4
test: config: test ‘scrollback’ section 2021-12-26 12:37:12 +01:00
Daniel Eklöf
cd9b936003
test: config: add test_double() utility function 2021-12-26 12:36:55 +01:00
Daniel Eklöf
193c696d03
test: config: add test_uint32() utility function 2021-12-26 12:36:43 +01:00
Daniel Eklöf
c765d6722c
test: config: bindings: verify pipe argv 2021-12-25 23:37:04 +01:00
Daniel Eklöf
2c4e6680aa
test: config: test [bell].command (spawn template) 2021-12-25 23:33:39 +01:00
Daniel Eklöf
a4af00bd8b
test: config: test [main].notify (spawn template) 2021-12-25 23:33:39 +01:00
Daniel Eklöf
46eea75614
test: config: add test_spawn_template() utility function 2021-12-25 23:33:38 +01:00
Daniel Eklöf
ba851c963e
test: config: ‘bell’ section 2021-12-25 23:03:11 +01:00
Daniel Eklöf
454d4e22aa
test: config: verify setting an empty key/mouse binding fails 2021-12-18 20:42:37 +01:00
Daniel Eklöf
f077a2e77a
test: config: verify collisions with the mouse override modifiers are detected 2021-12-11 20:44:01 +01:00
Daniel Eklöf
40249ab3a2
test: config: port key/mouse binding tests to new API 2021-12-11 20:19:12 +01:00
Daniel Eklöf
87c454c044
test: meson: add fontconfig to ‘test-config’ binary (fixes PGO builds) 2021-12-11 20:09:30 +01:00
Daniel Eklöf
614de228a8
test: config: mouse-bindings 2021-12-11 18:52:06 +01:00
Daniel Eklöf
9c5019ae77
test: config: key-bindings
This adds tests for all [key-bindings] options, as well as an invalid
“action”.

The tests also verify key combo collisions are detected correctly.
2021-12-11 18:52:05 +01:00
Daniel Eklöf
8cf9f0f0dc
tests: meson: link with tllist 2021-12-11 18:52:05 +01:00
Daniel Eklöf
7a9f929368
test: config: cover all basic (primitive) options in [main] 2021-12-11 18:52:05 +01:00
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