if errorlevel 1 goto fail
echo.
-:: TODO: The other tests in run.bash, especially $GOROOT/test/run.
+:: TODO: The other tests in run.bash.
+
+echo # test
+cd test
+go run run.go
+cd ..
+if errorlevel 1 goto fail
+echo.
echo ALL TESTS PASSED
goto end
var (
verbose = flag.Bool("v", false, "verbose. if set, parallelism is set to 1.")
- numParallel = flag.Int("n", 8, "number of parallel tests to run")
+ numParallel = flag.Int("n", 2*runtime.NumCPU(), "number of parallel tests to run")
summary = flag.Bool("summary", false, "show summary of results")
showSkips = flag.Bool("show_skips", false, "show skipped tests")
)
func main() {
flag.Parse()
- if *verbose {
+
+ // Disable parallelism if printing, or if running on
+ // (presumably underpowered) arm systems.
+ if *verbose || runtime.GOARCH == "arm" {
*numParallel = 1
}