diff options
Diffstat (limited to 'testsuite/Makefile')
-rw-r--r-- | testsuite/Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/Makefile b/testsuite/Makefile index 20276500..055136b5 100644 --- a/testsuite/Makefile +++ b/testsuite/Makefile @@ -15,6 +15,13 @@ IPVERS := $(filter-out iproute2/Makefile,$(wildcard iproute2/*)) ifneq (,$(wildcard /proc/config.gz)) KENV := $(shell cat /proc/config.gz | gunzip | grep ^CONFIG) +else +KVER := $(shell uname -r) +KCPATHS := /lib/modules/$(KVER)/config /boot/config-$(KVER) +KCPATH := $(firstword $(wildcard $(KCPATHS))) +ifneq (,$(KCPATH)) + KENV := $(shell cat ${KCPATH} | grep ^CONFIG) +endif endif .PHONY: compile listtests alltests configure $(TESTS) @@ -43,6 +50,8 @@ $(TESTS): clean 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 \ |