This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[RFA:] contrib/regression/btest-gcc.sh (TESTLOGS): Make libstdc++.sum optional
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 7 Apr 2005 16:45:44 +0200
- Subject: [RFA:] contrib/regression/btest-gcc.sh (TESTLOGS): Make libstdc++.sum optional
This was useful when testing m68hc11-elf, which would otherwise
turn up as "build". (Not that the test-results for that port
were very meaningful, but this patch seems likely to help
testing a port in progress.)
The patch contains some redundancy, prone to attract typos
($H_TARGET/libstdc++-v3/testsuite/libstdc++.sum twice) but I
thought best to follow the existing style. Tested a couple of
times on other cross systems too.
* btest-gcc.sh (TESTLOGS): Make libstdc++.sum optional.
Index: btest-gcc.sh
===================================================================
RCS file: /cvs/gcc/gcc/contrib/regression/btest-gcc.sh,v
retrieving revision 1.10
diff -c -p -u -p -r1.10 btest-gcc.sh
cvs diff: conflicting specifications of output style
--- btest-gcc.sh 27 Oct 2004 18:19:41 -0000 1.10
+++ btest-gcc.sh 7 Apr 2005 14:41:00 -0000
@@ -1,7 +1,7 @@
#!/bin/sh
# Test GCC.
-# Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2000, 2001, 2002, 2005 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -98,8 +98,7 @@ H_REAL_TARGET=`$SOURCE/config.sub $H_TAR
# look at.
TESTLOGS="gcc/testsuite/gcc.sum
gcc/testsuite/g++.sum
-gcc/testsuite/objc.sum
-$H_TARGET/libstdc++-v3/testsuite/libstdc++.sum"
+gcc/testsuite/objc.sum"
# Build.
echo build > $RESULT
@@ -122,6 +121,9 @@ make -k check-gcc
# Test libstd++-v3
make check-target-libstdc++-v3
+if [ -f $BUILD/$H_TARGET/libstdc++-v3/testsuite/libstdc++.sum ] ; then
+ TESTLOGS="$TESTLOGS $H_TARGET/libstdc++-v3/testsuite/libstdc++.sum"
+fi
# Test libffi
make check-target-libffi
brgds, H-P