| commit | 5a3881cad014edc124d5b3dc8ede0bfb3ed0dd28 | [log] [tgz] |
|---|---|---|
| author | seobrien <[email protected]> | Tue Sep 10 17:24:37 2024 |
| committer | Chromeos LUCI <[email protected]> | Tue Sep 17 17:24:54 2024 |
| tree | 4885ddef5ec2061cb1eff7a1dd5bfbfa39cc142b | |
| parent | 813c56edd55ae9a56dde30c6171e2af967738ccf [diff] |
Ensure click drag does not lock on to wrong finger BUG=b:358206010 TEST=CQ, new tests Cq-Depend: chromium:5841662 Change-Id: I4504b33fb65ba162931c807438b81ef84b9d63fa Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/touchpad-tests/+/5851454 Reviewed-by: Henry Barnor <[email protected]> Commit-Queue: ChromeOS Auto Retry <[email protected]> Reviewed-by: Jingyuan Liang <[email protected]> Tested-by: Sean O'Brien <[email protected]>
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.