Comment 5 for bug 1070475

Revision history for this message
Daniel Manrique (roadmr) wrote :

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