eb44bbe460
Summary: The usage of libinput is completely mocked. The test covers all the constant properties read by Device. There are some features which are not yet tested: * alphaNumericKeyboard * supportedButtons * enabled The setters for leftHanded and pointerAcceleration are also covered including the variants where it can fail. Reviewers: #plasma Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D1648
8 lines
425 B
CMake
8 lines
425 B
CMake
########################################################
|
|
# Test Devices
|
|
########################################################
|
|
set( testLibinputDevice_SRCS device_test.cpp mock_libinput.cpp ../../libinput/device.cpp )
|
|
add_executable(testLibinputDevice ${testLibinputDevice_SRCS})
|
|
target_link_libraries( testLibinputDevice Qt5::Test)
|
|
add_test(kwin-testLibinputDevice testLibinputDevice)
|
|
ecm_mark_as_test(testLibinputDevice)
|