summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/pg_regress.sh
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2007-01-12 10:00:14 +0000
committerMichael Meskes <meskes@postgresql.org>2007-01-12 10:00:14 +0000
commitb8f611cf4b119d49dc28b58d610c9d0a5fa5cde7 (patch)
treeef6665a154105fa3fe19ef5a773e1787e9898c5f /src/interfaces/ecpg/test/pg_regress.sh
parent97903c3d94b6d6ce089c90c34c1000653007b020 (diff)
downloadpostgresql-b8f611cf4b119d49dc28b58d610c9d0a5fa5cde7.tar.gz
Simplified regression handling
Added patch by Joachim to work around OpenBSD bug in regression suite.
Diffstat (limited to 'src/interfaces/ecpg/test/pg_regress.sh')
-rw-r--r--src/interfaces/ecpg/test/pg_regress.sh25
1 files changed, 6 insertions, 19 deletions
diff --git a/src/interfaces/ecpg/test/pg_regress.sh b/src/interfaces/ecpg/test/pg_regress.sh
index 108f414088..1396257bba 100644
--- a/src/interfaces/ecpg/test/pg_regress.sh
+++ b/src/interfaces/ecpg/test/pg_regress.sh
@@ -1,5 +1,5 @@
#! /bin/sh
-# $PostgreSQL: pgsql/src/interfaces/ecpg/test/pg_regress.sh,v 1.16 2007/01/11 15:47:33 meskes Exp $
+# $PostgreSQL: pgsql/src/interfaces/ecpg/test/pg_regress.sh,v 1.17 2007/01/12 10:00:13 meskes Exp $
me=`basename $0`
@@ -740,6 +740,11 @@ for i in \
*-*-mingw32*)
PLATFORM_TAG="-MinGW32"
;;
+ *-*-openbsd3.8)
+ # OpenBSD 3.8 is buggy:
+ # http://archives.postgresql.org/pgsql-hackers/2006-09/msg00593.php
+ PLATFORM_TAG="-OpenBSD3.8.broken"
+ ;;
esac
outfile_stderr="$outputdir/$outprg.stderr"
@@ -749,24 +754,6 @@ for i in \
# echo "$runprg > $outfile_stdout 2> $outfile_stderr"
$runprg > "$outfile_stdout" 2> "$outfile_stderr"
- # If we don't run on the default port we'll get different output
- # so tweak output files and replace the port number (we put a warning
- # but the price to pay is that we have to tweak the files every time
- # now not only if the port differs from the standard port).
- #if [ "$i" = "connect/test1.pgc" ]; then
- # can we use sed -i on all platforms?
- # for f in "$outfile_stderr" "$outfile_stdout" "$outfile_source"; do
- # mv $f $f.tmp
- # echo >> $f
- # echo "THE PORT NUMBER MIGHT HAVE BEEN CHANGED BY THE REGRESSION SCRIPT" >> $f
- # echo >> $f
- # MinGW could return such a line:
- # "could not connect to server: Connection refused (0x0000274D/10061)"
- #cat $f.tmp | sed -e s,$PGPORT,55432,g | sed -e "s,could not connect to server: Connection refused (0x.*/.*),could not connect to server: Connection refused,g" >> $f
- # rm $f.tmp
- # done
- #fi
-
mv "$outfile_source" "$outfile_source.tmp"
cat "$outfile_source.tmp" | sed -e 's,^\(#line [0-9]*\) ".*/\([^/]*\)",\1 "\2",' > "$outfile_source"
rm "$outfile_source.tmp"