[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [PATCH 4/6] unit-tests: modify the Makefile 'test' target to run unit-tests too
From:       Bartosz Golaszewski <bartekgola () gmail ! com>
Date:       2014-04-15 21:07:09
Message-ID: 1397603199-12864-5-git-send-email-bartekgola () gmail ! com
[Download RAW message or body]

Signed-off-by: Bartosz Golaszewski <bartekgola@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

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic