aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index bbda25f..e145df1 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -76,6 +76,14 @@ test:
fi; \
done
+bench:
+ @for pkg in `go list ./... | grep -v 'vendor'`; do \
+ if ! env LD_LIBRARY_PATH=`pwd`/lib DYLD_LIBRARY_PATH=`pwd`/lib go test -bench=. -run=^$$ $$pkg; then \
+ echo 'Some test failed, abort'; \
+ exit 1; \
+ fi; \
+ done
+
check-format:
@if gofmt -l `go list -f '{{.Dir}}' ./...` | grep -q go; then \
echo 'Error: source code not formatted'; \