summaryrefslogtreecommitdiffstats
path: root/postgresql-tests/lib_pgsql.sh
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-11-24 16:10:11 +0100
committerPavel Raiskup <praiskup@redhat.com>2014-11-24 16:10:11 +0100
commit22a4e88e40c30c309b27c399ac6795da6c5fe7c9 (patch)
treec1fc5465c6cc37fd022dea5c33fdb90df040f8e7 /postgresql-tests/lib_pgsql.sh
parentc34469f5abba17387abcaddb2f3da77bf4a88757 (diff)
downloadpostgresql-setup-tests-22a4e88e40c30c309b27c399ac6795da6c5fe7c9.tar.gz
postgresql-setup-tests-22a4e88e40c30c309b27c399ac6795da6c5fe7c9.tar.xz
postgresql-setup-tests-22a4e88e40c30c309b27c399ac6795da6c5fe7c9.zip
postgresql-tests: test upstream testsuite
* postgresql-tests/lib_pgsql.sh (dtf_postgresql_initdb): New initdb wrapper. * postgresql-tests/tasks/upstream-testsuite/runtest.sh: New testcase.
Diffstat (limited to 'postgresql-tests/lib_pgsql.sh')
-rw-r--r--postgresql-tests/lib_pgsql.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/postgresql-tests/lib_pgsql.sh b/postgresql-tests/lib_pgsql.sh
index 8d44391..e1fa3b0 100644
--- a/postgresql-tests/lib_pgsql.sh
+++ b/postgresql-tests/lib_pgsql.sh
@@ -160,6 +160,15 @@ dtf_postgresql_upgrade_tour()
return $rv
}
+dtf_postgresql_initdb()
+{
+ if rlIsFedora 18 19 20 21 || rlIsRHEL 5 6 7; then
+ rlRun "postgresql-setup initdb"
+ else
+ rlRun "postgresql-setup --initdb"
+ fi
+}
+
dtf_postgresql_data_mirror()
{
if test -z "$___mirror_chosen"; then