summaryrefslogtreecommitdiffstats
path: root/postgresql-tests/tasks/upgrade-locale-utf8-syntax
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-11-06 10:58:23 +0100
committerPavel Raiskup <praiskup@redhat.com>2014-11-06 10:59:24 +0100
commit69c86e4a0fcb3f086d62a7fe6913f09df7cdc742 (patch)
tree56bd889eb5609958ec1e597851cd7d80eb43e44c /postgresql-tests/tasks/upgrade-locale-utf8-syntax
parent430a5e2b5d989caec79d2fc070cbe742ee7e73ed (diff)
downloadpostgresql-setup-tests-69c86e4a0fcb3f086d62a7fe6913f09df7cdc742.tar.gz
postgresql-setup-tests-69c86e4a0fcb3f086d62a7fe6913f09df7cdc742.tar.xz
postgresql-setup-tests-69c86e4a0fcb3f086d62a7fe6913f09df7cdc742.zip
postgresql-tasks: rename tests
* postgresql-tests/tasks/upgrade-basic/runtest.sh: Sync the test name with directory name. * postgresql-tests/tasks/upgrade-utf8-syntax/runtest.sh: Rename to postgresql-tests/tasks/upgrade-locale-utf8-syntax/runtest.sh.
Diffstat (limited to 'postgresql-tests/tasks/upgrade-locale-utf8-syntax')
-rw-r--r--postgresql-tests/tasks/upgrade-locale-utf8-syntax/runtest.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/postgresql-tests/tasks/upgrade-locale-utf8-syntax/runtest.sh b/postgresql-tests/tasks/upgrade-locale-utf8-syntax/runtest.sh
new file mode 100644
index 0000000..7567e0f
--- /dev/null
+++ b/postgresql-tests/tasks/upgrade-locale-utf8-syntax/runtest.sh
@@ -0,0 +1,22 @@
+export DTF_TEST_ID="upgrade-locale-utf8-syntax"
+export DTF_TEST_DESCRIPTION="Check postgresql-setup --upgrade works even when \
+the system locale changed from xx_XX.utf8 to xx_XX.UTF-8"
+
+run()
+{
+ 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_postgresql_data_mirror)" locale-utf-typo.tar.gz
+ rlAssert0 "test wrapper should finish successfully" $?
+
+ dtf_postgresql_test_finish
+}