Signed-off-by: Bartosz Golaszewski <[email protected]>
---
 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

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to