aboutsummaryrefslogtreecommitdiff
path: root/libgo/Makefile.am
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2013-02-02 15:40:14 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2013-02-02 15:40:14 +0000
commit10f92c9c3f007bbb1a41d5a9733a6d470db9bf43 (patch)
tree0dc61810c5e7770c6081ce424c1d4adcad0421df /libgo/Makefile.am
parent7ebe663e98c59128f4d94944bf91b55f514fbc4b (diff)
downloadgcc-10f92c9c3f007bbb1a41d5a9733a6d470db9bf43.zip
gcc-10f92c9c3f007bbb1a41d5a9733a6d470db9bf43.tar.gz
gcc-10f92c9c3f007bbb1a41d5a9733a6d470db9bf43.tar.bz2
re PR go/56171 (syscall FAILs on Solaris)
PR go/56171 syscall: Only run creds_test on GNU/Linux. From-SVN: r195686
Diffstat (limited to 'libgo/Makefile.am')
-rw-r--r--libgo/Makefile.am15
1 files changed, 13 insertions, 2 deletions
diff --git a/libgo/Makefile.am b/libgo/Makefile.am
index 8a54d9e..f68443c 100644
--- a/libgo/Makefile.am
+++ b/libgo/Makefile.am
@@ -1696,6 +1696,13 @@ else
syscall_utimesnano_file = go/syscall/libcall_posix_utimesnano.go
endif
+# Test files.
+if LIBGO_IS_LINUX
+syscall_creds_test_file = go/syscall/creds_test.go
+else
+syscall_creds_test_file =
+endif
+
go_base_syscall_files = \
go/syscall/env_unix.go \
go/syscall/syscall_errno.go \
@@ -1734,6 +1741,10 @@ go_syscall_c_files = \
go/syscall/signame.c \
$(syscall_wait_c_file)
+go_syscall_test_files = \
+ $(syscall_creds_test_file) \
+ go/syscall/passfd_test.go
+
libcalls.go: s-libcalls; @true
s-libcalls: Makefile go/syscall/mksyscall.awk $(go_base_syscall_files)
rm -f libcalls.go.tmp
@@ -2005,9 +2016,9 @@ CHECK = \
$(MKDIR_P) $(@D); \
rm -f $@-testsum $@-testlog; \
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); \
+ $(SHELL) $(srcdir)/testsuite/gotest --dejagnu=yes --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --testname="$(@D)" --goarch="$(GOARCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files); \
else \
- if $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --goarch="$(GOARCH)" $(GOTESTFLAGS) >>$@-testlog 2>&1; then \
+ if $(SHELL) $(srcdir)/testsuite/gotest --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --pkgpath="$(@D)" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" --goarch="$(GOARCH)" $(GOTESTFLAGS) $(go_$(subst /,_,$(@D))_test_files) >>$@-testlog 2>&1; then \
echo "PASS: $(@D)" >> $@-testlog; \
echo "PASS: $(@D)"; \
echo "PASS: $(@D)" > $@-testsum; \