lib.mk (bf66078235ca27062f5924ed6901f40becc4a1a4) | lib.mk (5c069b6dedef1fab5420ca8658ed7f9ee4d26007) |
---|---|
1# This mimics the top-level Makefile. We do it explicitly here so that this 2# Makefile can operate with or without the kbuild infrastructure. 3CC := $(CROSS_COMPILE)gcc 4 5ifeq (0,$(MAKELEVEL)) 6 ifneq ($(O),) 7 OUTPUT := $(O) 8 else --- 53 unchanged lines hidden (view full) --- 62 63all: khdr $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) 64else 65all: $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) 66endif 67 68.ONESHELL: 69define RUN_TESTS | 1# This mimics the top-level Makefile. We do it explicitly here so that this 2# Makefile can operate with or without the kbuild infrastructure. 3CC := $(CROSS_COMPILE)gcc 4 5ifeq (0,$(MAKELEVEL)) 6 ifneq ($(O),) 7 OUTPUT := $(O) 8 else --- 53 unchanged lines hidden (view full) --- 62 63all: khdr $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) 64else 65all: $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) 66endif 67 68.ONESHELL: 69define RUN_TESTS |
70 @. $(selfdir)/kselftest/runner.sh; \ | 70 @BASE_DIR="$(selfdir)"; \ 71 . $(selfdir)/kselftest/runner.sh; \ |
71 if [ "X$(summary)" != "X" ]; then \ 72 per_test_logging=1; \ 73 fi; \ 74 run_many $(1) 75endef 76 77run_tests: all 78ifneq ($(KBUILD_SRC),) --- 74 unchanged lines hidden --- | 72 if [ "X$(summary)" != "X" ]; then \ 73 per_test_logging=1; \ 74 fi; \ 75 run_many $(1) 76endef 77 78run_tests: all 79ifneq ($(KBUILD_SRC),) --- 74 unchanged lines hidden --- |