diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-03-21 22:01:53 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-03-21 22:01:53 +0000 |
commit | 8046b665398a63ef95f34d58ffec6a1ba3be1e6f (patch) | |
tree | a4e3a69449b9ce4b63e9d4c7516fe30c4917f871 /libgo | |
parent | 2ef6ce06d335810dd893c2c6935bbfc84e88dda7 (diff) | |
download | gcc-8046b665398a63ef95f34d58ffec6a1ba3be1e6f.zip gcc-8046b665398a63ef95f34d58ffec6a1ba3be1e6f.tar.gz gcc-8046b665398a63ef95f34d58ffec6a1ba3be1e6f.tar.bz2 |
libgo: Add GOTESTFLAGS variable used when testing.
From Rainer Orth.
From-SVN: r171272
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/Makefile.am | 6 | ||||
-rw-r--r-- | libgo/Makefile.in | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/libgo/Makefile.am b/libgo/Makefile.am index 0715a99..2db29fd 100644 --- a/libgo/Makefile.am +++ b/libgo/Makefile.am @@ -1480,6 +1480,8 @@ else use_dejagnu = no endif +GOTESTFLAGS = + # Check a package. CHECK = \ @GC="$(GOC) -L `${PWD_COMMAND}` -L `${PWD_COMMAND}`/.libs -Wl,-R,`${PWD_COMMAND}`/.libs"; \ @@ -1492,9 +1494,9 @@ CHECK = \ prefix=`if test "$(@D)" = "regexp"; then echo regexp-test; else dirname $(@D); fi`; \ test "$${prefix}" != "." || prefix="$(@D)"; \ if test "$(use_dejagnu)" = "yes"; then \ - $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)"; \ + $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" $(GOTESTFLAGS); \ else \ - if $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" >>$@-log 2>&1; then \ + if $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" $(GOTESTFLAGS) >>$@-log 2>&1; then \ echo "PASS: $(@D)"; \ else \ echo "FAIL: $(@D)"; \ diff --git a/libgo/Makefile.in b/libgo/Makefile.in index c9f0187..7bb302d 100644 --- a/libgo/Makefile.in +++ b/libgo/Makefile.in @@ -1814,6 +1814,7 @@ BUILDPACKAGE = \ @LIBGO_IS_RTEMS_FALSE@use_dejagnu = no @LIBGO_IS_RTEMS_TRUE@use_dejagnu = yes +GOTESTFLAGS = # Check a package. CHECK = \ @@ -1827,9 +1828,9 @@ CHECK = \ prefix=`if test "$(@D)" = "regexp"; then echo regexp-test; else dirname $(@D); fi`; \ test "$${prefix}" != "." || prefix="$(@D)"; \ if test "$(use_dejagnu)" = "yes"; then \ - $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)"; \ + $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" $(GOTESTFLAGS); \ else \ - if $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" >>$@-log 2>&1; then \ + if $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" $(GOTESTFLAGS) >>$@-log 2>&1; then \ echo "PASS: $(@D)"; \ else \ echo "FAIL: $(@D)"; \ |