diff options
l--------- | postgresql-odbc-tests/libdtf | 1 | ||||
l--------- | postgresql-odbc-tests/run | 1 | ||||
-rw-r--r-- | postgresql-odbc-tests/tasks/upstream-testsuite/runtest.sh | 30 |
3 files changed, 32 insertions, 0 deletions
diff --git a/postgresql-odbc-tests/libdtf b/postgresql-odbc-tests/libdtf new file mode 120000 index 0000000..2aca4c4 --- /dev/null +++ b/postgresql-odbc-tests/libdtf @@ -0,0 +1 @@ +../tester/libdtf
\ No newline at end of file diff --git a/postgresql-odbc-tests/run b/postgresql-odbc-tests/run new file mode 120000 index 0000000..adeed00 --- /dev/null +++ b/postgresql-odbc-tests/run @@ -0,0 +1 @@ +../tester/run
\ No newline at end of file diff --git a/postgresql-odbc-tests/tasks/upstream-testsuite/runtest.sh b/postgresql-odbc-tests/tasks/upstream-testsuite/runtest.sh new file mode 100644 index 0000000..1b7da92 --- /dev/null +++ b/postgresql-odbc-tests/tasks/upstream-testsuite/runtest.sh @@ -0,0 +1,30 @@ +export DTF_TEST_ID="upstream-testsuite" +export DTF_TEST_DESCRIPTION="Run the upstream testsuite available with +distribution tarball." + +check_libdir() +{ + test -d "$1" || return 0 + cd "$1" || return 1 + su postgres -c "make installcheck" +} + +run() +{ + local libsubdir="postgresql-odbc/test/" + local dir= + local rc=$DTF_RESULT_SUCCESS + + for i in /usr/lib64 /usr/lib; do + dir="$i/$libsubdir" + check_libdir "$dir" || { + rc="$DTF_RESULT_FAILURE" + cat "$dir/regression.diffs" + break + } + done + + dtf_generate_results_tarball "$dir" + + return "$rc" +} |