• Peter Hutterer's avatar
    test: switch to a TEST_DEVICE macro for all the litest test devices · 2346801b
    Peter Hutterer authored
    The test device initialization code was a bit of duplicated boilerplate and
    required adding a reference to the devices to the 'devices' list in litest.c.
    Automate this with a new TEST_DEVICE macro that adds the devices to a custom
    section in the binary, then loops throught that section to get the device out.
    
    This reduces the boilerplate for each test device to just the TEST_MACRO and
    the LITEST_foo device enum entry. It also now automates the shortname of the
    device.
    
    The device's shortname was standardised in this approach as well, lowercase
    and dashes only.
    Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
    2346801b
Name
Last commit
Last update
..
50-litest.conf Loading commit data...
build-cxx.cc Loading commit data...
build-pedantic.c Loading commit data...
generate-gcov-report.sh Loading commit data...
litest-device-acer-hawaii-keyboard.c Loading commit data...
litest-device-acer-hawaii-touchpad.c Loading commit data...
litest-device-alps-dualpoint.c Loading commit data...
litest-device-alps-semi-mt.c Loading commit data...
litest-device-anker-mouse-kbd.c Loading commit data...
litest-device-apple-appletouch.c Loading commit data...
litest-device-apple-internal-keyboard.c Loading commit data...
litest-device-apple-magicmouse.c Loading commit data...
litest-device-asus-rog-gladius.c Loading commit data...
litest-device-atmel-hover.c Loading commit data...
litest-device-bcm5974.c Loading commit data...
litest-device-calibrated-touchscreen.c Loading commit data...
litest-device-cyborg-rat-5.c Loading commit data...
litest-device-elantech-touchpad.c Loading commit data...
litest-device-generic-singletouch.c Loading commit data...
litest-device-gpio-keys.c Loading commit data...
litest-device-huion-pentablet.c Loading commit data...
litest-device-ignored-mouse.c Loading commit data...
litest-device-keyboard-all-codes.c Loading commit data...
litest-device-keyboard-razer-blackwidow.c Loading commit data...
litest-device-keyboard.c Loading commit data...
litest-device-lid-switch-surface3.c Loading commit data...
litest-device-lid-switch.c Loading commit data...
litest-device-logitech-trackball.c Loading commit data...
litest-device-magic-trackpad.c Loading commit data...
litest-device-mouse-low-dpi.c Loading commit data...
litest-device-mouse-roccat.c Loading commit data...
litest-device-mouse-wheel-click-angle.c Loading commit data...
litest-device-mouse-wheel-click-count.c Loading commit data...
litest-device-mouse-wheel-tilt.c Loading commit data...
litest-device-mouse.c Loading commit data...
litest-device-ms-surface-cover.c Loading commit data...
litest-device-nexus4-touch-screen.c Loading commit data...
litest-device-protocol-a-touch-screen.c Loading commit data...
litest-device-qemu-usb-tablet.c Loading commit data...
litest-device-synaptics-hover.c Loading commit data...
litest-device-synaptics-i2c.c Loading commit data...
litest-device-synaptics-rmi4.c Loading commit data...
litest-device-synaptics-st.c Loading commit data...
litest-device-synaptics-t440.c Loading commit data...
litest-device-synaptics-x1-carbon-3rd.c Loading commit data...
litest-device-synaptics.c Loading commit data...
litest-device-thinkpad-extrabuttons.c Loading commit data...
litest-device-touch-screen.c Loading commit data...
litest-device-touchscreen-fuzz.c Loading commit data...
litest-device-trackpoint.c Loading commit data...
litest-device-uclogic-tablet.c Loading commit data...
litest-device-vmware-virtual-usb-mouse.c Loading commit data...
litest-device-wacom-bamboo-16fg-pen.c Loading commit data...
litest-device-wacom-cintiq-12wx-pen.c Loading commit data...
litest-device-wacom-cintiq-13hdt-finger.c Loading commit data...
litest-device-wacom-cintiq-13hdt-pad.c Loading commit data...
litest-device-wacom-cintiq-13hdt-pen.c Loading commit data...
litest-device-wacom-cintiq-24hd-pen.c Loading commit data...
litest-device-wacom-cintiq-24hdt-pad.c Loading commit data...
litest-device-wacom-ekr.c Loading commit data...
litest-device-wacom-hid4800-pen.c Loading commit data...
litest-device-wacom-intuos3-pad.c Loading commit data...
litest-device-wacom-intuos5-finger.c Loading commit data...
litest-device-wacom-intuos5-pad.c Loading commit data...
litest-device-wacom-intuos5-pen.c Loading commit data...
litest-device-wacom-isdv4-e6-finger.c Loading commit data...
litest-device-wacom-isdv4-e6-pen.c Loading commit data...
litest-device-wacom-mobilestudio-pro-pad.c Loading commit data...
litest-device-waltop-tablet.c Loading commit data...
litest-device-wheel-only.c Loading commit data...
litest-device-xen-virtual-pointer.c Loading commit data...
litest-device-yubikey.c Loading commit data...
litest-int.h Loading commit data...
litest-selftest.c Loading commit data...
litest.c Loading commit data...
litest.h Loading commit data...
symbols-leak-test.in Loading commit data...
test-device.c Loading commit data...
test-gestures.c Loading commit data...
test-keyboard.c Loading commit data...
test-log.c Loading commit data...
test-misc.c Loading commit data...
test-pad.c Loading commit data...
test-path.c Loading commit data...
test-pointer.c Loading commit data...
test-switch.c Loading commit data...
test-tablet.c Loading commit data...
test-touch.c Loading commit data...
test-touchpad-buttons.c Loading commit data...
test-touchpad-tap.c Loading commit data...
test-touchpad.c Loading commit data...
test-trackball.c Loading commit data...
test-trackpoint.c Loading commit data...
test-udev.c Loading commit data...
valgrind.suppressions Loading commit data...