From 6038f2f15163d288d28b12a6b30ccbea7a9eae34 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sun, 1 Oct 2017 22:24:19 -0700 Subject: [PATCH] mage: test to run tests --- mage.go | 9 +++++++++ proto/client/.#client.go | 1 - 2 files changed, 9 insertions(+), 1 deletion(-) delete mode 120000 proto/client/.#client.go diff --git a/mage.go b/mage.go index 1f7a0ae..6c50aac 100644 --- a/mage.go +++ b/mage.go @@ -187,8 +187,17 @@ func Package() { } } +// Version is the version as git reports. func Version() { ver, err := gitTag() qod.ANE(err) 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", "./...") +} diff --git a/proto/client/.#client.go b/proto/client/.#client.go deleted file mode 120000 index 81f4155..0000000 --- a/proto/client/.#client.go +++ /dev/null @@ -1 +0,0 @@ -xena@greedo.xeserv.us.17867:1486865539 \ No newline at end of file