summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* test: fix out-of-tree buildsRoss Burton2013-11-161-1/+1
| | | | | | | | Some tests do #include relative to the top-level, so add top_srcdir to the include path as otherwise out-of-tree builds can't find the files. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* test: silence compiler warning - implicit declaration of function ‘atoi’Peter Hutterer2013-07-311-0/+1
| | | | | | | | mtdev-kernel.c:130:2: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration] eslot = atoi(argv[1]) + 1; Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Rename INCLUDES to AM_CPPFLAGSPeter Hutterer2013-07-241-1/+1
| | | | | | src/Makefile.am:22: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* mtdev-test: output MT event supportHenrik Rydberg2010-12-221-0/+23
| | | | | | At startup, output the MT events supported by the device. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add support for ABS_MT_DISTANCEHenrik Rydberg2010-12-221-1/+2
| | | | | | | | | In the upcoming 2.6.38 kernel, support for hovering is introduced. Add the ABS_MT_DISTANCE to the extended set of handled ABS_MT events. The change is binary compatible with existing libraries. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Introduce a stable ABIHenrik Rydberg2010-12-221-16/+16
| | | | | | | | | | | | The current mtdev is not ABI stable, and the upcoming additions to the kernel api will break ABI. This patch starts the process of keeping binary compatibility with old programs, by moving the abi-specific parts under a special flag, MTDEV_NO_LEGACY_API, and makes sure the internal parts compiles with MTDEV_NO_LEGACY_API set. This way, older programs will still work, old programs will still compile, and new programs will be able to use the additions. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add and test a simple kernel matcherHenrik Rydberg2010-11-071-14/+47
| | | | | | | | | | This matcher is for up to four fingers, and has these properties: * Approximately 1.4 times faster at 4 fingers * Approximately 4.0 times faster at 2 fingers * Roughly 100 lines of code Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Generate kernel matcher dataHenrik Rydberg2010-11-072-1/+162
| | | | | | | This application generates the matcher tables of the tracking library in the linux kernel. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Add mtdev-matching test programHenrik Rydberg2010-10-122-1/+145
| | | | | | | Measures matching speed and provides some historically difficult test cases. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Complete mtdev property mappingHenrik Rydberg2010-09-071-3/+6
| | | | | | | Add the missing property values to the mapgen output, and insert the result in the mtdev mapping header file. Signed-off-by: Henrik Rydberg <rydberg@bitmath.org>
* Change test program name to mtdev-testHenrik Rydberg2010-07-192-3/+4
| | | | | | | In order to simplify packaging, rename the current mtdev device test program to mtdev-test. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Build test utilities unconditionally, do not installPeter Hutterer2010-07-051-5/+1
| | | | | | | | | | The test programs in the package are command-line utilities which can be used to generate MT code mappings for header files, and debug hardware problems, and should not be installed. With this patch, tests are built unconditionally, but not installed. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* test: fix out-of-tree builds.Peter Hutterer2010-07-021-1/+1
| | | | | | | Libraries are in builddir, not sourcedir. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Search for libmtdev in src/ directory during a clean buildChase Douglas2010-06-221-1/+1
| | | | | | | | If mtdev hasn't already been installed, the test binaries will fail to compile because they can't find libmtdev. Point them to the src directory build output. Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
* Apply new package title to all filesHenrik Rydberg2010-06-222-2/+2
| | | | | | | This patch changes the package description title in all relevant files, and touches up the README. All systems go. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Build test tools also under autoconfHenrik Rydberg2010-06-221-0/+12
| | | | | | The tests can be disabled by using --enable-test=no in configure. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* janitor: fix compiler warningsHenrik Rydberg2010-06-221-0/+1
| | | | Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Restructure mtdev apiHenrik Rydberg2010-06-191-6/+3
| | | | | | | | | | | | | Split the api into plumbing and porcelain layers and move the plumbing part to its own optional header file. The main usecase is to fetch events from the device, route them through the converter and extract the processed events. To simplify the API, replace the intermediate mtdev_pull() function by the higher-level mtdev_get(). This function does all the required steps, and has the same semantics as read(). Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Use a non-blocking example in test/mtdevHenrik Rydberg2010-06-181-2/+6
| | | | | | The non-blocking case is more interesting for X applications. Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
* Initial load of mtdev projectHenrik Rydberg2010-06-172-0/+171
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>