diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-16 15:47:21 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-09-16 15:47:21 +0000 |
commit | 49b4e44b7d540fa846d353b10237848a67789cbf (patch) | |
tree | ea2b52e3c258d6b6d9356977c683c7f72a4a5fd5 /libgo/testsuite | |
parent | 82ceb8f6a88a0193971f53e0571e017f2764f7d7 (diff) | |
download | gcc-49b4e44b7d540fa846d353b10237848a67789cbf.tar.gz |
Update Go library to r60.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178910 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/testsuite')
-rw-r--r-- | libgo/testsuite/Makefile.in | 1 | ||||
-rwxr-xr-x | libgo/testsuite/gotest | 22 |
2 files changed, 22 insertions, 1 deletions
diff --git a/libgo/testsuite/Makefile.in b/libgo/testsuite/Makefile.in index b990f490a5d..0acbbb3da4f 100644 --- a/libgo/testsuite/Makefile.in +++ b/libgo/testsuite/Makefile.in @@ -86,7 +86,6 @@ GOARCH = @GOARCH@ GOC = @GOC@ GOCFLAGS = @GOCFLAGS@ GOOS = @GOOS@ -GO_DEBUG_PROC_REGS_OS_ARCH_FILE = @GO_DEBUG_PROC_REGS_OS_ARCH_FILE@ GO_SYSCALLS_SYSCALL_OS_ARCH_FILE = @GO_SYSCALLS_SYSCALL_OS_ARCH_FILE@ GREP = @GREP@ INSTALL = @INSTALL@ diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest index 938f47551ca..83640782835 100755 --- a/libgo/testsuite/gotest +++ b/libgo/testsuite/gotest @@ -34,6 +34,7 @@ prefix= dejagnu=no timeout=60 testname="" +trace=false while $loop; do case "x$1" in x--srcdir) @@ -103,6 +104,10 @@ while $loop; do testname=`echo $1 | sed -e 's/^--testname=//'` shift ;; + x--trace) + trace=true + shift + ;; x-*) loop=false ;; @@ -288,10 +293,17 @@ if test -n "$prefix"; then prefixarg="-fgo-prefix=$prefix" fi +if test "$trace" = "true"; then + echo $GC -g $prefixarg -c -I . -fno-toplevel-reorder -o _gotest_.o $gofiles $pkgbasefiles +fi $GC -g $prefixarg -c -I . -fno-toplevel-reorder -o _gotest_.o $gofiles $pkgbasefiles + if $havex; then mkdir -p `dirname $package` cp _gotest_.o `dirname $package`/lib`basename $package`.a + if test "$trace" = "true"; then + echo $GC -g -c -I . -fno-toplevel-reorder -o $xofile $xgofiles + fi $GC -g -c -I . -fno-toplevel-reorder -o $xofile $xgofiles fi @@ -375,9 +387,19 @@ func main() { case "x$dejagnu" in xno) + if test "$trace" = "true"; then + echo ${GC} -g -c _testmain.go + fi ${GC} -g -c _testmain.go + + if test "$trace" = "true"; then + echo ${GL} *.o ${GOLIBS} + fi ${GL} *.o ${GOLIBS} + if test "$trace" = "true"; then + echo ./a.out -test.short -test.timeout=$timeout "$@" + fi ./a.out -test.short -test.timeout=$timeout "$@" & pid=$! (sleep `expr $timeout + 10` |