commit | b42eccb103106c20196bc8bae885308568d82b75 | [log] [tgz] |
---|---|---|
author | seobrien <seobrien@chromium.org> | Tue Jan 02 16:53:17 2024 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 23 15:07:56 2024 |
tree | 1949ef826645ba12e2760cc2c82ec86626bcc731 | |
parent | 5fd2eb353659419b5f3a50bc5f56db67c94c5b6f [diff] |
Update copyright block for new tests BUG=None TEST=None Change-Id: Ie5321a8e8921fac12c3fbc752ce9041509a8d14f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/touchpad-tests/+/5159509 Reviewed-by: Kenneth Albanowski <kenalba@google.com> Tested-by: Sean O'Brien <seobrien@chromium.org> Reviewed-by: Torsha Banerjee <torsha@google.com> 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.