fix "make check"
authorDenis Vlasenko <vda.linux@googlemail.com>
Thu, 10 Apr 2008 19:59:20 +0000 (19:59 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Thu, 10 Apr 2008 19:59:20 +0000 (19:59 -0000)
Makefile
Makefile.custom

index af602d75ceca45e4055968cd44f14e77f41a8e51..f110fed2426f8a40e4e61d630b0aace9240fe01c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -361,7 +361,8 @@ endif
 # of make so .config is not included in this case either (for *config).
 
 no-dot-config-targets := clean mrproper distclean \
-                        cscope TAGS tags help %docs check%
+                        cscope TAGS tags help %docs
+#bbox# check% is removed from above
 
 config-targets := 0
 mixed-targets  := 0
index a4db1417208c8975bb95e327016070071048c8c9..e4a616f65ab95719a9d46c1d86b8bbe29b982c9b 100644 (file)
@@ -46,9 +46,13 @@ ifneq ($(strip $(DO_INSTALL_LIBS)),n)
        done
 endif
 
+# Not very elegant: copies testsuite to objdir...
+.PHONY: check
+.PHONY: test
 check test: busybox busybox.links
-       bindir=$(objtree) srcdir=$(srctree)/testsuite SED="$(SED)" \
-       $(SHELL) $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:0=),-v)
+       test -d $(objtree)/testsuite || cp -a $(srctree)/testsuite $(objtree)
+       bindir=$(objtree) srcdir=$(srctree)/testsuite \
+       $(SHELL) -c "cd $(objtree)/testsuite && $(srctree)/testsuite/runtest $(if $(KBUILD_VERBOSE:0=),-v)"
 
 .PHONY: release
 release: distclean