testsuite: Warn about empty $(IPVERS)

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>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Petr Vorel 2018-09-20 01:36:24 +02:00 committed by Stephen Hemminger
parent 3537633dcf
commit 133c1a6c87
1 changed files with 3 additions and 0 deletions

View File

@ -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