summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorPetr Vorel <petr.vorel@gmail.com>2018-09-20 01:36:22 +0200
committerStephen Hemminger <stephen@networkplumber.org>2018-09-21 08:59:52 -0700
commitf15836faec6ed199624bf6d4dd055a85f88d160d (patch)
tree1fb8ec328b40c22575227c513f1cd8052acccc1d /testsuite
parentd090fbf33bd15d82978596920b07616aa119ac2f (diff)
downloadiproute2-f15836faec6ed199624bf6d4dd055a85f88d160d.tar.gz
testsuite: Fix missing generate_nlmsg
Commit ad23e152 caused generate_nlmsg to be always missing: $ make alltests make: ./tools/generate_nlmsg: Command not found Create testclean: to remove only results directory. Fixes: ad23e152 testsuite: 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>
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/testsuite/Makefile b/testsuite/Makefile
index d1ac997d..a31d4531 100644
--- a/testsuite/Makefile
+++ b/testsuite/Makefile
@@ -30,7 +30,6 @@ configure:
compile: configure
echo "Entering iproute2" && cd iproute2 && $(MAKE) && cd ..;
- $(MAKE) -C tools
listtests:
@for t in $(TESTS); do \
@@ -39,9 +38,11 @@ listtests:
alltests: $(TESTS)
-clean:
+testclean:
@echo "Removing $(RESULTS_DIR) dir ..."
@rm -rf $(RESULTS_DIR)
+
+clean: testclean
@rm -f iproute2/iproute2-this
@rm -f tests/ip/link/dev_wo_vf_rate.nl
$(MAKE) -C tools clean
@@ -49,18 +50,18 @@ clean:
distclean: clean
echo "Entering iproute2" && cd iproute2 && $(MAKE) distclean && cd ..;
-$(TESTS): clean
+$(TESTS): testclean
ifeq (,$(HAVE_UNSHARED_UTIL))
$(error Please install util-linux tools to run tests in separated network namespace)
endif
@./tools/generate_nlmsg
@mkdir -p $(RESULTS_DIR)
-
+
@for d in $(TESTS_DIR); do \
mkdir -p $(RESULTS_DIR)/$$d; \
done
-
+
@if [ "$(KCPATH)" = "/proc/config.gz" ]; then \
gunzip -c $(KCPATH) >$(KENVFN); \
elif [ "$(KCPATH)" != "" ]; then \