blob: 4044b6b79c9c5ee0d91b575d5ce647cd2d48a03d [file] [log] [blame]
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
func goTest(tcs []*toolchain) error {
for _, tc := range tcs {
log.Printf("Running Go test benchmarks for %s", tc.Name)
fmt.Printf("toolchain: %s\n", tc.Name)
err := tc.Do("test", "-v", "-run=none", "-bench=.", "-count=5", "")
if err != nil {
return fmt.Errorf("error running gotest with toolchain %s: %w", tc.Name, err)
return nil