diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-05-14 17:55:22 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-05-14 17:55:22 +0000 |
| commit | 0ff7a2c2ad04404aeb1f45e1ae5d67dc91b575ee (patch) | |
| tree | a7ce4d78d12e02b1852bc75c502ff878d9d50aed /src/pl/plpython/test.sh | |
| parent | 1ea069b1f61aee5e901886aee8b51051e00aad54 (diff) | |
| download | postgresql-0ff7a2c2ad04404aeb1f45e1ae5d67dc91b575ee.tar.gz | |
Convert the existing regression test scripts for the various optional
PLs to use the standard pg_regress infrastructure. No changes in the
tests themselves. Andrew Dunstan
Diffstat (limited to 'src/pl/plpython/test.sh')
| -rwxr-xr-x | src/pl/plpython/test.sh | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/pl/plpython/test.sh b/src/pl/plpython/test.sh deleted file mode 100755 index 9ed3c07662..0000000000 --- a/src/pl/plpython/test.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh - -DBNAME=pltest - -echo -n "*** Destroy $DBNAME." -dropdb $DBNAME > test.log 2>&1 -# drop failure is ok... -echo " Done. ***" - -sleep 1 - -echo -n "*** Create $DBNAME." -if createdb $DBNAME >> test.log 2>&1 ; then - echo " Done. ***" -else - echo " Failed! See test.log. ***" - exit 1 -fi - -echo -n "*** Create plpython." -if createlang plpythonu $DBNAME >> test.log 2>&1 ; then - echo " Done. ***" -else - echo " Failed! See test.log. ***" - exit 1 -fi - -echo -n "*** Create tables" -psql -q $DBNAME < plpython_schema.sql >> test.log 2>&1 -echo -n ", data" -psql -q $DBNAME < plpython_populate.sql >> test.log 2>&1 -echo -n ", and functions and triggers." -psql -q $DBNAME < plpython_function.sql >> test.log 2>&1 -echo " Done. ***" - -echo -n "*** Running feature tests." -psql -q -e $DBNAME < plpython_test.sql > feature.output 2>&1 -echo " Done. ***" - -echo -n "*** Running error handling tests." -psql -q -e $DBNAME < plpython_error.sql > error.output 2>&1 -echo " Done. ***" - -echo -n "*** Checking the results of the feature tests." -if diff -c feature.expected feature.output > feature.diff 2>&1 ; then - echo -n " passed!" -else - echo -n " failed! Please examine feature.diff." -fi -echo " Done. ***" - -echo -n "*** Checking the results of the error handling tests." -if diff -c error.expected error.output > error.diff 2>&1 ; then - echo -n " passed!" -else - echo -n " failed! Please examine error.diff." -fi -echo " Done. ***" |
