# 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) {
}