var dir … var host … var port … func TestMain(m *testing.M) { … } // serveStandalone serves the vcweb testdata in a standalone HTTP server. func serveStandalone(host string, port int) (err error) { … } // TestScripts verifies that the VCS setup scripts in cmd/go/testdata/vcstest // run successfully. func TestScripts(t *testing.T) { … }