plugin: local
name: input/pointing
requires:
 device.category == 'MOUSE' or device.category == 'TOUCHPAD' or device.category == 'TOUCHSCREEN'
_description: Pointing device tests.
command:
 cat <<'EOF' | run_templates -t -s 'udev_resource | filter_templates -w "category=MOUSE" -w "category=TOUCHPAD" -w "category=TOUCHSCREEN"'
 plugin: manual
 name: input/pointing_`echo "${product}_${category}" | sed 's/ /_/g;s/[^_a-zA-Z0-9-]//g'`_`basename $path`
 requires: device.path == "$path"
 description:
  PURPOSE:
      This will test your $product device
  STEPS:
      1. Move the cursor with your $product.
  VERIFICATION:
      Did the cursor move?
 EOF

plugin: manual
name: input/mouse
_description:
 PURPOSE:
     This test will test your pointing device
 STEPS:
     1. Move the cursor using the pointing device or touch the screen.
     2. Perform some single/double/right click operations.
 VERIFICATION:
     Did the pointing device work as expected?

plugin: user-interact-verify
name: input/keyboard
command: keyboard_test
requires: device.category == 'KEYBOARD'
_description:
 PURPOSE:
     This test will test your keyboard
 STEPS:
     1. Click on Test
     2. On the open text area, use your keyboard to type something
 VERIFICATION:
     Is your keyboard working properly?

plugin: manual
name: input/accelerometer_verify
_description:
 PURPOSE:
     Manual detection of accelerometer.
 STEPS:
     1. Look at the specifications for your system.
 VERIFICATION:
     Is this system supposed to have an accelerometer?

plugin: user-interact
name: input/accelerometer
user: root
depends: input/accelerometer_verify
command: accelerometer_test -m
_description:
 PURPOSE:
     This test will test your accelerometer to see if it is detected
     and operational as a joystick device.
 STEPS:
     1. Click on Test
     2. Tilt your hardware in the directions onscreen until the axis threshold is met.
 VERIFICATION:
     Is your accelerometer properly detected? Can you use the device?
