16747b715Smrg                        X server test suite
26747b715Smrg
36747b715SmrgThis suite contains a set of tests to verify the behaviour of functions used
435c4bbdfSmrginternally to the server.
56747b715Smrg
66747b715Smrg= How it works =
76747b715SmrgThrough some automake abuse, we link the test programs with the same static
86747b715Smrglibraries as the Xorg binary. The test suites can then call various functions
96747b715Smrgand verify their behaviour - without the need to start the server or connect
106747b715Smrgclients.
116747b715Smrg
126747b715SmrgThis testing only works for functions that do not rely on a particular state
136747b715Smrgof the X server. Unless the test suite replicates the expected state, which
146747b715Smrgmay be difficult.
156747b715Smrg
166747b715Smrg= How to run the tests =
1735c4bbdfSmrgRun "make check" in the test directory. This will compile the tests and execute
186747b715Smrgthem in the order specified in the TESTS variable in test/Makefile.am.
196747b715Smrg
206747b715SmrgEach set of tests related to a subsystem are available as a binary that can be
216747b715Smrgexecuted directly. For example, run "xkb" to perform some xkb-related tests.
226747b715Smrg
236747b715Smrg== Adding a new test ==
246747b715SmrgWhen adding a new test, ensure that you add a short description of what the
2535c4bbdfSmrgtest does and what the expected outcome is.
26