summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2020-12-06 06:13:38 -0800
committerGitHub <[email protected]>2020-12-06 06:13:38 -0800
commit54afccfa0f5a5574525cbba3b4568cbda252a3df (patch)
treeb0234aaf89bb7c0fd791f98244507b74e1000da3 /Makefile
parent5d8eaf7e65c404a0d10d3705697dd99369630dda (diff)
Build improvements (#707)
This change makes the test be verbose and use parallelization if possible (when using gmake to build).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 182c53e..84262f4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+TEST_ARGS ?= --count=1
+
default: test
# System library
@@ -5,7 +7,7 @@ default: test
# This uses whatever version of libgit2 can be found in the system.
test:
go run script/check-MakeGitError-thread-lock.go
- go test --count=1 ./...
+ go test $(TEST_ARGS) ./...
install:
go install ./...
@@ -28,7 +30,7 @@ test-dynamic: dynamic-build/install/lib/libgit2.so
go run script/check-MakeGitError-thread-lock.go
PKG_CONFIG_PATH=dynamic-build/install/lib/pkgconfig \
LD_LIBRARY_PATH=dynamic-build/install/lib \
- go test --count=1 ./...
+ go test $(TEST_ARGS) ./...
install-dynamic: dynamic-build/install/lib/libgit2.so
PKG_CONFIG_PATH=dynamic-build/install/lib/pkgconfig \
@@ -47,7 +49,7 @@ static-build/install/lib/libgit2.a:
test-static: static-build/install/lib/libgit2.a
go run script/check-MakeGitError-thread-lock.go
- go test --count=1 --tags "static" ./...
+ go test --tags "static" $(TEST_ARGS) ./...
install-static: static-build/install/lib/libgit2.a
go install --tags "static" ./...