mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
@@ -167,19 +167,19 @@ func testGoFlags() string {
|
||||
// Note that we don't run with the extended tag. Currently not supported in 32 bit.
|
||||
func Test386() error {
|
||||
env := map[string]string{"GOARCH": "386", "GOFLAGS": testGoFlags()}
|
||||
return runCmd(env, goexe, "test", "./...")
|
||||
return runCmd(env, goexe, "test", "-p", "2", "./...")
|
||||
}
|
||||
|
||||
// Run tests
|
||||
func Test() error {
|
||||
env := map[string]string{"GOFLAGS": testGoFlags()}
|
||||
return runCmd(env, goexe, "test", "./...", "-tags", buildTags())
|
||||
return runCmd(env, goexe, "test", "-p", "2", "./...", "-tags", buildTags())
|
||||
}
|
||||
|
||||
// Run tests with race detector
|
||||
func TestRace() error {
|
||||
env := map[string]string{"GOFLAGS": testGoFlags()}
|
||||
return runCmd(env, goexe, "test", "-race", "./...", "-tags", buildTags())
|
||||
return runCmd(env, goexe, "test", "-p", "2", "-race", "./...", "-tags", buildTags())
|
||||
}
|
||||
|
||||
// Run gofmt linter
|
||||
|
Reference in New Issue
Block a user