Home | History | Annotate | Download | only in test

Lines Matching refs:Dir

102 				dir, file := filepath.Split(arg)
103 tests = append(tests, startTest(dir, file))
109 for _, dir := range dirs {
110 for _, baseGoFile := range goFiles(dir) {
111 tests = append(tests, startTest(dir, baseGoFile))
124 errStr = "unexpected skip for " + path.Join(test.dir, test.gofile) + ": " + errStr
141 path.Join(test.dir, test.gofile),
179 func goFiles(dir string) []string {
180 f, err := os.Open(dir)
200 func compileInDir(runcmd runCmd, dir string, names ...string) (out []byte, err error) {
203 cmd = append(cmd, filepath.Join(dir, name))
227 dir, gofile string
239 func startTest(dir, gofile string) *test {
241 dir: dir,
273 return filepath.Join(t.dir, t.gofile)
277 return filepath.Join(t.dir, strings.Replace(t.gofile, ".go", ".dir", -1))
457 action = "run" // the run case already looks for <dir>/<test>.out files
502 cmd.Dir = t.tempDir
503 cmd.Env = envForDir(cmd.Dir)
719 return filepath.Join(t.dir, t.gofile)
729 filename := filepath.Join(t.dir, t.gofile)
1036 func envForDir(dir string) []string {
1040 env[i] = "PWD=" + dir
1044 env = append(env, "PWD="+dir)