aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2018-09-14 17:13:08 +0800
committerGitHub <noreply@github.com>2018-09-14 17:13:08 +0800
commit2110dcdae6ef551cedc006649a1ae1f429bcc013 (patch)
tree502538ee507da4076c05fc2d992a626736259ef0 /GNUmakefile
parentce3e7931016bb5f3a68e1b27e308bb54522b34a4 (diff)
downloaddexon-consensus-2110dcdae6ef551cedc006649a1ae1f429bcc013.tar
dexon-consensus-2110dcdae6ef551cedc006649a1ae1f429bcc013.tar.gz
dexon-consensus-2110dcdae6ef551cedc006649a1ae1f429bcc013.tar.bz2
dexon-consensus-2110dcdae6ef551cedc006649a1ae1f429bcc013.tar.lz
dexon-consensus-2110dcdae6ef551cedc006649a1ae1f429bcc013.tar.xz
dexon-consensus-2110dcdae6ef551cedc006649a1ae1f429bcc013.tar.zst
dexon-consensus-2110dcdae6ef551cedc006649a1ae1f429bcc013.zip
crypto: Add Benchmark for DKG (#105)
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'; \