-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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 TestPluginNonMain to script framework
TestPluginNonMain was broken before this change! (It provided the wrong directory for testdep/p2: testdata/testdep/p2 instead of testdata/src/testdep/p2). Change-Id: Ib815f119bae1d758b500cd8ad82c016cb630d71e Reviewed-on: https://go-review.googlesource.com/c/go/+/212938 Run-TryBot: Michael Matloob <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Jay Conrod <[email protected]>
- Loading branch information
Showing
2 changed files
with
17 additions
and
14 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
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,17 @@ | ||
# Plugins are only supported on linux,cgo and darwin,cgo. | ||
[!linux] [!darwin] skip | ||
[!cgo] skip | ||
|
||
go build -n testdep/p2 | ||
! go build -buildmode=plugin testdep/p2 | ||
stderr '-buildmode=plugin requires exactly one main package' | ||
|
||
-- testdep/p1/p1.go -- | ||
package p1 | ||
-- testdep/p1/p1_test.go -- | ||
package p1 | ||
|
||
import _ "testdep/p2" | ||
-- testdep/p2/p2.go -- | ||
package p2 | ||
|