commit | f02361402b31219ab9a2abd49a76742bb01467f5 | [log] [tgz] |
---|---|---|
author | Harry Cutts <hcutts@chromium.org> | Wed Jul 22 15:37:02 2020 -0700 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jul 23 07:47:00 2020 +0000 |
tree | c9fcee4953e0c42760656fd83f5e68e525ff907b | |
parent | ec8fc231e199b16c4d1a247853c9afc17d297402 [diff] |
Decode standard output when recompilation fails BUG=none TEST=make compilation of mttools/mtreplay fail, then run the tests Change-Id: Iff5efb7a2ad09604e4cfe3589c3618c31c925501 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/touchpad-tests/+/2314861 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.