Skip to content
Browse files

Undo Jan's typo that broke regress.sh's detection of system

type name.
  • Loading branch information...
1 parent 1b93294 commit 275a1d054e72b35bfd98c9731e51b2961ab8dbf5 @tglsfdc tglsfdc committed
Showing with 10 additions and 8 deletions.
  1. +10 −8 src/test/regress/regress.sh
View
18 src/test/regress/regress.sh
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.29 1999/06/10 17:49:30 wieck Exp $
+# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.30 1999/06/14 17:49:06 tgl Exp $
#
if [ $# -eq 0 ]
then
@@ -7,15 +7,16 @@ then
exit 1
fi
-if [ $1 = "win" ]
+portname=$1
+shift
+extratests="$*"
+
+if [ x$portname = "xwin" ]
then
HOST="-h localhost"
else
HOST=""
fi
-portname=$1
-export portname
-shift
if echo '\c' | grep -s c >/dev/null 2>&1
then
@@ -36,7 +37,7 @@ PGDATESTYLE="Postgres,US"; export PGDATESTYLE
#FRONTEND=monitor
FRONTEND="psql $HOST -n -e -q"
-SYSTEM=`../../config.guess | awk -F\- '{ split($3,a,/[0-9]/); printf"%s-%s", $portname, a[1] }'`
+SYSTEM=`../../config.guess | awk -F\- '{ split($3,a,/[0-9]/); printf"%s-%s", $1, a[1] }'`
echo "=============== Notes... ================="
echo "postmaster must already be running for the regression tests to succeed."
@@ -75,7 +76,7 @@ fi
echo "=============== running regression queries... ================="
echo "" > regression.diffs
-for i in `cat sql/tests` $mbtests $*
+for i in `cat sql/tests` $mbtests $extratests
do
$ECHO_N "${i} .. " $ECHO_C
$FRONTEND regression < sql/${i}.sql > results/${i}.out 2>&1
@@ -97,7 +98,8 @@ do
echo ok
fi
done
-exit
+
+exit 0
echo "=============== running error queries ... ================="
$FRONTEND regression < errors.sql

0 comments on commit 275a1d0

Please sign in to comment.
Something went wrong with that request. Please try again.