diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2021-03-13 15:28:01 -0800 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2021-03-13 15:36:25 -0800 |
commit | b5dcf3aa87523f6f0d429a4bf77cfcd6aba13855 (patch) | |
tree | 72a0d81d776dc76a17134f46628b547b88f5d2b8 /Makefile | |
parent | 9ff645410782f7f54d706e8e80f69d4b11857efe (diff) | |
download | libcap2-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-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |