tg.run("build", "p")
}
-// Issue 18778.
-func TestDotDotDotOutsideGOPATH(t *testing.T) {
- tg := testgo(t)
- defer tg.cleanup()
-
- tg.tempFile("pkgs/a.go", `package x`)
- tg.tempFile("pkgs/a_test.go", `package x_test
-import "testing"
-func TestX(t *testing.T) {}`)
-
- tg.tempFile("pkgs/a/a.go", `package a`)
- tg.tempFile("pkgs/a/a_test.go", `package a_test
-import "testing"
-func TestA(t *testing.T) {}`)
-
- tg.cd(tg.path("pkgs"))
- tg.run("build", "./...")
- tg.run("test", "./...")
- tg.run("list", "./...")
- tg.grepStdout("pkgs$", "expected package not listed")
- tg.grepStdout("pkgs/a", "expected package not listed")
-}
-
// Issue 18975.
func TestFFLAGS(t *testing.T) {
if !canCgo {
--- /dev/null
+# 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) {
+}
\ No newline at end of file