summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2021-03-13 15:28:01 -0800
committerAndrew G. Morgan <morgan@kernel.org>2021-03-13 15:36:25 -0800
commitb5dcf3aa87523f6f0d429a4bf77cfcd6aba13855 (patch)
tree72a0d81d776dc76a17134f46628b547b88f5d2b8 /Makefile
parent9ff645410782f7f54d706e8e80f69d4b11857efe (diff)
downloadlibcap2-b5dcf3aa87523f6f0d429a4bf77cfcd6aba13855.tar.gz
Add some code to automatically exit the kernel test
I occasionally test libcap against a custom kernel using QEMU. Now I have a simple exit binary for exiting with status. From the top level, one can use: make ktest However, for more control: cd kdebug make test If you want to look around after the tests run: make shell Exit the shell & QEMU with ctrl-D (or exit). Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a1165fa..587363a 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ include Make.Rules
# flags
#
-all install clean kdebug: %: %-here
+all install clean: %: %-here
$(MAKE) -C libcap $@
ifneq ($(PAM_CAP),no)
$(MAKE) -C pam_cap $@
@@ -52,6 +52,9 @@ ifeq ($(GOLANG),yes)
endif
$(MAKE) -C progs $@
+ktest: all
+ $(MAKE) -C kdebug test
+
sudotest: all
$(MAKE) -C tests $@
ifneq ($(PAM_CAP),no)