From b0f7b339307050ce5a52c3dfda97aa50a901e5b8 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Mon, 20 Oct 2014 08:58:55 +0200 Subject: tasks/upgrade-locale-utf8-syntax: new testcase When system's locale changed e.g. from en_US.utf8 to en_US.UTF-8, older PostgreSQL versions were unable to upgrade the data directory. From Fedora 20 we should be able to upgrade without issues. Related: #1007802 * lib_pgsql.sh (dtf_postgresql_cb_upgrade) (dtf_postgresql_cb_upgrade_select): New callbacks for dtf_postgresql_upgrade_tour function. (dtf_postgresql_upgrade_tour): Function determining against which data the installation is able to upgrade and performs all the possible upgrade scenarios. * tasks/upgrade-basic/runtest.sh: Switch to dtf_postgresql_upgrade_tour usage. * tasks/upgrade-utf8-syntax/config.sh: New testcase config. * tasks/upgrade-utf8-syntax/runtest.sh: New testcase. --- tasks/upgrade-basic/runtest.sh | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) (limited to 'tasks/upgrade-basic/runtest.sh') diff --git a/tasks/upgrade-basic/runtest.sh b/tasks/upgrade-basic/runtest.sh index 3863479..5dd85bb 100644 --- a/tasks/upgrade-basic/runtest.sh +++ b/tasks/upgrade-basic/runtest.sh @@ -1,38 +1,6 @@ -arch=$(uname -i) - dtf_postgresql_test_init -test_wrapper() -{ - dtf_postgresql_upgrade_matrix | \ - while read distro version action; do - echo "performing upgrade: $distro-$version - $action" - - url="$dtf_dataurl/$distro/$version/$arch/basic.tar.gz" - - dtf_postgresql_unpack_remote_data "$url" || return 1 - - case "$action" in - upgrade) - if rlIsFedora 22; then - dashdash="--" - fi - rlRun "postgresql-setup $dashdash""upgrade" - ;; - *) - ;; - esac - - rlServiceStart postgresql - dtf_postgresql_check_started - rlServiceStop postgresql - dtf_postgresql_check_stopped - - rm -rf /var/lib/pgsql/data - done -} - -test_wrapper -rlAssert0 "test_wrapper() should finish successfully" $? +dtf_postgresql_upgrade_tour "$dtf_dataurl" basic.tar.gz +rlAssert0 "test wrapper should finish successfully" $? dtf_postgresql_test_finish -- cgit