summaryrefslogtreecommitdiffstats
path: root/tasks/upgrade-utf8-syntax/runtest.sh
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-10-20 08:58:55 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-10-20 08:58:55 +0200
commitb0f7b339307050ce5a52c3dfda97aa50a901e5b8 (patch)
treecd3a944eee9910faa66ad5ce1ce8152e0795b764 /tasks/upgrade-utf8-syntax/runtest.sh
parent4d5a62e62e64554af003f3395639ba912ed0c6c6 (diff)
downloadpostgresql-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-utf8-syntax/runtest.sh')
-rw-r--r--tasks/upgrade-utf8-syntax/runtest.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tasks/upgrade-utf8-syntax/runtest.sh b/tasks/upgrade-utf8-syntax/runtest.sh
new file mode 100644
index 0000000..9e7d9cf
--- /dev/null
+++ b/tasks/upgrade-utf8-syntax/runtest.sh
@@ -0,0 +1,15 @@
+dtf_postgresql_test_init
+
+dtf_postgresql_cb_upgrade_select()
+{
+ if rlIsFedora 20 21 22; then
+ cat
+ else
+ cat >/dev/null
+ fi
+}
+
+dtf_postgresql_upgrade_tour "$dtf_dataurl" locale-utf-typo.tar.gz
+rlAssert0 "test wrapper should finish successfully" $?
+
+dtf_postgresql_test_finish