summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2012-10-08test: drop xf86CheckStrOption from fake symbolsPeter Hutterer
The tests don't need this symbol anymore. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-08-10Use LogMessageVerbSigSafe on ABI 18Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10Move synaptics.h leftovers to synapticsstr.h, drop synaptics.hPeter Hutterer
This leaves us with a duplicated define for the maxbuttons but I'll live with that for now. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10Require xserver 1.12 and inputproto 2.2Peter Hutterer
This drops conditional compilation of multitouch support, smooth scrolling support and old ABIs. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Acked-by: Chase Douglas <chase.douglas@canonical.com>
2012-05-10Indent consistentlyPeter Hutterer
x-indent-all.sh from xorg/util/modular as of c2d630fab65dbe3409af3947f6f442782ddb026f Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-03-14Add cumulative_d{x,y} to SynapticsHwStateChase Douglas
These values will be used for clickpad press and drag with two fingers. While the clickpad button is not pressed, cumulative_d{x,y} will match x and y values. Once the clickpad button is pressed, cumulative_d{x,y} will be updated with the relative motion of each active touch on the touchpad. This allows for dragging with one finger while another finger stays stationary holding the clickpad button down. This is an easier and less latent approach than trying to guess which touch was the "dragging" touch. [fixed build error for mt off] Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-11Move X touch event processing into synaptics.cChase Douglas
Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-10Allocate SynapticsPrivate.comm->hwStateChase Douglas
This is needed for when SynapticsHwState can't be allocated on the stack. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-10Transition eventcomm-test to new SynapticsHwState instantiation schemeChase Douglas
Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-02-10Allocate proto data in eventcomm-testChase Douglas
Provide a helper function for allocating proto data and use it in eventcomm-test. This ensures a null pointer for priv->proto_data is not dereferenced. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-01-26eventcomm: Add touch event handlingChase Douglas
Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-01-26eventcomm: Initialize touch device and axesChase Douglas
Use mtdev to ensure touches are tracked and of evdev MT protocol type B. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-01-04test: fix build error introduced in 9f9b55ab55ed5Peter Hutterer
Bad search/replace, ended up in two xf86SetStrOption declarations which differed on ABIs < 14. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=44335 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2011-12-12test: fix build errors introduced by upstream server changePeter Hutterer
Introduced by upstream change xorg-server-1.11.99.1-33-g09e4b78, Fix gcc -Wwrite-strings warnings in xf86 ddx Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-10-12test: wrap ABI 14 xf86OptionRec type changesPeter Hutterer
ABI 13 still uses pointer as type for most option calls, ABI 14 uses the proper type now. Wrap this so we can build against both versions. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-07-05Revert "build: collapse all Makefile.am files into a single non-recursive one."Gaetan Nadon
This reverts commit 39afe69ad7d2258d4043044d1283bd6e311e48da. 1. For such a small module, the build time improvement is most likely negligible. At least, I'd like to see some timings proving it's worthiness before seeing the patch go back in. 2. This kind of change would need a thorough review. The need to operate the build from a single toplevel Makefile is a significant change. The two most noticeable issues for me are that collapsing all the Makefiles could easily cause namespacing issues with the variables, and operating on files outside the current directory can introduce subtle bugs. I feel that the non-recursive style is generally less robust than the standard recursive make scheme. 3. It's unlike all the other X.org modules. This isn't a showstopper for me, but the recursive style is well understood here and you've beaten all the modules into a consistent format that makes build bugs unique to specific modules less likely. Acked-by: Dan Nicholson <dbn.lists@gmail.com> To give a concrete example for #3 above, the 175 man pages are much easier maintained using a very similar makefile in the man directory of all X.Org module. The cost of maintaining a single makefile is much higher. Every target in the makefile has to be reviewed and tested when changes are made. Not everyone has the all the skills to handle widely different targets such as man pages, DocBook/XML, librairies, C code, distribution hooks, and so on. Acked-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-05-31Initialize the vendor/product id property if we know either.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-05-15build: collapse all Makefile.am files into a single non-recursive one.Diego Elio Pettenò
With this change, the whole of the build is done non-recursively in the top-level Makefile.am. This reduces the amount of overhead due to recursing into directories only to build one file. Signed-off-by: Diego Elio Pettenò <flameeyes@gmail.com> Signed-off-by: Christoph Brill <egore911@egore911.de>
2011-04-11Add 'include' directory for test.Trevor Woerner
The binaries in the test directory won't build successfully for me without adding this include path. Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-04-04Only build tests when unit tests are enabled.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Gaetan Nadon <memsize@videotron.ca>
2011-04-04test: add another test to ensure HW state changes on known values only.Peter Hutterer
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-04-04test: Add some tests for HW state changes.Peter Hutterer
Includes basic finger counting test, some button tests and axis tests. These tests simply check that the HW state changes reflect the events pumped in. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-04-04Add basic framework for unit-testing.Peter Hutterer
Also adds a bunch of fake symbols so we can link. Note that any of these symbols will return false, 0 or whatever the zero value for the symbol is. Care must be taken when writing test that this doesn't screw up the test. Tests are always built but only run on make check. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2011-03-18Remove unused test directory (#35043)Peter Hutterer
The two files are for testing the actual synaptics protocol, a task that is handled by the kernel these days. These haven't been built for years either, suggesting limited use. X.Org Bug 35043 <http://bugs.freedesktop.org/show_bug.cgi?id=35043> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Cyril Brulebois <kibi@debian.org>
2006-04-09Cosmetic changes.Peter Osterlund
2006-04-09Moved testprotokoll.c to the test directory.Peter Osterlund
2006-04-09Removed trailing whitespace.Peter Osterlund
2006-04-09Merged some stuff from version 0.11.3.Peter Osterlund