aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-22 19:57:26 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-22 19:57:26 -0500
commit041f114958746a29121ec9e8b0672ca8a9a701d1 (patch)
tree3b5061fa987385813ae04e3a14a0890ef34ab83f /Makefile
parent6927f43711ea8e4558ff4c138291712179c21acb (diff)
downloadcvez-041f114958746a29121ec9e8b0672ca8a9a701d1.tar.bz2
cvez-041f114958746a29121ec9e8b0672ca8a9a701d1.zip
Makefile: add testall and testalljson, update test and testjson to use -short
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ebc6afc..6af89c8 100644
--- a/Makefile
+++ b/Makefile
@@ -4,12 +4,20 @@
all:
go build -tags='sqlite_fts5 sqlite_json' -ldflags='-s -w'
-# run all tests
+# run all tests except long ones
test:
+ go test -short -tags='sqlite_fts5 sqlite_json' -cover ./...
+
+# run all tests except long ones, print result to stdout as json
+testjson:
+ go test -short -tags='sqlite_fts5 sqlite_json' -json -cover ./...
+
+# run all tests, including long ones
+testall:
go test -tags='sqlite_fts5 sqlite_json' -cover ./...
# run all tests, print result to stdout as json
-testjson:
+testalljson:
go test -tags='sqlite_fts5 sqlite_json' -json -cover ./...
# run go vet