summaryrefslogtreecommitdiff
path: root/test/test-totem.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2024-10-12 10:31:42 +1000
committerMarge Bot <emma+marge@anholt.net>2024-10-30 23:20:42 +0000
commit41c08f081627e206e16acbcfbd9157ac9944b921 (patch)
tree75ffe8f623dbeb7dfb483eb775b0c999f35308f1 /test/test-totem.c
parentd94407f810db6ab3bfe837bb4682f60bfdd601d1 (diff)
test: add litest-runner as test suite runner
This replaces check. The code is a copy of pwtest which I wrote years ago for pipewire but adjusted for us here the last few days. There are a few advantages over check: - Ability to SKIP tests or mark them as NOT_APPLICABLE, the latter of which is used for early checks if a device doesn't meet requirements. - it captures stdout/stderr separately - colors! - YAML output format makes it a lot easier to read the results and eventually parse them for e.g. "restart failed tests" Less abstraction: we set up the tests, pass them to the runner and run them with the given number of forks. This is an improvement over before where we forked into N test suites which each called check which then forked again. Since we're now keeping track of those processes ourselves we can also write tests that are expected to fail with signals. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1067>
Diffstat (limited to 'test/test-totem.c')
-rw-r--r--test/test-totem.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/test-totem.c b/test/test-totem.c
index 7f7dc3b1..63355953 100644
--- a/test/test-totem.c
+++ b/test/test-totem.c
@@ -23,7 +23,6 @@
#include <config.h>
-#include <check.h>
#include <errno.h>
#include <fcntl.h>
#include <libinput.h>