diff mbox series

[iproute2,v2,3/3] testsuite: Warn about empty $(IPVERS)

Message ID 20180919233624.18494-4-petr.vorel@gmail.com
State Accepted, archived
Delegated to: stephen hemminger
Headers show
Series testsuite: make alltests fixes | expand

Commit Message

Petr Vorel Sept. 19, 2018, 11:36 p.m. UTC
alltests target requires having symlink created by configure target
(default target). Without that there is no test being run.

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
 testsuite/Makefile | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/testsuite/Makefile b/testsuite/Makefile
index 1c2467f5..b3aebec1 100644
--- a/testsuite/Makefile
+++ b/testsuite/Makefile
@@ -54,6 +54,9 @@  distclean: clean
 	echo "Entering iproute2" && cd iproute2 && $(MAKE) distclean && cd ..;
 
 $(TESTS): testclean
+ifeq (,$(IPVERS))
+	$(error Please run make first)
+endif
 ifeq (,$(HAVE_UNSHARED_UTIL))
 	$(error Please install util-linux tools to run tests in separated network namespace)
 endif