summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-10-22 08:54:05 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-10-22 08:54:05 +0200
commit2422a081a5be0d5ac5afb122361bc283da67341f (patch)
treecb255582060af6547dd9318c56ba0e8c761846a1 /tasks
parent922089746e1029de9be986672fcdeb6bc82e18d7 (diff)
downloadpostgresql-setup-tests-2422a081a5be0d5ac5afb122361bc283da67341f.tar.gz
postgresql-setup-tests-2422a081a5be0d5ac5afb122361bc283da67341f.tar.xz
postgresql-setup-tests-2422a081a5be0d5ac5afb122361bc283da67341f.zip
big reorg: prepare for generalization
Try to split into three separate components -> controller, tester, and 'tasks' (postgresql-tasks in our case). The controller component is the main part which is able to run the task remotely. Tester is more-like library for 'tasks' component (should be reusable on the raw git level). * controller: Almost separated component. * postgresql-tasks: Likewise. * tester: Likewise.
Diffstat (limited to 'tasks')
-rw-r--r--tasks/initdb/config.sh4
-rwxr-xr-xtasks/initdb/runtest.sh11
-rw-r--r--tasks/initdb_old/config.sh4
-rwxr-xr-xtasks/initdb_old/runtest.sh5
-rw-r--r--tasks/upgrade-basic/config.sh2
-rw-r--r--tasks/upgrade-basic/runtest.sh6
-rw-r--r--tasks/upgrade-utf8-syntax/config.sh3
-rw-r--r--tasks/upgrade-utf8-syntax/runtest.sh15
8 files changed, 0 insertions, 50 deletions
diff --git a/tasks/initdb/config.sh b/tasks/initdb/config.sh
deleted file mode 100644
index c7f6619..0000000
--- a/tasks/initdb/config.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-DTF_TEST_ID="initdb-basic"
-DTF_TEST_DESCRIPTION="\
-Check that the syntax 'postgresql-setup --initdb' works together with following
-'service start postgresql'."
diff --git a/tasks/initdb/runtest.sh b/tasks/initdb/runtest.sh
deleted file mode 100755
index ee520d6..0000000
--- a/tasks/initdb/runtest.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-dtf_postgresql_test_init
-if rlIsFedora 18 19 20 21 || rlIsRHEL 5 6 7; then
- # This syntaxe is not supported on oler systems.
- :
-else
- rlRun "postgresql-setup --initdb"
- rlServiceStart postgresql
- dtf_postgresql_check_started
-fi
-
-dtf_postgresql_test_finish
diff --git a/tasks/initdb_old/config.sh b/tasks/initdb_old/config.sh
deleted file mode 100644
index 2386677..0000000
--- a/tasks/initdb_old/config.sh
+++ /dev/null
@@ -1,4 +0,0 @@
-DTF_TEST_ID="initdb-old-syntax"
-DTF_TEST_DESCRIPTION="\
-Check that the old syntax 'postgresql-setup initdb' works together with
-following 'service start postgresql'."
diff --git a/tasks/initdb_old/runtest.sh b/tasks/initdb_old/runtest.sh
deleted file mode 100755
index 6a8d63c..0000000
--- a/tasks/initdb_old/runtest.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-dtf_postgresql_test_init
-rlRun "postgresql-setup initdb"
-rlServiceStart postgresql
-dtf_postgresql_check_started
-dtf_postgresql_test_finish
diff --git a/tasks/upgrade-basic/config.sh b/tasks/upgrade-basic/config.sh
deleted file mode 100644
index a1d4a2f..0000000
--- a/tasks/upgrade-basic/config.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-export DTF_TEST_ID="basic-upgrade"
-export DTF_TEST_DESCRIPTION="Check postgresql-setup [--]upgrade"
diff --git a/tasks/upgrade-basic/runtest.sh b/tasks/upgrade-basic/runtest.sh
deleted file mode 100644
index 5dd85bb..0000000
--- a/tasks/upgrade-basic/runtest.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-dtf_postgresql_test_init
-
-dtf_postgresql_upgrade_tour "$dtf_dataurl" basic.tar.gz
-rlAssert0 "test wrapper should finish successfully" $?
-
-dtf_postgresql_test_finish
diff --git a/tasks/upgrade-utf8-syntax/config.sh b/tasks/upgrade-utf8-syntax/config.sh
deleted file mode 100644
index bed95ad..0000000
--- a/tasks/upgrade-utf8-syntax/config.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-export DTF_TEST_ID="basic-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"
diff --git a/tasks/upgrade-utf8-syntax/runtest.sh b/tasks/upgrade-utf8-syntax/runtest.sh
deleted file mode 100644
index 9e7d9cf..0000000
--- a/tasks/upgrade-utf8-syntax/runtest.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-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