diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-10-09 01:46:04 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-10-09 01:46:04 +0000 |
| commit | a9ae4ae8c127e0470a61509da71b5d3dcb562c1e (patch) | |
| tree | 3440f9638318edbe1fadbfee5767ea3102d0d045 | |
| parent | 4e66f619b0cacd5179abad0513bcf6b122fbad02 (diff) | |
Fix back-branch pg_regress scripts to try the "canonical" expected file if we
tried a variant file from resultmap and it didn't match. This is already done
in HEAD's C-code version, and is needed because OpenBSD has recently migrated
to a more standard handling of float underflow --- see buildfarm results
from emu.
| -rw-r--r-- | src/test/regress/pg_regress.sh | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/test/regress/pg_regress.sh b/src/test/regress/pg_regress.sh index a315e68734c..9657ed30364 100644 --- a/src/test/regress/pg_regress.sh +++ b/src/test/regress/pg_regress.sh @@ -1,5 +1,5 @@ #! /bin/sh -# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.28.2.1 2002/11/13 16:40:29 tgl Exp $ +# $Header: /cvsroot/pgsql/src/test/regress/Attic/pg_regress.sh,v 1.28.2.2 2006/10/09 01:46:04 tgl Exp $ me=`basename $0` : ${TMPDIR=/tmp} @@ -586,7 +586,8 @@ EOF # to a system-specific expected file. # There shouldn't be multiple matches, but take the last if there are. - EXPECTED="$inputdir/expected/${name}" + STDEXPECTED="$inputdir/expected/${name}" + EXPECTED="$STDEXPECTED" for LINE in $SUBSTLIST do if [ `expr "$LINE" : "$name="` -ne 0 ] @@ -596,13 +597,14 @@ EOF fi done - # If there are multiple equally valid result file, loop to get the right one. - # If none match, diff against the closet one. + # If there are multiple equally valid result files, + # loop to get the right one. + # If none match, diff against the closest one. bestfile= bestdiff= result=2 - for thisfile in $EXPECTED.out ${EXPECTED}_[0-9].out; do + for thisfile in $EXPECTED.out ${EXPECTED}_[0-9].out $STDEXPECTED.out; do [ ! -r "$thisfile" ] && continue diff $DIFFFLAGS $thisfile $outputdir/results/${name}.out >/dev/null 2>&1 result=$? |
