diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2014-10-20 08:58:55 +0200 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2014-10-20 08:58:55 +0200 |
commit | b0f7b339307050ce5a52c3dfda97aa50a901e5b8 (patch) | |
tree | cd3a944eee9910faa66ad5ce1ce8152e0795b764 /tasks/upgrade-basic/runtest.sh | |
parent | 4d5a62e62e64554af003f3395639ba912ed0c6c6 (diff) | |
download | postgresql-setup-tests-b0f7b339307050ce5a52c3dfda97aa50a901e5b8.tar.gz postgresql-setup-tests-b0f7b339307050ce5a52c3dfda97aa50a901e5b8.tar.xz postgresql-setup-tests-b0f7b339307050ce5a52c3dfda97aa50a901e5b8.zip |
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.
Diffstat (limited to 'tasks/upgrade-basic/runtest.sh')
-rw-r--r-- | tasks/upgrade-basic/runtest.sh | 36 |
1 files changed, 2 insertions, 34 deletions
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 |