[PATCH 4/6] unit-tests: modify the Makefile 'test' target to run unit-tests too
Bartosz Golaszewski
bartekgola at gmail.com
Tue Apr 15 23:06:37 UTC 2014
Signed-off-by: Bartosz Golaszewski <bartekgola at gmail.com>
---
Makefile.custom | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Makefile.custom b/Makefile.custom
index 8c95ef2..f8a1283 100644
--- a/Makefile.custom
+++ b/Makefile.custom
@@ -55,7 +55,11 @@ endif
# (cp -pPR is POSIX-compliant (cp -dpR or cp -a would not be))
.PHONY: check
.PHONY: test
+ifeq ($(CONFIG_UNIT_TEST),y)
+UNIT_CMD = ./busybox unit
+endif
check test: busybox busybox.links
+ $(UNIT_CMD)
test -d $(objtree)/testsuite || cp -pPR $(srctree)/testsuite $(objtree)
bindir=$(objtree) srcdir=$(srctree)/testsuite \
$(SHELL) -c "cd $(objtree)/testsuite && $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:0=),-v)"
--
1.8.4.5
More information about the busybox
mailing list