summaryrefslogtreecommitdiffstats
path: root/postgresql-tests/tasks/initdb_old
diff options
context:
space:
mode:
Diffstat (limited to 'postgresql-tests/tasks/initdb_old')
-rw-r--r--postgresql-tests/tasks/initdb_old/config.sh4
-rwxr-xr-xpostgresql-tests/tasks/initdb_old/runtest.sh5
2 files changed, 9 insertions, 0 deletions
diff --git a/postgresql-tests/tasks/initdb_old/config.sh b/postgresql-tests/tasks/initdb_old/config.sh
new file mode 100644
index 0000000..2386677
--- /dev/null
+++ b/postgresql-tests/tasks/initdb_old/config.sh
@@ -0,0 +1,4 @@
+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/postgresql-tests/tasks/initdb_old/runtest.sh b/postgresql-tests/tasks/initdb_old/runtest.sh
new file mode 100755
index 0000000..6a8d63c
--- /dev/null
+++ b/postgresql-tests/tasks/initdb_old/runtest.sh
@@ -0,0 +1,5 @@
+dtf_postgresql_test_init
+rlRun "postgresql-setup initdb"
+rlServiceStart postgresql
+dtf_postgresql_check_started
+dtf_postgresql_test_finish