summaryrefslogtreecommitdiff
path: root/test/test-misc.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-06-21 17:05:30 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-06-26 11:18:31 +1000
commit5ca1862bde4f052e8e27628dea2423f3db9499c1 (patch)
tree877b6c23874a8318cfc0f40de44d1eac2e399b8e /test/test-misc.c
parent07a0d04fd35a504d6788856e476d1d0fefedc288 (diff)
test: add a libinput-test runner for 'deviceless' tests
These are tests that don't need *any* uinput devices at all. Mark them accordingly and create a new binary that only runs those tests. This way we can run some of the test suite even in containers where we're restricted. Better have 10% tested than none, I guess. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/test-misc.c')
-rw-r--r--test/test-misc.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/test/test-misc.c b/test/test-misc.c
index e07f233c..3a830f31 100644
--- a/test/test-misc.c
+++ b/test/test-misc.c
@@ -1768,41 +1768,41 @@ TEST_COLLECTION(misc)
litest_add_for_device("events:conversion", event_conversion_tablet, LITEST_WACOM_CINTIQ);
litest_add_for_device("events:conversion", event_conversion_tablet_pad, LITEST_WACOM_INTUOS5_PAD);
litest_add_for_device("events:conversion", event_conversion_switch, LITEST_LID_SWITCH);
- litest_add_no_device("misc:bitfield_helpers", bitfield_helpers);
+ litest_add_deviceless("misc:bitfield_helpers", bitfield_helpers);
- litest_add_no_device("context:refcount", context_ref_counting);
- litest_add_no_device("config:status string", config_status_string);
+ litest_add_deviceless("context:refcount", context_ref_counting);
+ litest_add_deviceless("config:status string", config_status_string);
litest_add_for_device("timer:offset-warning", timer_offset_bug_warning, LITEST_SYNAPTICS_TOUCHPAD);
litest_add_no_device("timer:flush", timer_flush);
- litest_add_no_device("misc:matrix", matrix_helpers);
- litest_add_no_device("misc:ratelimit", ratelimit_helpers);
- litest_add_no_device("misc:parser", dpi_parser);
- litest_add_no_device("misc:parser", wheel_click_parser);
- litest_add_no_device("misc:parser", wheel_click_count_parser);
- litest_add_no_device("misc:parser", trackpoint_accel_parser);
- litest_add_no_device("misc:parser", dimension_prop_parser);
- litest_add_no_device("misc:parser", reliability_prop_parser);
- litest_add_no_device("misc:parser", calibration_prop_parser);
- litest_add_no_device("misc:parser", range_prop_parser);
- litest_add_no_device("misc:parser", palm_pressure_parser);
- litest_add_no_device("misc:parser", safe_atoi_test);
- litest_add_no_device("misc:parser", safe_atoi_base_16_test);
- litest_add_no_device("misc:parser", safe_atoi_base_8_test);
- litest_add_no_device("misc:parser", safe_atou_test);
- litest_add_no_device("misc:parser", safe_atou_base_16_test);
- litest_add_no_device("misc:parser", safe_atou_base_8_test);
- litest_add_no_device("misc:parser", safe_atod_test);
- litest_add_no_device("misc:parser", strsplit_test);
- litest_add_no_device("misc:parser", kvsplit_double_test);
- litest_add_no_device("misc:parser", strjoin_test);
- litest_add_no_device("misc:time", time_conversion);
+ litest_add_deviceless("misc:matrix", matrix_helpers);
+ litest_add_deviceless("misc:ratelimit", ratelimit_helpers);
+ litest_add_deviceless("misc:parser", dpi_parser);
+ litest_add_deviceless("misc:parser", wheel_click_parser);
+ litest_add_deviceless("misc:parser", wheel_click_count_parser);
+ litest_add_deviceless("misc:parser", trackpoint_accel_parser);
+ litest_add_deviceless("misc:parser", dimension_prop_parser);
+ litest_add_deviceless("misc:parser", reliability_prop_parser);
+ litest_add_deviceless("misc:parser", calibration_prop_parser);
+ litest_add_deviceless("misc:parser", range_prop_parser);
+ litest_add_deviceless("misc:parser", palm_pressure_parser);
+ litest_add_deviceless("misc:parser", safe_atoi_test);
+ litest_add_deviceless("misc:parser", safe_atoi_base_16_test);
+ litest_add_deviceless("misc:parser", safe_atoi_base_8_test);
+ litest_add_deviceless("misc:parser", safe_atou_test);
+ litest_add_deviceless("misc:parser", safe_atou_base_16_test);
+ litest_add_deviceless("misc:parser", safe_atou_base_8_test);
+ litest_add_deviceless("misc:parser", safe_atod_test);
+ litest_add_deviceless("misc:parser", strsplit_test);
+ litest_add_deviceless("misc:parser", kvsplit_double_test);
+ litest_add_deviceless("misc:parser", strjoin_test);
+ litest_add_deviceless("misc:time", time_conversion);
litest_add_no_device("misc:fd", fd_no_event_leak);
- litest_add_no_device("misc:library_version", library_version);
+ litest_add_deviceless("misc:library_version", library_version);
- litest_add_no_device("misc:list", list_test_insert);
- litest_add_no_device("misc:list", list_test_append);
+ litest_add_deviceless("misc:list", list_test_insert);
+ litest_add_deviceless("misc:list", list_test_append);
}