gtk2/testsuite/a11y
Simon McVittie 957dd49ef7 testsuite: Use separate setups for unstable tests instead of should_fail
There are two possible interpretations of "expected failure": either
the test *must* fail (exactly the inverse of an ordinary test, with
success becoming failure and failure becoming success), or the test
*may* fail (with success intended, but failure possible in some
environments). Autotools had the second interpretation, which seems
more useful in practice, but Meson has the first.

Instead of using should_fail, we can put the tests in one of two new
suites: "flaky" is intended for tests that succeed or fail unpredictably
according to the test environment or chance, while "failing" is for
tests that ought to succeed but currently never do as a result of a
bug or missing functionality. With a sufficiently new version of Meson,
the flaky and failing tests are not run by default, but can be requested
by running a setup that does not exclude them, with a command like:

    meson test --setup=x11_unstable --suite=flaky --suite=failing

As a bonus, now that we're setting up setups and their excluded suites
programmatically, the gsk-compare-broadway tests are also excluded by
default when running the test setup for a non-broadway backend.

When running the tests in CI, --suite=gtk overrides the default
exclude_suites, so we have to specify --no-suite=flaky and
--no-suite=failing explicitly.

This arrangement is inspired by GNOME/glib!2987, which was contributed
by Marco Trevisan.

Signed-off-by: Simon McVittie <smcv@debian.org>
2022-11-24 13:46:33 +00:00
..
accessible.c a11y: Parse reference lists using varargs 2020-11-10 14:31:56 +00:00
button.c a11y: Parse reference lists using varargs 2020-11-10 14:31:56 +00:00
checkbutton.c Change button hierarchy 2020-08-29 16:46:28 +02:00
dialog.c Deprecate GtkDialog 2022-10-29 15:27:53 -04:00
entry.c a11y: Set an accessible role for GtkEntry 2020-07-28 18:16:37 -04:00
expander.c a11y: Parse reference lists using varargs 2020-11-10 14:31:56 +00:00
flowbox.c a11y: Add tests for GtkFlowBox 2020-10-20 01:12:20 -04:00
general.c a11y: Parse reference lists using varargs 2020-11-10 14:31:56 +00:00
image.c a11y: Set accessible roles for GtkImage and GtkPicture 2020-07-28 18:16:37 -04:00
label.c a11y: Parse reference lists using varargs 2020-11-10 14:31:56 +00:00
levelbar.c a11y: Set an accessible role for GtkLevelBar 2020-07-29 22:46:00 -04:00
listbox.c a11y: Add tests for GtkListBox 2020-10-20 01:07:13 -04:00
meson.build testsuite: Use separate setups for unstable tests instead of should_fail 2022-11-24 13:46:33 +00:00
passwordentry.c a11y: Set an accessible role for GtkPasswordEntry 2020-07-28 18:23:57 -04:00
progressbar.c a11y: Update the valuetext attribute of GtkProgressBar 2020-07-28 16:59:08 +01:00
scrollbar.c a11y: Parse reference lists using varargs 2020-11-10 14:31:56 +00:00
searchentry.c a11y: Set an accessible role for GtkSearchEntry 2020-07-28 18:16:37 -04:00
separator.c a11y: Add separator tests 2020-07-27 21:18:10 -04:00
spinbutton.c a11y: Add spinbutton tests 2020-07-27 21:18:10 -04:00
stack.c a11y: GtkStack is a group of stack pages 2020-11-12 21:46:06 +00:00
switch.c a11y: Add switch tests 2020-07-27 21:18:10 -04:00
textview.c a11y: Set an accessible role for GtkTextView 2020-07-29 22:46:00 -04:00
window.c a11y: Add dialog and window tests 2020-07-27 21:18:10 -04:00