commit | d289d9fdb0aceb7c6f753806871f68d19211d9af | [log] [tgz] |
---|---|---|
author | Harry Cutts <hcutts@chromium.org> | Fri Oct 09 15:03:11 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Oct 09 22:56:09 2020 |
tree | 8352ad90ea57e4909e6e8aa48a42aefff863a50b | |
parent | 2c69dd7b6b3cbb59487a7a585fe3af87328d74a4 [diff] |
Add presubmit check for oppressive language BUG=b:162024466 TEST=try uploading a CL with one of the blocked terms in it Change-Id: I6444ee5da5edc6999bbe1cb252e78051d704d800 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/touchpad-tests/+/2463468 Tested-by: Harry Cutts <hcutts@chromium.org> Auto-Submit: Harry Cutts <hcutts@chromium.org> Reviewed-by: Sean O'Brien <seobrien@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.