Commit graph xserver/test/tests-common.c
Author SHA1 Message Date
Enrico Weigelt, metux IT consult
dc778e4356 Revert "test: fail when a child terminates abnormally"
This reverts commit b799d88a78.

Breaks CI. We'll have to do some more things, until we can
actually merge that.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-10-05 14:15:20 +02:00
Lukáš Lipinský
b799d88a78 test: fail when a child terminates abnormally
When a later test child is killed by a signal, exit_code may still contain zero from the preceding child. Return EXIT_FAILURE explicitly so Meson cannot report a false success.

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2293>
(cherry picked from commit 495ea74203)
(cherry picked from commit 21e4929c355df7f525d0d0299781ccb6daa83780)
(cherry picked from commit d9abd1140755adcee1e2c9ec6d53794fb276f8d1)
Signed-off-by: Lukáš Lipinský <18076-Mr-Tao@users.noreply.gitlab.freedesktop.org>
2026-10-01 18:53:50 +02:00
Enrico Weigelt, metux IT consult
63a635b7bf test: add XLIBRE_TEST env var to select which unit test suites run
run_test_in_child() now checks XLIBRE_TEST (a comma-separated list of
suite function names, e.g. "ddc_tests,xkb_test") and skips any suite
not named in it. Unset/empty behaves exactly as before (run
everything).

Handy for iterating on a single new test suite without wading through
the rest of test/tests' output every run, and for isolating one
suite when an unrelated one in the sequence is flaky (run_test_in_child
exit()s the whole binary on the first failing suite, so a single flaky
suite ahead of the one you care about currently blocks everything
after it).

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-07-03 10:14:24 +02:00
Peter Hutterer
46b579e8d5 test: switch the unit tests to something resembling a test suite
The tests have inadvertent dependencies on each other so let's avoid
those by changing to a system that returns a null-terminated list of
test functions and our test runner iterates over those and forks off one
process per function.
2024-01-30 00:15:10 +00:00
Mihail Konev
371576f64b tests: Convert test/xi1/ to single binary
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-12 15:01:29 -05:00