aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2004-06-08 05:32:51 +0000
committerAlexandre Oliva <aoliva@redhat.com>2004-06-08 05:32:51 +0000
commite75d110c68709c0a20c0b32a7c6022f108bed94d (patch)
treed6dc7293596b1b0314ce295196aed6f87f20ef4f /gdb/Makefile.in
parentd560a54bf578015d03a78407e08d4d7773c4941f (diff)
downloadgdb-e75d110c68709c0a20c0b32a7c6022f108bed94d.zip
gdb-e75d110c68709c0a20c0b32a7c6022f108bed94d.tar.gz
gdb-e75d110c68709c0a20c0b32a7c6022f108bed94d.tar.bz2
* Makefile.in (check//%): New.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 8cb27b5..e707c55 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -956,6 +956,34 @@ check: force
$(MAKE) $(TARGET_FLAGS_TO_PASS) check; \
else true; fi
+# The idea is to parallelize testing of multilibs, for example:
+# make -j3 check//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
+# will run 3 concurrent sessions of check, eventually testing all 10
+# combinations. GNU make is required for the % pattern to work, as is
+# a shell that expands alternations within braces. If GNU make is not
+# used, this rule will harmlessly fail to match.
+check//%: force
+ @if [ -f testsuite/config.status ]; then \
+ rootme=`pwd`; export rootme; \
+ rootsrc=`cd $(srcdir); pwd`; export rootsrc; \
+ target=`echo "$@" | sed 's,//.*,,'`; \
+ variant=`echo "$@" | sed 's,^[^/]*//,,'`; \
+ vardots=`echo "$$variant" | sed 's,/,.,g'`; \
+ testdir=testsuite.$$vardots; \
+ if [ ! -f $$testdir/Makefile ]; then \
+ (cd testsuite && find . -name config.status) | \
+ sed s,/config.status$$,, | sort | while read subdir; do \
+ $(SHELL) $(srcdir)/../mkinstalldirs $$testdir/$$subdir && \
+ (cd $$testdir/$$subdir && \
+ $(SHELL) $$rootme/testsuite/$$subdir/config.status \
+ --recheck && \
+ $(SHELL) ./config.status); done; \
+ else :; fi && cd $$testdir && \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) \
+ RUNTESTFLAGS="--target_board=$$variant $(RUNTESTFLAGS)" \
+ "$$target"; \
+ else true; fi
+
info dvi install-info clean-info html install-html: force
@$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do