// +build !js | |
package tests_test | |
import ( | |
"os" | |
"os/exec" | |
"testing" | |
) | |
// Go repository basic compiler tests, and regression tests for fixed compiler bugs. | |
func TestGoRepositoryCompilerTests(t *testing.T) { | |
args := []string{"go", "run", "run.go", "-summary"} | |
if testing.Verbose() { | |
args = append(args, "-v") | |
} | |
cmd := exec.Command(args[0], args[1:]...) | |
cmd.Stdout = os.Stdout | |
cmd.Stderr = os.Stdout | |
err := cmd.Run() | |
if err != nil { | |
t.Fatal(err) | |
} | |
} |