I came up with a quick test script that can be copied to SUTs to verify. For instance, output on my system shows 3 pointing devices only, which is accurate (trackpoint, touchpad and USB mouse):
$ bash /tmp/quicktest.sh name: input/pointing_Logitech_USB_Receiver_MOUSE_input16 requires: device.path == "/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.1/1-1.1:1.0/input/input16"
name: input/pointing_SynPS2_Synaptics_TouchPad_TOUCHPAD_input5 requires: device.path == "/devices/platform/i8042/serio1/input/input5"
name: input/pointing_TPPS2_IBM_TrackPoint_MOUSE_input15 requires: device.path == "/devices/platform/i8042/serio1/serio2/input/input15"
Here's the script:
#!/bin/bash PATH=$PATH:/usr/share/checkbox/scripts cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=MOUSE" -w "category=TOUCHPAD" -w "category=TOUCHSCREEN"' name: input/pointing_`echo "${product}_${category}" | sed 's/ /_/g;s/[^_a-zA-Z0-9-]//g'`_`basename $path` requires: device.path == "$path" EOF
I came up with a quick test script that can be copied to SUTs to verify. For instance, output on my system shows 3 pointing devices only, which is accurate (trackpoint, touchpad and USB mouse):
$ bash /tmp/quicktest.sh Logitech_ USB_Receiver_ MOUSE_input16 pci0000: 00/0000: 00:1a.0/ usb1/1- 1/1-1.1/ 1-1.1:1. 0/input/ input16"
name: input/pointing_
requires: device.path == "/devices/
name: input/pointing_ SynPS2_ Synaptics_ TouchPad_ TOUCHPAD_ input5 platform/ i8042/serio1/ input/input5"
requires: device.path == "/devices/
name: input/pointing_ TPPS2_IBM_ TrackPoint_ MOUSE_input15 platform/ i8042/serio1/ serio2/ input/input15"
requires: device.path == "/devices/
Here's the script:
#!/bin/bash /usr/share/ checkbox/ scripts TOUCHSCREEN" ' `echo "${product} _${category} " | sed 's/ /_/g;s/ [^_a-zA- Z0-9-]/ /g'`_`basename $path`
PATH=$PATH:
cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=MOUSE" -w "category=TOUCHPAD" -w "category=
name: input/pointing_
requires: device.path == "$path"
EOF