Daniel Eklöf
873a27c6a5
test: add missing END_TESTs
2021-12-11 21:04:52 +01:00
Daniel Eklöf
466fd62e85
test: config: main.box-drawings-uses-font-glyphs, main.dpi-aware
2021-12-11 21:04:52 +01:00
Daniel Eklöf
e058f7a988
test: config: add test cases for font positioning
...
* letter-spacing
* horizontal-letter-offset
* vertical-letter-offset
* underline-offset
2021-12-11 21:04:51 +01:00
Daniel Eklöf
50b5168ec9
test: config: add test case for main.line-height
2021-12-11 21:04:51 +01:00
Daniel Eklöf
ed739cbc2a
test: config: initial tests for the “main” section
...
* Verify empty section loads correctly
* Verify the “shell” option
* Verify the “login-shell” option
* Verify loading an invalid option fails
2021-12-11 21:04:51 +01:00
Daniel Eklöf
64787962ff
test: config: verify we fail to load a config with an invalid section
2021-12-11 21:04:51 +01:00
Daniel Eklöf
11dfa2145f
test: unlink config file in teardown
2021-12-11 21:04:51 +01:00
Daniel Eklöf
f6908619b3
test: verify an empty config can be loaded successfully
2021-12-11 21:04:51 +01:00
Daniel Eklöf
6ea10bdb73
test: meson: link with tllist
2021-12-11 21:04:51 +01:00
Daniel Eklöf
30709b0968
test: add a test binary for foot, using the ‘check’ test framework
2021-12-11 21:04:51 +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