diff options
author | Michael Matloob <matloob@golang.org> | 2019-12-26 19:24:41 -0500 |
---|---|---|
committer | Michael Matloob <matloob@golang.org> | 2020-02-19 20:38:20 +0000 |
commit | 8df6a5d9ad31ffbbf7828e322c1eb6ef11ed2bd0 (patch) | |
tree | eec99b17cfd74f5d43df511e7ee13d8f5d1ce023 /src/cmd/go/testdata/script/README | |
parent | b15fd6b39e29edfe7f4b332458ddc71cffdaacc4 (diff) | |
download | go-8df6a5d9ad31ffbbf7828e322c1eb6ef11ed2bd0.tar.gz go-8df6a5d9ad31ffbbf7828e322c1eb6ef11ed2bd0.zip |
cmd/go: convert some coverage tests to the script framework
This change converts TestCoverageFunc, TestCoverageDashC,
TestCoverageSyncAtomicImport, TestCoverageErrorLine,
TestCoverageDepLoop, TestCoverageDotImport, and
TestTestBuildFailureOutput to the script framework.
It adds a -exec modifier to the script framework's [exists] check
to check that a file is executable.
Updates #17751
Change-Id: Idc1e36c3702c94918631936f637510a6679d18a0
Reviewed-on: https://go-review.googlesource.com/c/go/+/212624
Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/cmd/go/testdata/script/README')
-rw-r--r-- | src/cmd/go/testdata/script/README | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/go/testdata/script/README b/src/cmd/go/testdata/script/README index 7dba6b394c..71d38161d5 100644 --- a/src/cmd/go/testdata/script/README +++ b/src/cmd/go/testdata/script/README @@ -134,9 +134,10 @@ The commands are: test. At the end of the test, any remaining background processes are terminated using os.Interrupt (if supported) or os.Kill. -- [!] exists [-readonly] file... +- [!] exists [-readonly] [-exec] file... Each of the listed files or directories must (or must not) exist. If -readonly is given, the files or directories must be unwritable. + If -exec is given, the files or directories must be executable. - [!] go args... [&] Run the (test copy of the) go command with the given arguments. |