aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2018-09-09 12:32:56 -0700
committerAndrew G. Morgan <morgan@kernel.org>2018-09-09 12:33:15 -0700
commit8030da1b54606260b5e1af6b7dcf5ce2405cf2a8 (patch)
treea9236eefaeaa27fca5a9e9253cd56d84d07c91ef /Makefile
parent8dfead766c6e540b9175bb06b0be7fb3bb715620 (diff)
downloadlibcap-8030da1b54606260b5e1af6b7dcf5ce2405cf2a8.tar.gz
Add a convenient make top level 'test' target
The test does things with privilege on the current system, so it invokes sudo to run. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ad58c3a..0a31124 100644
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,9 @@ release: distclean
cd .. && ln -s libcap libcap-$(VERSION).$(MINOR) && tar cvf libcap-$(VERSION).$(MINOR).tar libcap-$(VERSION).$(MINOR)/* && rm libcap-$(VERSION).$(MINOR)
cd .. && gpg -sba -u E2CCF3F4 libcap-$(VERSION).$(MINOR).tar
+test: all
+ cd progs && sudo ./quicktest.sh
+
tagrelease: distclean
@echo "sign the tag twice: older DSA key; and newer RSA kernel.org key"
git tag -u D41A6DF2 -s libcap-$(VERSION).$(MINOR)