summaryrefslogtreecommitdiffstats
path: root/postgresql-tests/config.sh
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-10-24 14:29:35 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-10-24 14:29:35 +0200
commit2a6faa0853239377f191cdd72efc60f1df684ebd (patch)
tree2c8180a86ee2a289c6d8a6ff37b764624352af2f /postgresql-tests/config.sh
parentf9ec27bd843e40f89ace7705a075e938aa3a9409 (diff)
downloadpostgresql-setup-tests-2a6faa0853239377f191cdd72efc60f1df684ebd.tar.gz
postgresql-setup-tests-2a6faa0853239377f191cdd72efc60f1df684ebd.tar.xz
postgresql-setup-tests-2a6faa0853239377f191cdd72efc60f1df684ebd.zip
tester/run: better define API
Define test return values and its calling. Do not split the testcase into configuration and running script, rather use one file and wrap the script by run() method. This is still very easy to run without running whole testsuite. * tester/run (DTF_RESULT_*): Return values API. (run): Rename to run_test. Make the function more readable, don't generate xml results (not yet used anyway). * postgresql-tests/config.sh: Do not source the per-testsuite library directly as the configuration script config.h is sourced even by 'run' script itself for --dist option (for that action we actually do not need per-testsuite libraries). * postgresql-tests/tasks/initdb/runtest.sh: New API used. * postgresql-tests/tasks/initdb_old/runtest.sh: Likewise. * postgresql-tests/tasks/upgrade-basic/runtest.sh: Likewise. * postgresql-tests/tasks/upgrade-utf8-syntax/runtest.sh: Likewise. * postgresql-tests/tasks/upgrade-basic/config.sh: Remove. * postgresql-tests/tasks/initdb/config.sh: Remove. * postgresql-tests/tasks/initdb_old/config.sh: Remove. * postgresql-tests/tasks/upgrade-utf8-syntax/config.sh: Remove.
Diffstat (limited to 'postgresql-tests/config.sh')
-rw-r--r--postgresql-tests/config.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/postgresql-tests/config.sh b/postgresql-tests/config.sh
index 6650ed2..6dc859a 100644
--- a/postgresql-tests/config.sh
+++ b/postgresql-tests/config.sh
@@ -1,7 +1,4 @@
-# include PostgreSQL specific test-library
-. "$srcdir/lib_pgsql.sh" || exit 1
-
-export dtf_dataurls
+export dtf_dataurls dtf_libfiles
# this is needed for some tests
dtf_dataurls[0]=http://172.16.125.10/root-tests/data/postgresql/
@@ -11,3 +8,6 @@ dtf_cb_dist_tasks()
{
tar -ch "$dir" --exclude gen-data
}
+
+# include PostgreSQL specific test-library
+dtf_libfiles[0]="$srcdir/lib_pgsql.sh"