Commit 943178fe authored by Tom Lane's avatar Tom Lane

Minor improvements in the really-pretty-ad-hoc test scripts for the

PL languages.
parent a8e0dff1
...@@ -9,10 +9,10 @@ dropdb $DBNAME ...@@ -9,10 +9,10 @@ dropdb $DBNAME
sleep 1 sleep 1
echo "**** Create test database $DBNAME ****" echo "**** Create test database $DBNAME ****"
createdb $DBNAME createdb $DBNAME || exit 1
echo "**** Create procedural language plperl ****" echo "**** Create procedural language plperl ****"
createlang plperl $DBNAME createlang plperl $DBNAME || exit 1
echo "**** Running test queries ****" echo "**** Running test queries ****"
psql -q -n -e $DBNAME <test_queries.sql > test.out 2>&1 psql -q -n -e $DBNAME <test_queries.sql > test.out 2>&1
......
...@@ -7,6 +7,8 @@ dropdb $DBNAME > test.log 2>&1 ...@@ -7,6 +7,8 @@ dropdb $DBNAME > test.log 2>&1
# drop failure is ok... # drop failure is ok...
echo " Done. ***" echo " Done. ***"
sleep 1
echo -n "*** Create $DBNAME." echo -n "*** Create $DBNAME."
if createdb $DBNAME >> test.log 2>&1 ; then if createdb $DBNAME >> test.log 2>&1 ; then
echo " Done. ***" echo " Done. ***"
......
...@@ -9,10 +9,10 @@ dropdb $DBNAME ...@@ -9,10 +9,10 @@ dropdb $DBNAME
sleep 1 sleep 1
echo "**** Create test database $DBNAME ****" echo "**** Create test database $DBNAME ****"
createdb $DBNAME createdb $DBNAME || exit 1
echo "**** Create procedural language pltcl ****" echo "**** Create procedural language pltcl ****"
createlang pltcl $DBNAME createlang pltcl $DBNAME || exit 1
echo "**** Create tables, functions and triggers ****" echo "**** Create tables, functions and triggers ****"
psql -q -n $DBNAME <test_setup.sql psql -q -n $DBNAME <test_setup.sql
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment