提交 275a1d05 编写于 作者: T Tom Lane

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

type name.
上级 1b93294f
#!/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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册