aboutsummaryrefslogtreecommitdiff
path: root/src/pl/plperl/test/runtest.no-multiplicity
diff options
context:
space:
mode:
Diffstat (limited to 'src/pl/plperl/test/runtest.no-multiplicity')
-rw-r--r--src/pl/plperl/test/runtest.no-multiplicity31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/pl/plperl/test/runtest.no-multiplicity b/src/pl/plperl/test/runtest.no-multiplicity
new file mode 100644
index 00000000000..f6a1b805818
--- /dev/null
+++ b/src/pl/plperl/test/runtest.no-multiplicity
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+DBNAME=plperl_test
+export DBNAME
+
+echo "**** Destroy old database $DBNAME ****"
+dropdb $DBNAME
+
+sleep 1
+
+echo "**** Create test database $DBNAME ****"
+createdb $DBNAME
+
+echo "**** Create procedural language plperl ****"
+createlang plperl $DBNAME
+
+echo "**** Create procedural language plperlu ****"
+createlang plperlu $DBNAME
+
+
+echo "**** Running test queries ****"
+psql -q -n -e $DBNAME <test_queries.sql > test.out 2>&1
+
+if diff test.expected test.out >/dev/null 2>&1 ; then
+ echo " Tests passed O.K."
+ rm test.out
+else
+ echo " Tests failed - look at diffs between"
+ echo " test.expected and test.out"
+fi
+