xserver-multidpi/test
Peter Hutterer 7f8127d203 dix: if we run out of space for new touch events, resize the queue
The SIGIO handler forces us to drop the current touch and schedule the
actual resize for later. Should not happen if the device sets up the
TouchClassRec with the correct number of touchpoints.

Co-authored-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2011-12-20 13:01:00 +10:00
..
xi2 tests: update for touch support 2011-12-16 11:18:47 +10:00
.gitignore test: update .gitignore with xfree86 and sort alphabetically 2011-12-07 12:44:21 -08:00
fixes.c fixes: Add support for pointer barriers 2011-05-31 15:10:51 -04:00
input.c input: replace GRABTYPE_* with the InputLevel enums 2011-12-13 13:24:08 +10:00
list.c include: add list_last_entry to get the tail of a list 2011-12-06 18:15:14 +10:00
Makefile.am dix: add helper functions to create DDX touch recs 2011-12-19 09:08:36 +10:00
misc.c test: remove unneeded printf statements from misc.c 2011-11-29 15:13:37 +10:00
README Add a test-suite for in-server unit-testing. 2009-04-28 16:03:56 +10:00
string.c Add fallback implementation of strndup() 2011-11-23 12:15:05 -08:00
touch.c dix: if we run out of space for new touch events, resize the queue 2011-12-20 13:01:00 +10:00
xfree86.c xfree86: fix potential buffer overflow 2011-10-31 09:39:04 +10:00
xkb.c test: remove glib dependency 2011-04-21 13:43:43 +10:00
xtest.c test: remove glib dependency 2011-04-21 13:43:43 +10:00

                        X server test suite

This suite contains a set of tests to verify the behaviour of functions used
internally to the server. This test suite is based on glib's testing
framework [1].

= How it works =
Through some automake abuse, we link the test programs with the same static
libraries as the Xorg binary. The test suites can then call various functions
and verify their behaviour - without the need to start the server or connect
clients.

This testing only works for functions that do not rely on a particular state
of the X server. Unless the test suite replicates the expected state, which
may be difficult.

= How to run the tests =
Run "make check" the test directory. This will compile the tests and execute
them in the order specified in the TESTS variable in test/Makefile.am.

Each set of tests related to a subsystem are available as a binary that can be
executed directly. For example, run "xkb" to perform some xkb-related tests.

== Adding a new test ==
When adding a new test, ensure that you add a short description of what the
test does and what the expected outcome is. If the test reproduces a
particular bug, using g_test_bug().

== Misc ==

The programs "gtester" and "gtester-report" may be used to generate XML/HTML
log files of tests succeeded and failed.

---------

[1] http://library.gnome.org/devel/glib/stable/glib-Testing.html