commit | 4c00d57f0f99446a9c091cbf58e8e694f9374226 | [log] [tgz] |
---|---|---|
author | Saketh Pothireddy <spothire@google.com> | Mon Apr 08 17:29:55 2024 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Apr 08 21:28:30 2024 |
tree | 5bbd312442407a85be07455a45a884aeae86cc8d | |
parent | b42eccb103106c20196bc8bae885308568d82b75 [diff] |
touchpad-tests: update chroot path in doc Update chroot path in doc. BUG=b:325269580 TEST=none Change-Id: If1a626fe72a432fe637aeb88ff64775f02216aed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/touchpad-tests/+/5434254 Commit-Queue: Saketh Pothireddy <spothire@google.com> Tested-by: William Mahon <wmahon@google.com> Tested-by: Saketh Pothireddy <spothire@google.com> Reviewed-by: William Mahon <wmahon@google.com>
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 ~/chromiumos/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.