Commit Graph

64 Commits

Author SHA1 Message Date
Japheth Lim 9fa4dece6b run_tests: add --dot option to print test dependency graph 2018-09-27 15:03:17 +10:00
Japheth Lim a837d38012 regression: better messages for nonexistent tests 2018-06-15 11:23:57 +10:00
Japheth Lim a70475ac99 regression: support using --remove with test selection; refactoring 2018-06-14 20:42:30 +10:00
Japheth Lim 06027b6841 regression: clarify behaviour of --exclude vs. --remove 2018-06-13 17:28:35 +10:00
Japheth Lim 3ae4d6577d regression: add --scale-timeouts and --no-timeouts options
These are being added to support builds that turn on extra debugging
or measurement options in Isabelle, which slow the builds down.
Might also be useful for running tests on very slow machines.
2018-06-01 15:19:37 +10:00
Thomas Sewell 5fb1fcdf80 run_tests: dry run mode.
The run_tests script already has a -l/--list option to list all tests.
This adds a -L/--dry-run option to list the requested tests, which makes it
easier to figure out what tests -r/-x etc would select.

Also clarify in --help that -v adds more info to -l.
2018-03-15 14:31:45 +11:00
Rafal Kolanski 623f216d94 regression: meta-regression improvements for timeout_output
- timeout_output looks for isabelle relative to its file path
- run_tests looks for timeout_output relative to its file path
- output from timeout_output is utf8-decoded before attempting to
  concatenate with other strings

Meta-regression should now pass.
2018-01-23 13:27:48 +11:00
Thomas Sewell 77837d16ac Fix for python3 in run_tests.py.
We require run_tests.py to work with both python2 and python3, which requires
particular syntax for exception handling.
2018-01-23 11:48:11 +11:00
Thomas Sewell 18cf880573 run_tests: Create and fetch timing/timeout info. 2018-01-22 12:04:08 +11:00
Matthew Brecknell ae91c097d4 regression: ignore undefined tests in `run_tests.py -r ...`
The run_tests wrapper explicitly excludes any tests which are known to
fail on certain L4V_ARCH settings. The list of excluded tests includes
some tests which are only defined in private/internal repositories.

Recent changes to run_tests.py and testspec.py assumed that tests
excluded using `run_tests.py -r ...` would be defined in tests.xml
files. This caused regression to fail when performed with only
publicly-available repositories.

This change allows use of the `run_tests.py -r ...` option with test
names that are not defined in any tests.xml files.

tags: [NO_PROOF]
2017-09-07 15:01:34 +10:00
Matthew Brecknell 43f95c8a09 regression: collect more dependency information 2017-08-21 17:49:45 +10:00
Matthew Brecknell e0e8a0a20b regression: refactor tests.xml parser 2017-08-21 17:49:45 +10:00
Matthew Brecknell c03548d9a8 regression: always parse tests.xml strictly 2017-08-21 17:15:34 +10:00
Matthew Brecknell 064c8b0718 regression: remove legacy run_tests options 2017-08-21 17:15:34 +10:00
Matthew Brecknell 2a2b3b9cbe regression: clean up testspec and run_tests.py 2017-08-21 17:15:34 +10:00
Alejandro Gomez-Londono 4671d2615a test: run_tests.py now prints a warning when excluding unknown tests (with [-x] [-r])
* This allows mentioning internal tests in exclusion lists without
    breaking external (github) builds

    tags: [NO_PROOF]
2017-06-26 15:21:06 +10:00
Alejandro Gomez-Londono 74500bd829 arm-hyp test: Adding exclusion test set for ARM_HYP + cleanup 2017-06-19 14:32:43 +10:00
Thomas Sewell 68e22b2d14 Slightly reduce run_tests.py CPU usage.
The watch_kill_switch loop was pretty busy, adding a simple
timeout reduces CPU consumption.

The CPU consumption of run_tests.py is still higher than I'd expect
to just update a terminal, but I don't know where to investigate
further.
2016-11-02 11:19:10 +11:00
Alejandro Gomez-Londono 0c29567bb2 Regression: re-applying [094fb48623] to fix run_tests.py
The changes on [094fb48623] where (for some weird reason) removed from
run_tests.py in the last update, this commit merely re-apply those
changes.
2016-08-29 17:08:34 +10:00
Thomas Sewell 8b2818299a Read extra_tests as relative to dir it is in. 2016-08-26 16:59:27 +10:00
Thomas Sewell 37efb6326a Have run_tests see an extra_tests special file.
The run_tests.py script already searches the directory for all
test.xml files. It will now also note any files named extra_tests,
and also search any directories which appear as lines of those
files.

(Following symlinks would been more obvious but create other issues.)
2016-08-26 16:59:27 +10:00
Alejandro Gomez-Londono ef99749ee1 Regression: Added RUN_TESTS_DEFAULT for overwriting the default test set
It is sometimes desirable to overwrite the default set of tests that are
being run in a per execution basis (ex: to allow wrapper scripts to have
a custom default) RUN_TESTS_DEFAULT is an space separated list of tests
that will be run if no specific tests are given.

  tags: [NO_PROOF]
2016-08-24 13:23:33 +10:00
Alejandro Gomez-Londono 094fb48623 VER-525: run_tests handles dependencies incorrect (solved) 2016-05-10 14:15:32 +10:00
Japheth Lim 66e94dcf76 regression: decode test output as UTF-8, not ASCII. 2016-02-19 12:00:03 +11:00
Japheth Lim 63f1a0854a regression: add --grace-period option to allow tests to clean up. 2016-02-17 11:19:13 +11:00
Japheth Lim ec49042ec8 regression: fix bug in -x (from 5c776152b). 2016-02-05 12:16:21 +11:00
Japheth Lim 5c776152b3 regression: add -x option to exclude tests from running. 2016-02-04 15:22:39 +11:00
Japheth Lim 404b779e21 regression: add --fail-fast option; refactor stringly typed code. 2016-02-03 17:44:12 +11:00
Japheth Lim 2f94189c7b regression: detect builds that get stuck without using CPU.
Such builds would have bypassed the cpu-timeout test settings
but can now be detected and killed.
2016-02-02 17:58:19 +11:00
Japheth Lim 25fc04eae0 regression: only print start-of-test messages if stdout is a tty.
This avoids clutter in non-tty outputs, such as regression emails.
2016-02-01 16:26:41 +11:00
Japheth Lim 625c15626d Merge pull request #9 in SEL4/l4v from regression-cputime to master
* commit '84e5f7d81403549f9d88fab3bf0da02b657f47bc':
  regression: change CPU time non-mono from an error to a warning, so that it doesn't kill an otherwise working build.
  style: regression: refactor use of print_test_line.
  regression: report CPU usage; support timeouts based on CPU usage.
2016-02-01 05:23:47 +00:00
Japheth Lim 19b4b76ea8 style: regression: refactor use of print_test_line. 2016-01-29 11:53:52 +11:00
Corey Richardson af60787317
various scripts: use print_function uniformly for python3 compat 2016-01-28 16:11:07 +11:00
Japheth Lim 197f48a25f regression: report CPU usage; support timeouts based on CPU usage. 2016-01-27 19:24:42 +11:00
Corey Richardson 5370e01b67
regression: decode test output immediately 2016-01-22 15:16:58 +11:00
Corey Richardson 8133f8a292
regression: python3 compat, use byte literals where bytes are expected 2016-01-21 19:00:06 +11:00
Corey Richardson e6d3bd31f8
regression: python3 compat, Queue -> queue 2016-01-21 18:59:30 +11:00
Japheth Lim dcce50ce79 regression: make --junit-report output more Bamboo-friendly. 2016-01-14 15:55:43 +11:00
Japheth Lim ea38a3303d regression: get dependency tracking to work again. 2016-01-14 11:59:20 +11:00
Japheth Lim 2c7a36e4f1 regression: fix a bug that prevented the printing of failure logs. 2016-01-14 11:27:08 +11:00
Japheth Lim 5892043915 regression: add option to produce JUnit-style report. For Bamboo usage. 2016-01-13 18:01:23 +11:00
Japheth Lim 0afc807807 regression: remove assertion because it may go off spuriously for skipped tests. 2016-01-13 17:10:31 +11:00
Japheth Lim e66cba5466 regression: handle dependencies correctly for manually specified tests. 2016-01-13 16:59:25 +11:00
Japheth Lim cf1dc6852f regression: don't try to kill pids that have already finished.
Reduces errors due to pid reuse, such as in this regression build
  Regression SUCCESS (2015-12-11 04:55:36)
2016-01-11 15:34:36 +11:00
Japheth Lim 46afb6d0fd regression: fix status line behaviour to match docs. 2016-01-08 17:06:54 +11:00
Japheth Lim 71143907be regression: Python style fixes (credit: Matt F). 2016-01-07 20:41:45 +11:00
Japheth Lim 26eb9eba44 trivial: regression: revert unintended change in timeout handling. 2016-01-07 17:56:18 +11:00
Japheth Lim 2cdbadca87 regression: add status line for ttys; fix timeout and Python var scoping. 2016-01-07 17:49:22 +11:00
Japheth Lim 7d24c4a5b5 regression: parallelise run_tests.py. New options: -j, --legacy-status. 2016-01-07 17:22:00 +11:00
Corey Richardson d28994d860 Consistently use /usr/bin/env to invoke python 2015-10-13 16:42:53 +11:00