mage: test to run tests
This commit is contained in:
parent
cf94f0a59f
commit
6038f2f151
9
mage.go
9
mage.go
|
@ -187,8 +187,17 @@ func Package() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Version is the version as git reports.
|
||||||
func Version() {
|
func Version() {
|
||||||
ver, err := gitTag()
|
ver, err := gitTag()
|
||||||
qod.ANE(err)
|
qod.ANE(err)
|
||||||
qod.Printlnf("route-%s", ver)
|
qod.Printlnf("route-%s", ver)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Test runs all of the functional and unit tests for the project.
|
||||||
|
func Test() {
|
||||||
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
|
defer cancel()
|
||||||
|
|
||||||
|
shouldWork(ctx, nil, wd, "go", "test", "-race", "-v", "./...")
|
||||||
|
}
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
xena@greedo.xeserv.us.17867:1486865539
|
|
Loading…
Reference in New Issue