Update regression for new dropdb command.
This commit is contained in:
parent
a27542c3a8
commit
f4db5c3c88
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.32 1999/11/19 18:51:49 wieck Exp $
|
# $Header: /cvsroot/pgsql/src/test/regress/Attic/regress.sh,v 1.33 1999/12/10 00:48:32 momjian Exp $
|
||||||
#
|
#
|
||||||
if [ $# -eq 0 ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
@ -47,8 +47,8 @@ echo " ports@postgresql.org"
|
|||||||
echo "See regress/README for more information."
|
echo "See regress/README for more information."
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "=============== destroying old regression database... ================="
|
echo "=============== dropping old regression database... ================="
|
||||||
destroydb $HOST regression
|
dropdb $HOST regression
|
||||||
|
|
||||||
echo "=============== creating new regression database... ================="
|
echo "=============== creating new regression database... ================="
|
||||||
if [ -n "$MULTIBYTE" ];then
|
if [ -n "$MULTIBYTE" ];then
|
||||||
@ -119,17 +119,17 @@ then
|
|||||||
echo Skipping clearing and deletion of the regression database
|
echo Skipping clearing and deletion of the regression database
|
||||||
else
|
else
|
||||||
echo "=============== clearing regression database... ================="
|
echo "=============== clearing regression database... ================="
|
||||||
$FRONTEND regression < destroy.sql
|
$FRONTEND regression < drop.sql
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo the destroy script has an error
|
echo the drop script has an error
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
echo "=============== destroying regression database... ================="
|
echo "=============== dropping regression database... ================="
|
||||||
destroydb regression
|
dropdb regression
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo destroydb failed
|
echo dropdb failed
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user