commit | 4c32bef9592024fe76fb0b8c913add3b1421e2d6 | [log] [tgz] |
---|---|---|
author | Harry Cutts <hcutts@chromium.org> | Tue Apr 20 22:08:13 2021 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Apr 21 21:33:38 2021 |
tree | abc8b7fceeeae9a07ef3825b2b026543956d2a47 | |
parent | d289d9fdb0aceb7c6f753806871f68d19211d9af [diff] |
Set "Event Logging Enable" property for all tests This re-enables event logging while the tests are running, allowing them to work again. BUG=b:184385681 TEST=Run one or more touchtests Cq-Depend: chromium:2830216 Change-Id: I6a0a7c080ca3a297de26c7f4bb679cc1e36cf871 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/touchpad-tests/+/2842543 Tested-by: Harry Cutts <hcutts@chromium.org> Auto-Submit: Harry Cutts <hcutts@chromium.org> Reviewed-by: Sean O'Brien <seobrien@chromium.org> Commit-Queue: Harry Cutts <hcutts@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.