mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 04:18:01 +02:00
test: add a pre-calibrated flag and exclude the tests as necessary
Prep work for adding a precalibrated tablet. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
44de3ff367
commit
bc18b18e32
3 changed files with 6 additions and 5 deletions
|
|
@ -72,7 +72,7 @@ static int events[] = {
|
||||||
|
|
||||||
TEST_DEVICE("calibrated-touchscreen",
|
TEST_DEVICE("calibrated-touchscreen",
|
||||||
.type = LITEST_CALIBRATED_TOUCHSCREEN,
|
.type = LITEST_CALIBRATED_TOUCHSCREEN,
|
||||||
.features = LITEST_TOUCH,
|
.features = LITEST_TOUCH|LITEST_PRECALIBRATED,
|
||||||
.interface = &interface,
|
.interface = &interface,
|
||||||
|
|
||||||
.name = "Calibrated Touchscreen",
|
.name = "Calibrated Touchscreen",
|
||||||
|
|
|
||||||
|
|
@ -366,6 +366,7 @@ enum litest_device_type {
|
||||||
#define LITEST_DIRECT bit(30)
|
#define LITEST_DIRECT bit(30)
|
||||||
#define LITEST_TOTEM bit(31)
|
#define LITEST_TOTEM bit(31)
|
||||||
#define LITEST_FORCED_PROXOUT bit(32)
|
#define LITEST_FORCED_PROXOUT bit(32)
|
||||||
|
#define LITEST_PRECALIBRATED bit(33)
|
||||||
|
|
||||||
/* this is a semi-mt device, so we keep track of the touches that the tests
|
/* this is a semi-mt device, so we keep track of the touches that the tests
|
||||||
* send and modify them so that the first touch is always slot 0 and sends
|
* send and modify them so that the first touch is always slot 0 and sends
|
||||||
|
|
|
||||||
|
|
@ -6208,9 +6208,9 @@ TEST_COLLECTION(tablet)
|
||||||
litest_add(tablet_pressure_distance_exclusive, LITEST_TABLET | LITEST_DISTANCE, LITEST_ANY);
|
litest_add(tablet_pressure_distance_exclusive, LITEST_TABLET | LITEST_DISTANCE, LITEST_ANY);
|
||||||
|
|
||||||
/* The totem doesn't need calibration */
|
/* The totem doesn't need calibration */
|
||||||
litest_add(tablet_calibration_has_matrix, LITEST_TABLET, LITEST_TOTEM);
|
litest_add(tablet_calibration_has_matrix, LITEST_TABLET, LITEST_TOTEM|LITEST_PRECALIBRATED);
|
||||||
litest_add(tablet_calibration_set_matrix, LITEST_TABLET, LITEST_TOTEM);
|
litest_add(tablet_calibration_set_matrix, LITEST_TABLET, LITEST_TOTEM|LITEST_PRECALIBRATED);
|
||||||
litest_add(tablet_calibration_set_matrix_delta, LITEST_TABLET, LITEST_TOTEM);
|
litest_add(tablet_calibration_set_matrix_delta, LITEST_TABLET, LITEST_TOTEM|LITEST_PRECALIBRATED);
|
||||||
|
|
||||||
litest_add(tablet_pressure_min_max, LITEST_TABLET, LITEST_ANY);
|
litest_add(tablet_pressure_min_max, LITEST_TABLET, LITEST_ANY);
|
||||||
litest_add_for_device(tablet_pressure_range, LITEST_WACOM_INTUOS);
|
litest_add_for_device(tablet_pressure_range, LITEST_WACOM_INTUOS);
|
||||||
|
|
@ -6226,7 +6226,7 @@ TEST_COLLECTION(tablet)
|
||||||
litest_add(relative_no_delta_prox_in, LITEST_TABLET, LITEST_ANY);
|
litest_add(relative_no_delta_prox_in, LITEST_TABLET, LITEST_ANY);
|
||||||
litest_add(relative_delta, LITEST_TABLET, LITEST_ANY);
|
litest_add(relative_delta, LITEST_TABLET, LITEST_ANY);
|
||||||
litest_add(relative_no_delta_on_tip, LITEST_TABLET|LITEST_HOVER, LITEST_ANY);
|
litest_add(relative_no_delta_on_tip, LITEST_TABLET|LITEST_HOVER, LITEST_ANY);
|
||||||
litest_add(relative_calibration, LITEST_TABLET, LITEST_ANY);
|
litest_add(relative_calibration, LITEST_TABLET, LITEST_PRECALIBRATED);
|
||||||
|
|
||||||
litest_add(touch_arbitration, LITEST_TABLET, LITEST_ANY);
|
litest_add(touch_arbitration, LITEST_TABLET, LITEST_ANY);
|
||||||
litest_add(touch_arbitration_stop_touch, LITEST_TABLET, LITEST_ANY);
|
litest_add(touch_arbitration_stop_touch, LITEST_TABLET, LITEST_ANY);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue