summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-05-10 09:58:54 +0200
committerRobin Jarry <robin@jarry.cc>2022-05-10 14:50:49 +0200
commitb65f5649c853badcf8dad6b7be06cafed0ed70c0 (patch)
tree872dbca2fd912f40e81f9ad3f6a1e19184db9885 /Makefile
parent43a79acdfafead3a9d23a1f5b690fda9cdf8995f (diff)
downloadaerc-b65f5649c853badcf8dad6b7be06cafed0ed70c0.zip
gpg: make tests more robust
Skip the tests if gpg is not installed. Avoid interference with the global ~/.gnupg. Automatically delete GNUPGHOME at the end of tests. Signed-off-by: Robin Jarry <robin@jarry.cc> Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 77de2c8..52c0c55 100644
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,10 @@ checkfmt:
exit 1; \
fi
+.PHONY: tests
+tests:
+ $(GO) test $(GOFLAGS) -v ./...
+
.PHONY: debug
debug: aerc.debug
@echo 'Run `./aerc.debug` and use this command in another terminal to attach a debugger:'