aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-01-14 09:09:32 +0100
committerMartin Liska <mliska@suse.cz>2021-01-15 14:29:43 +0100
commitdc8475e3348405ce3113364746b64d029a05c343 (patch)
tree297ae11b4734e5cf8541c81ed4e762e2cfbc6a7a /gcc/doc
parentb36c9cd09472c8efb8405726b7cc94fa4ae7059f (diff)
downloadgcc-dc8475e3348405ce3113364746b64d029a05c343.zip
gcc-dc8475e3348405ce3113364746b64d029a05c343.tar.gz
gcc-dc8475e3348405ce3113364746b64d029a05c343.tar.bz2
Pytest in tests: improve
gcc/ChangeLog: * doc/install.texi: Document that some tests need pytest module. * doc/sourcebuild.texi: Likewise. gcc/testsuite/ChangeLog: * lib/gcov.exp: Use 'env python3' for execution of pytests. Check that pytest accepts all needed options first. Improve formatting of PASS/FAIL lines.
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/install.texi2
-rw-r--r--gcc/doc/sourcebuild.texi4
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi
index 17b5382..4c38244 100644
--- a/gcc/doc/install.texi
+++ b/gcc/doc/install.texi
@@ -2990,7 +2990,7 @@ Second, you must have the testing tools installed. This includes
the DejaGnu site has links to these. For running the BRIG frontend
tests, a tool to assemble the binary BRIGs from HSAIL text,
@uref{https://github.com/HSAFoundation/HSAIL-Tools/,,HSAILasm} must
-be installed.
+be installed. Some optional tests also require Python3 and pytest module.
If the directories where @command{runtest} and @command{expect} were
installed are not in the @env{PATH}, you may need to set the following
diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi
index 3d0873d..b9cbe21 100644
--- a/gcc/doc/sourcebuild.texi
+++ b/gcc/doc/sourcebuild.texi
@@ -3092,6 +3092,10 @@ Check line counts in @command{gcov} tests.
@item run-gcov [branches] [calls] @{ @var{opts} @var{sourcefile} @}
Check branch and/or call counts, in addition to line counts, in
@command{gcov} tests.
+
+@item run-gcov-pytest @{ @var{sourcefile} @var{pytest_file} @}
+Check output of @command{gcov} intermediate format with a pytest
+script.
@end table
@subsubsection Clean up generated test files