-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go: convert TestDotDotDotOutsideGOPATH to script framework
Part of converting all tests to script framework to improve test parallelism. Updates #36320 Updates #17751 Change-Id: I2170f427c238e9fe8c029b43b346621d82c5e8fc Reviewed-on: https://go-review.googlesource.com/c/go/+/214388 Reviewed-by: Jay Conrod <[email protected]>
- Loading branch information
Showing
2 changed files
with
29 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/cmd/go/testdata/script/build_patterns_outside_gopath.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Tests issue #18778 | ||
|
||
cd pkgs | ||
go build ./... | ||
! stdout . | ||
go test ./... | ||
stdout '^ok' | ||
go list ./... | ||
stdout 'pkgs$' | ||
stdout 'pkgs/a' | ||
|
||
-- pkgs/a.go -- | ||
package x | ||
-- pkgs/a_test.go -- | ||
package x_test | ||
|
||
import "testing" | ||
|
||
func TestX(t *testing.T) { | ||
} | ||
-- pkgs/a/a.go -- | ||
package a | ||
-- pkgs/a/a_test.go -- | ||
package a_test | ||
|
||
import "testing" | ||
|
||
func TestA(t *testing.T) { | ||
} |