commit | e70279edcc395d6f6ce438ce131e0b02f64a3d25 | [log] [tgz] |
---|---|---|
author | Sean O'Brien <seobrien@google.com> | Tue May 12 01:06:06 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Thu May 14 02:14:51 2020 |
tree | 9f5e424b5996afeaa9ff819cf30a0a718bb418b0 | |
parent | 4f5a88c9fcf3b6887809615750e8bc849b393114 [diff] |
Don't list irrelevant baseline tests The baseline tests for click, drag, fling, etc. apply only to touchpad devices. If the device is not a touchpad, don't look for these baseline tests. BUG=None TEST=Run touchtests after setting device_class to "mouse" for some devices. Incomplete baseline tests aren't listed for those devices, but completed baseline tests are. Change-Id: Id2dbc383d6f1b6158fe917ae698951648a559aaf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/touchpad-tests/+/2195184 Tested-by: Sean O'Brien <seobrien@chromium.org> Tested-by: Jora Jacobi <jora@google.com> Auto-Submit: Sean O'Brien <seobrien@chromium.org> Reviewed-by: Jora Jacobi <jora@google.com> Reviewed-by: Harry Cutts <hcutts@chromium.org> Commit-Queue: Sean O'Brien <seobrien@chromium.org>
This repository contains automated tests for Chromium OS's Gestures library. Each test has a log of evdev events which are replayed, a properties file containing gesture properties to set while the Gestures library runs, and a Python function which verifies the output and returns a test score.
Assuming that you've followed the developer guide, simply run the following inside your chroot:
(inside) $ cd ~/trunk/src/platform/touchpad-tests $ sudo make setup-in-place
To run all tests, simply run touchtests
. To run one or more specific tests, you can pass a test name or a glob:
(inside) $ touchtests atlas-1.0/fat-thumb-fail $ touchtests atlas-1.0/palm-while-typing*
Each test will return a status, with the following meanings:
The --out
(or -o
) switch creates a report file that future runs can be compared against with the --ref
(or -r
) switch:
(inside) $ touchtests --out baseline.json # (cause some regressions) $ touchtests --ref baseline.json
The output table will contain a delta column that indicates any regressions or improvements, and an error message will be shown if regressions exist.