URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/gnu-old/gcc-4.2.2/contrib/regression
- from Rev 154 to Rev 816
- ↔ Reverse comparison
Rev 154 → Rev 816
/site.exp
0,0 → 1,18
global target_list |
|
case "$target_triplet" in { |
{ "powerpc*-*eabi*" } { |
# if { [info exists tool] && $tool == "gcc" } { |
# set target_list { "powerpc-sim{,-fpic}" } |
# } else { |
set target_list { "powerpc-sim" } |
# } |
} |
{ "mips*-*-elf" } { |
set target_list { "mips-sim" } |
} |
|
default { |
set target_list { "unix" } |
} |
} |
/objs-gcc.sh
0,0 → 1,127
#!/bin/sh |
|
# Build tools for testing GCC. |
# Copyright (C) 1999, 2000, 2001, 2002 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 |
# the Free Software Foundation; either version 2 of the License, or |
# (at your option) any later version. |
|
# This program is distributed in the hope that it will be useful, |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
# GNU General Public License for more details. |
|
# You should have received a copy of the GNU General Public License |
# along with this program; if not, write to the Free Software |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
|
# INPUT: |
# btest <target> <source> <prefix> <state> <build> |
# TARGET is the target triplet. It should be the same one as used in |
# constructing PREFIX. Or it can be the keyword 'native', indicating |
# a target of whatever platform the script is running on. |
TARGET=$1 |
# SOURCE is the directory containing the toplevel configure. |
SOURCE=$2 |
|
# PREFIX is the directory for the --prefix option to configure. |
PREFIX=$3 |
|
# STATE is where the tester maintains its internal state, |
# described below. |
STATE=$4 |
|
# BUILD is a temporary directory that this script will |
# delete and recreate, containing the build tree. |
BUILD=$5 |
|
# you also probably need to set these variables: |
# DEJAGNU: should point to a site.exp suitable for testing |
# the compiler and debugger. |
|
# OUTPUT: in $RESULT, one of the following keywords: |
# error the script failed due to |
# a misconfiguration or resource limitation |
# build the build failed |
# regress-<n> the build succeeded, but there were <n> |
# testsuite regressions, listed in $REGRESS |
# pass build succeeded and there were no regressions |
RESULT=$STATE/RESULT |
# in BUILD_LOG, the output of the build |
BUILD_LOG=$STATE/build_log |
# in FAILED, a list of failing testcases |
FAILED=$STATE/failed |
# in PASSES, the list of testcases we expect to pass |
PASSES=$STATE/passes |
# in REGRESS, a list of testcases we expected to pass but that failed |
REGRESS=$STATE/regress |
|
# Make sure various files exist. |
[ -d $STATE ] || mkdir $STATE |
[ -f $PASSES ] || touch $PASSES |
|
# These lines should stay in this order, because |
# that way if something is badly wrong and $RESULT can't |
# be modified then cron will mail the error message. |
# The reverse order could lead to the testsuite claiming that |
# everything always passes, without running any tests. |
echo error > $RESULT || exit 1 |
exec > $BUILD_LOG 2>&1 || exit 1 |
|
set -x |
|
# TESTLOGS is the list of dejagnu .sum files that the tester should |
# look at. |
TESTLOGS="test/gcc/gcc.sum |
test/g++/g++.sum" |
|
# Nuke $BUILD and recreate it. |
rm -rf $BUILD $REGRESS $FAILED |
mkdir $BUILD $BUILD/build $BUILD/objs || exit 1 |
cd $BUILD || exit 1 |
|
# This script used to use config.guess, but that is not how releng |
# determines hostnames. |
H_BUILD=`$SOURCE/config.guess || exit 1` |
H_HOST=$H_BUILD |
if [ $TARGET = native ] ; then |
H_TARGET=$H_HOST |
else |
H_TARGET=$TARGET |
fi |
H_REAL_TARGET=`$SOURCE/config.sub $H_TARGET || exit 1` |
H_REAL_BUILD=`$SOURCE/config.sub $H_BUILD || exit 1` |
H_REAL_HOST=`$SOURCE/config.sub $H_HOST || exit 1` |
|
# Build. |
echo build > $RESULT |
|
cd $BUILD/build || exit 1 |
TMP_PREFIX=$BUILD/install |
$SOURCE/configure --prefix=$PREFIX --target=$H_TARGET || exit 1 |
if [ $H_REAL_TARGET = $H_REAL_HOST -a $H_REAL_TARGET = i686-pc-linux-gnu ] |
then |
make all-gdb all-dejagnu all-ld || exit 1 |
make install-gdb install-dejagnu install-ld || exit 1 |
elif [ $H_REAL_TARGET = $H_REAL_HOST ] ; then |
make bootstrap || exit 1 |
make install || exit 1 |
else |
make || exit 1 |
make install || exit 1 |
fi |
|
if [ -x $PREFIX/bin/$TARGET-gdb ] ; then |
mkdir -p $PREFIX/share/gdb-testsuite || exit 1 |
cd $SOURCE/gdb/testsuite || exit 1 |
find . -print | cpio -pdmu $PREFIX/share/gdb-testsuite || exit 1 |
# selftest.exp requires keeping old sources around, which is impractical |
rm $PREFIX/share/gdb-testsuite/gdb.base/selftest.exp |
# these tests seem to be broken and randomly failing |
rm -r $PREFIX/share/gdb-testsuite/gdb.mi |
fi |
|
echo pass > $RESULT |
exit 0 |
objs-gcc.sh
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: btest-gcc.sh
===================================================================
--- btest-gcc.sh (nonexistent)
+++ btest-gcc.sh (revision 816)
@@ -0,0 +1,227 @@
+#!/bin/sh
+
+# Test GCC.
+# Copyright (C) 1999, 2000, 2001, 2002, 2005, 2006 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
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+# INPUT:
+# btest
btest-gcc.sh
Property changes :
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: GCC_Regression_Tester.wdgt/ja.lproj/InfoPlist.strings
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: GCC_Regression_Tester.wdgt/ja.lproj/InfoPlist.strings
===================================================================
--- GCC_Regression_Tester.wdgt/ja.lproj/InfoPlist.strings (nonexistent)
+++ GCC_Regression_Tester.wdgt/ja.lproj/InfoPlist.strings (revision 816)
GCC_Regression_Tester.wdgt/ja.lproj/InfoPlist.strings
Property changes :
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: GCC_Regression_Tester.wdgt/Info.plist
===================================================================
--- GCC_Regression_Tester.wdgt/Info.plist (nonexistent)
+++ GCC_Regression_Tester.wdgt/Info.plist (revision 816)
@@ -0,0 +1,32 @@
+
+
+
+
+ AllowNetworkAccess
+
+ CFBundleDisplayName
+ GCC_Regression_Tester
+ CFBundleIdentifier
+ org.geoffk.widget.regress
+ CFBundleName
+ GCC Regr. Tester
+ CFBundleShortVersionString
+ 1.0.1
+ CFBundleVersion
+ 1.0.1
+ CloseBoxInsetX
+ 0
+ CloseBoxInsetY
+ 0
+ Height
+ 192
+ LSHasLocalizedDisplayName
+
+ MainHTML
+ widget.html
+ NSHumanReadableCopyright
+ Copyright © 2005 Free Software Foundation, Inc.
+ Width
+ 261
+
+
Index: GCC_Regression_Tester.wdgt/widget.html
===================================================================
--- GCC_Regression_Tester.wdgt/widget.html (nonexistent)
+++ GCC_Regression_Tester.wdgt/widget.html (revision 816)
@@ -0,0 +1,155 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
Loading...
+
+
Index: GCC_Regression_Tester.wdgt/Default.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: GCC_Regression_Tester.wdgt/Default.png
===================================================================
--- GCC_Regression_Tester.wdgt/Default.png (nonexistent)
+++ GCC_Regression_Tester.wdgt/Default.png (revision 816)
GCC_Regression_Tester.wdgt/Default.png
Property changes :
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: GCC_Regression_Tester.wdgt/en.lproj/InfoPlist.strings
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: GCC_Regression_Tester.wdgt/en.lproj/InfoPlist.strings
===================================================================
--- GCC_Regression_Tester.wdgt/en.lproj/InfoPlist.strings (nonexistent)
+++ GCC_Regression_Tester.wdgt/en.lproj/InfoPlist.strings (revision 816)
GCC_Regression_Tester.wdgt/en.lproj/InfoPlist.strings
Property changes :
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: GCC_Regression_Tester.wdgt/Icon.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: GCC_Regression_Tester.wdgt/Icon.png
===================================================================
--- GCC_Regression_Tester.wdgt/Icon.png (nonexistent)
+++ GCC_Regression_Tester.wdgt/Icon.png (revision 816)
GCC_Regression_Tester.wdgt/Icon.png
Property changes :
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: GCC_Regression_Tester.wdgt/de.lproj/InfoPlist.strings
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: GCC_Regression_Tester.wdgt/de.lproj/InfoPlist.strings
===================================================================
--- GCC_Regression_Tester.wdgt/de.lproj/InfoPlist.strings (nonexistent)
+++ GCC_Regression_Tester.wdgt/de.lproj/InfoPlist.strings (revision 816)
GCC_Regression_Tester.wdgt/de.lproj/InfoPlist.strings
Property changes :
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: ChangeLog
===================================================================
--- ChangeLog (nonexistent)
+++ ChangeLog (revision 816)
@@ -0,0 +1,118 @@
+2007-10-07 Release Manager
+
+ * GCC 4.2.2 released.
+
+2007-07-19 Release Manager
+
+ * GCC 4.2.1 released.
+
+2007-05-13 Release Manager
+
+ * GCC 4.2.0 released.
+
+2006-09-05 Geoffrey Keating
+
+ * btest-gcc.sh: .bad_compare has moved to toplevel from gcc/.
+
+2006-01-18 Andrew Pinski
+
+ * btest-gcc.sh: gcc.sum has moved to gcc/testsuite/gcc/gcc.sum.
+ g++.sum has moved to gcc/testsuite/g++/g++.sum.
+ objc.sum has moved to gcc/testsuite/objc/objc.sum.
+
+2005-12-20 Geoffrey Keating
+
+ * btest-gcc.sh: Support -j option.
+
+2005-11-28 Geoffrey Keating
+
+ * GCC Regression Tester.wdgt: Rename to GCC_Regression_Tester.wdgt.
+ * GCC_Regression_Tester.wdgt/Info.plist
+ (CFBundleDisplayName): Update for rename.
+ (CFBundleName): Use shorter name.
+ (CFBundleVersion): Update to 1.0.1.
+ (CFBundleShortVersionString): Update to 1.0.1.
+ (LSHasLocalizedDisplayName): New.
+ (NSHumanReadableCopyright): New.
+ * GCC_Regression_Tester.wdgt/de.lproj/InfoPlist.strings: New.
+ * GCC_Regression_Tester.wdgt/en.lproj/InfoPlist.strings: New.
+ * GCC_Regression_Tester.wdgt/ja.lproj/InfoPlist.strings: New.
+
+ * GCC_Regression_Tester.wdgt/widget.html: Use max-age=30
+ to help out intermediate caches.
+
+2005-11-23 Geoffrey Keating
+
+ * GCC Regression Tester.wdgt/widget.html: New file.
+ * GCC Regression Tester.wdgt/Info.plist: New file.
+ * GCC Regression Tester.wdgt/Icon.png: New file.
+ * GCC Regression Tester.wdgt/Default.png: New file.
+ * README: Describe new files.
+
+2005-06-07 Hans-Peter Nilsson
+
+ * btest-gcc.sh: Add support for option
+ --add-passes-despite-regression.
+
+2005-06-06 Hans-Peter Nilsson
+
+ * btest-gcc.sh : Don't pass --with-newlib when target is
+ "*-linux*".
+
+ * btest-gcc.sh (TESTLOGS): Make libstdc++.sum optional.
+
+2004-11-07 James A. Morrison
+
+ * README: Update website URL.
+
+2004-10-27 Geoffrey Keating
+
+ * btest-gcc.sh (TESTLOGS): The libstdc++-v3 test log is called
+ libstd++.sum not libstdc++-v3.sum.
+
+2004-10-26 Geoffrey Keating
+
+ * btest-gcc.sh (TESTLOGS): Examine regressions in libstdc++,
+ libffi, and libjava.
+
+2004-05-13 Andrew Pinski
+
+ * btest-gcc.sh: Remove g77.sum from TESTLOGS.
+
+2003-09-18 Andreas Tobler
+
+ * btest-gcc.sh: Add make check-target-libffi.
+
+2003-07-31 Andreas Tobler
+
+ * btest-gcc.sh: Add make check-target-libjava.
+
+2002-10-22 Geoffrey Keating
+
+ * btest-gcc.sh: Add gdb.sum to TESTLOGS only when GDB testsuite is run.
+
+2002-10-11 Geoffrey Keating
+
+ * objs-gcc.sh: Don't install GDB testsuite if GDB was not built.
+ * btest-gcc.sh: Don't run GDB testsuite if it doesn't exist.
+
+2002-10-09 Phil Edwards
+
+ * btest-gcc.sh, objs-gcc.sh: Update TARGET comments.
+
+2002-10-09 Geoffrey Keating
+
+ * objs-gcc.sh: On (non-linux) native hosts, use 'make bootstrap'.
+
+2002-03-09 Geoffrey Keating
+
+ * btest-gcc.sh: For crosses, assume newlib and GNU binutils.
+ * site.exp: Correct mips-elf triplet.
+
+2002-01-31 Geoffrey Keating
+
+ * btest-gcc.sh: New file.
+ * objs-gcc.sh: New file.
+ * site.exp: New file.
+ * ChangeLog: New file.
+ * README: New file.
Index: README
===================================================================
--- README (nonexistent)
+++ README (revision 816)
@@ -0,0 +1,24 @@
+This directory contains scripts that are used by the regression
+tester,
+
+The primary script is 'btest-gcc.sh'. This is the script that is run
+to actually test the compiler.
+
+'objs-gcc.sh' takes a combined tree and builds (but does not test) the
+tools required for 'btest-gcc.sh'. It is run periodically to update
+the tools. This script is followed by running 'btest-gcc.sh' using
+the newly-build tools to check that they will not cause regressions.
+
+'site.exp' is what $DEJAGNU points to when the regression tester runs
+these scripts.
+
+'GCC_Regression_Tester.wdgt' is a Dashboard widget that displays the
+current state of the tester using Javascript. You can use it without
+needing Dashboard by pointing your web browser at
+'GCC_Regression_Tester.wdgt/widget.html', if your browser supports
+and permits it.
+
+Note that any changes made here need to be approved by the regression
+tester's maintainer (see MAINTAINERS). The changes will be used on
+the tester's next run, so `experimental' changes are very strongly
+discouraged :-).