1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/utils/lit/tests
Thomas Preud'homme 23f47cc464 [lit, test] Fix test cancellation feature detection
A lit feature guards tests for the lit timeout functionality because on
most system it depends on the availability of the psutil Python module.
However, that feature is defined based on the ability of the testing lit
to cancel test, which does not necessarily apply to the ability of the
tested lit.

In particular, RUN commands have a cleared PYTHONPATH and user site
packages are disabled. In the case where psutil is found by the testing
lit from one of those two source of python path, the tested lit would
not be able to find it, causing timeout tests to fail.

This commit fixes the issue by testing the ability to cancel tests in
the RUN command environment.

Reviewed By: yln

Differential Revision: https://reviews.llvm.org/D99728
2021-04-20 12:09:30 +01:00
..
Inputs [lit] Fix the return code for "not not" after evaluating "not" internally 2021-04-19 00:37:13 +03:00
unit [LIT] fixed up accidentally committed EOF problems. 2020-10-21 13:29:58 +01:00
.coveragerc
allow-retries.py [lit] Improve naming of test result categories 2020-06-05 08:14:42 -07:00
boolean-parsing.py
check-tested-lit-timeout-ability [lit, test] Fix test cancellation feature detection 2021-04-20 12:09:30 +01:00
custom-result-category.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
discovery.py Add lit config for dir with standalone tests 2021-02-17 10:38:58 +00:00
googletest-discovery-failed.py [lit] Improve naming of test result categories 2020-06-05 08:14:42 -07:00
googletest-format.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
googletest-timeout.py [lit] Try to remove the flakeyness of shtest-timeout.py and googletest-timeout.py. 2020-10-08 10:46:18 -07:00
googletest-upstream-format.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
ignore-fail.py [lit] Sort test start times based on prior test timing data 2021-03-16 05:23:04 -04:00
lit-opts.py [lit] Improve naming of test result categories 2020-06-05 08:14:42 -07:00
lit.cfg [lit, test] Fix test cancellation feature detection 2021-04-20 12:09:30 +01:00
lit.site.cfg.in lit: modernize the lit configuration for the lit tests 2019-05-29 18:07:39 +00:00
max-failures.py [lit] Improve naming of test result categories 2020-06-05 08:14:42 -07:00
max-time.py [lit] Improve naming of test result categories 2020-06-05 08:14:42 -07:00
parallelism-groups.py [lit] Improve naming of test result categories 2020-06-05 08:14:42 -07:00
progress-bar.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
reorder.py [lit] Do not forget test times for tests that weren't executed 2021-03-22 15:26:00 +03:00
selecting.py [lit] Add --xfail and --filter-out (inverse of --filter) 2021-02-20 05:43:29 -05:00
shell-parsing.py
show-result-codes.py [lit] Add --show-xxx command line options 2020-07-08 17:01:05 -07:00
show-used-features.py [lit] Add an option to print all features used in tests 2020-05-29 07:00:05 -04:00
shtest-encoding.py
shtest-env.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
shtest-format-argv0.py [AIX] Add system-aix to lit config file 2020-07-06 12:54:12 -04:00
shtest-format.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
shtest-inject.py [lit] Improve naming of test result categories 2020-06-05 08:14:42 -07:00
shtest-keyword-parse-errors.py [lit] Fix handling of various keyword parse errors 2020-06-12 09:37:40 -04:00
shtest-not.py [lit] Fix the return code for "not not" after evaluating "not" internally 2021-04-19 00:37:13 +03:00
shtest-output-printing.py [lit][tests][AIX] Update expected form of diagnostic messages; use not to normalize non-zero exit values 2019-05-01 15:47:16 +00:00
shtest-recursive-substitution.py [lit] Don't expand escapes until all substitutions have been applied 2020-07-27 18:09:00 +03:00
shtest-run-at-line.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
shtest-shell.py [NFCI][lit] Unbreak more lit self-tests after D98179 2021-03-22 15:25:32 +03:00
shtest-timeout.py Fix shtest-timeout test harder 2020-12-08 00:23:33 -08:00
test-data-micro.py
test-data.py
test-output-micro.py
test-output.py
unittest-adaptor.py [lit] Add back LitTestCase 2019-10-15 20:57:20 +00:00
unparsed-requirements.py [lit] Allow for tests to have non-parsed requirements 2020-06-15 16:43:02 -07:00
usage.py [lit] Refine adoption of argparse --version action 2020-03-31 16:02:16 -07:00
xfail-cl.py [lit testing] Fix xfail-cl.py test worker count 2021-04-06 20:48:18 +01:00
xunit-output.py [lit] Don't include tests skipped due to sharding in reports 2020-07-26 11:39:22 +01:00