testsuite: Fix missing generate_nlmsg
Commitad23e152caused generate_nlmsg to be always missing: $ make alltests make: ./tools/generate_nlmsg: Command not found Create testclean: to remove only results directory. Fixes:ad23e152testsuite: remove all temp files and implement make clean Signed-off-by: Petr Vorel <petr.vorel@gmail.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
d090fbf33b
commit
f15836faec
|
|
@ -30,7 +30,6 @@ configure:
|
||||||
|
|
||||||
compile: configure
|
compile: configure
|
||||||
echo "Entering iproute2" && cd iproute2 && $(MAKE) && cd ..;
|
echo "Entering iproute2" && cd iproute2 && $(MAKE) && cd ..;
|
||||||
$(MAKE) -C tools
|
|
||||||
|
|
||||||
listtests:
|
listtests:
|
||||||
@for t in $(TESTS); do \
|
@for t in $(TESTS); do \
|
||||||
|
|
@ -39,9 +38,11 @@ listtests:
|
||||||
|
|
||||||
alltests: $(TESTS)
|
alltests: $(TESTS)
|
||||||
|
|
||||||
clean:
|
testclean:
|
||||||
@echo "Removing $(RESULTS_DIR) dir ..."
|
@echo "Removing $(RESULTS_DIR) dir ..."
|
||||||
@rm -rf $(RESULTS_DIR)
|
@rm -rf $(RESULTS_DIR)
|
||||||
|
|
||||||
|
clean: testclean
|
||||||
@rm -f iproute2/iproute2-this
|
@rm -f iproute2/iproute2-this
|
||||||
@rm -f tests/ip/link/dev_wo_vf_rate.nl
|
@rm -f tests/ip/link/dev_wo_vf_rate.nl
|
||||||
$(MAKE) -C tools clean
|
$(MAKE) -C tools clean
|
||||||
|
|
@ -49,7 +50,7 @@ clean:
|
||||||
distclean: clean
|
distclean: clean
|
||||||
echo "Entering iproute2" && cd iproute2 && $(MAKE) distclean && cd ..;
|
echo "Entering iproute2" && cd iproute2 && $(MAKE) distclean && cd ..;
|
||||||
|
|
||||||
$(TESTS): clean
|
$(TESTS): testclean
|
||||||
ifeq (,$(HAVE_UNSHARED_UTIL))
|
ifeq (,$(HAVE_UNSHARED_UTIL))
|
||||||
$(error Please install util-linux tools to run tests in separated network namespace)
|
$(error Please install util-linux tools to run tests in separated network namespace)
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue