mirror of
https://github.com/postgres/postgres.git
synced 2025-05-25 00:04:05 -04:00
Undo Jan's typo that broke regress.sh's detection of system
type name.
This commit is contained in:
parent
1b93294ff5
commit
275a1d054e
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/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 ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
@ -7,15 +7,16 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $1 = "win" ]
|
portname=$1
|
||||||
|
shift
|
||||||
|
extratests="$*"
|
||||||
|
|
||||||
|
if [ x$portname = "xwin" ]
|
||||||
then
|
then
|
||||||
HOST="-h localhost"
|
HOST="-h localhost"
|
||||||
else
|
else
|
||||||
HOST=""
|
HOST=""
|
||||||
fi
|
fi
|
||||||
portname=$1
|
|
||||||
export portname
|
|
||||||
shift
|
|
||||||
|
|
||||||
if echo '\c' | grep -s c >/dev/null 2>&1
|
if echo '\c' | grep -s c >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
@ -36,7 +37,7 @@ PGDATESTYLE="Postgres,US"; export PGDATESTYLE
|
|||||||
#FRONTEND=monitor
|
#FRONTEND=monitor
|
||||||
FRONTEND="psql $HOST -n -e -q"
|
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 "=============== Notes... ================="
|
||||||
echo "postmaster must already be running for the regression tests to succeed."
|
echo "postmaster must already be running for the regression tests to succeed."
|
||||||
@ -75,7 +76,7 @@ fi
|
|||||||
|
|
||||||
echo "=============== running regression queries... ================="
|
echo "=============== running regression queries... ================="
|
||||||
echo "" > regression.diffs
|
echo "" > regression.diffs
|
||||||
for i in `cat sql/tests` $mbtests $*
|
for i in `cat sql/tests` $mbtests $extratests
|
||||||
do
|
do
|
||||||
$ECHO_N "${i} .. " $ECHO_C
|
$ECHO_N "${i} .. " $ECHO_C
|
||||||
$FRONTEND regression < sql/${i}.sql > results/${i}.out 2>&1
|
$FRONTEND regression < sql/${i}.sql > results/${i}.out 2>&1
|
||||||
@ -97,7 +98,8 @@ do
|
|||||||
echo ok
|
echo ok
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
exit
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
echo "=============== running error queries ... ================="
|
echo "=============== running error queries ... ================="
|
||||||
$FRONTEND regression < errors.sql
|
$FRONTEND regression < errors.sql
|
||||||
|
Loading…
x
Reference in New Issue
Block a user