main (test): integrate test corpus runner

This allows us to test a large corpus of external packages against the compiler.
This commit is contained in:
Nia Waldvogel
2022-01-10 17:58:34 -05:00
committed by Nia
parent 3a4e0c94e1
commit 8aa223aed9
8 changed files with 474 additions and 4 deletions
+3
View File
@@ -28,5 +28,8 @@ func List(config *compileopts.Config, extraArgs, pkgs []string) (*exec.Cmd, erro
}
cmd := exec.Command(filepath.Join(goenv.Get("GOROOT"), "bin", "go"), args...)
cmd.Env = append(os.Environ(), "GOROOT="+goroot, "GOOS="+config.GOOS(), "GOARCH="+config.GOARCH(), "CGO_ENABLED="+cgoEnabled)
if config.Options.Directory != "" {
cmd.Dir = config.Options.Directory
}
return cmd, nil
}