summaryrefslogtreecommitdiff
path: root/debian/patches/libgo-testsuite.diff
diff options
context:
space:
mode:
authordoko <doko@6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>2012-12-08 14:54:39 +0000
committerdoko <doko@6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>2012-12-08 14:54:39 +0000
commite907b46a56d6ae9834ef96796e38cecb5fd0ac1c (patch)
tree482d29a84c47a3417c109e59371e1275a4ecc344 /debian/patches/libgo-testsuite.diff
parent1362755d1e2a423dd2fec4d1b6aec6bd467b4591 (diff)
downloadgcc-48-e907b46a56d6ae9834ef96796e38cecb5fd0ac1c.tar.gz
* Only run the libgo testsuite for flags configured in RUNTESTFLAGS.
git-svn-id: svn://svn.debian.org/svn/gcccvs/branches/sid/gcc-4.8@6385 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca
Diffstat (limited to 'debian/patches/libgo-testsuite.diff')
-rw-r--r--debian/patches/libgo-testsuite.diff48
1 files changed, 48 insertions, 0 deletions
diff --git a/debian/patches/libgo-testsuite.diff b/debian/patches/libgo-testsuite.diff
new file mode 100644
index 0000000..cd48721
--- /dev/null
+++ b/debian/patches/libgo-testsuite.diff
@@ -0,0 +1,48 @@
+# DP: Only run the libgo testsuite for flags configured in RUNTESTFLAGS
+
+--- a/src/libgo/Makefile.am
++++ b/src/libgo/Makefile.am
+@@ -1809,6 +1809,12 @@
+ export LD_LIBRARY_PATH; \
+ $(MKDIR_P) $(@D); \
+ rm -f $@-testsum $@-testlog; \
++ run_check=yes; \
++ MULTILIBDIR="$(MULTILIBDIR)"; \
++ case "$$MULTILIBDIR" in /64|/x32) \
++ echo "$$RUNTESTFLAGS" | grep -q "$${MULTILIBDIR#/*}" || run_check=; \
++ esac; \
++ if test "$$run_check" = "yes"; then \
+ if test "$(use_dejagnu)" = "yes"; then \
+ $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --testname="$(@D)" --goarch="$(GOARCH)" $(GOTESTFLAGS); \
+ else \
+@@ -1822,6 +1828,7 @@
+ echo "FAIL: $(@D)" > $@-testsum; \
+ exit 1; \
+ fi; \
++ fi; \
+ fi
+
+ # Build all packages before checking any.
+--- a/src/libgo/Makefile.in
++++ b/src/libgo/Makefile.in
+@@ -1964,6 +1964,12 @@
+ export LD_LIBRARY_PATH; \
+ $(MKDIR_P) $(@D); \
+ rm -f $@-testsum $@-testlog; \
++ run_check=yes; \
++ MULTILIBDIR="$(MULTILIBDIR)"; \
++ case "$$MULTILIBDIR" in /64|/x32) \
++ echo "$$RUNTESTFLAGS" | grep -q "$${MULTILIBDIR#/*}" || run_check=; \
++ esac; \
++ if test "$$run_check" = "yes"; then \
+ if test "$(use_dejagnu)" = "yes"; then \
+ $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --testname="$(@D)" --goarch="$(GOARCH)" $(GOTESTFLAGS); \
+ else \
+@@ -1977,6 +1983,7 @@
+ echo "FAIL: $(@D)" > $@-testsum; \
+ exit 1; \
+ fi; \
++ fi; \
+ fi
+
+