Exit test test if kyua is missing
authorSofian Brabez <sbz@FreeBSD.org>
Sun, 7 Mar 2021 17:58:46 +0000 (17:58 +0000)
committerSofian Brabez <sbz@FreeBSD.org>
Sun, 7 Mar 2021 18:00:34 +0000 (18:00 +0000)
Makefile

index afa034ba60866d1ae897969911714e3acc41745f..c5673981216fd19120d38a533505fa28e6cfe9ec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,10 @@ MAN=   elfdbg.1
 SRCS=  elfdbg.c elf.c compat.c
 
 test:
+       @if ! type kyua >/dev/null 2>&1; then \
+               ${ECHO} "kyua not found. Install with pkg install kyua"; exit 1; \
+       fi; \
+
        @(cd tests && kyua test && kyua report)
 
 .include <bsd.prog.mk>