From 22a4e88e40c30c309b27c399ac6795da6c5fe7c9 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 24 Nov 2014 16:10:11 +0100 Subject: 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. --- postgresql-tests/lib_pgsql.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'postgresql-tests/lib_pgsql.sh') 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 -- cgit