diff options
Diffstat (limited to 'Makefile.custom')
-rw-r--r-- | Makefile.custom | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.custom b/Makefile.custom index 8c95ef2d4..f8a12831d 100644 --- a/Makefile.custom +++ b/Makefile.custom | |||
@@ -55,7 +55,11 @@ endif | |||
55 | # (cp -pPR is POSIX-compliant (cp -dpR or cp -a would not be)) | 55 | # (cp -pPR is POSIX-compliant (cp -dpR or cp -a would not be)) |
56 | .PHONY: check | 56 | .PHONY: check |
57 | .PHONY: test | 57 | .PHONY: test |
58 | ifeq ($(CONFIG_UNIT_TEST),y) | ||
59 | UNIT_CMD = ./busybox unit | ||
60 | endif | ||
58 | check test: busybox busybox.links | 61 | check test: busybox busybox.links |
62 | $(UNIT_CMD) | ||
59 | test -d $(objtree)/testsuite || cp -pPR $(srctree)/testsuite $(objtree) | 63 | test -d $(objtree)/testsuite || cp -pPR $(srctree)/testsuite $(objtree) |
60 | bindir=$(objtree) srcdir=$(srctree)/testsuite \ | 64 | bindir=$(objtree) srcdir=$(srctree)/testsuite \ |
61 | $(SHELL) -c "cd $(objtree)/testsuite && $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:0=),-v)" | 65 | $(SHELL) -c "cd $(objtree)/testsuite && $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:0=),-v)" |