summaryrefslogtreecommitdiffstats
path: root/controller/commit_results
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-10-24 10:02:41 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-10-24 10:02:41 +0200
commitfbe706dccdd35bfdfd163b7107ea90f801830321 (patch)
treef87730d347a5029ca998cd8d2447a8fdc2c927be /controller/commit_results
parenta2f777c19494999c5bec3ee50b63a627155d5d9b (diff)
downloadpostgresql-setup-tests-fbe706dccdd35bfdfd163b7107ea90f801830321.tar.gz
postgresql-setup-tests-fbe706dccdd35bfdfd163b7107ea90f801830321.tar.xz
postgresql-setup-tests-fbe706dccdd35bfdfd163b7107ea90f801830321.zip
controller: autoconfiscate #2
Move 'results_stats' and 'commit_results' binaries into libexec and adjust appropriately. Also html template is now in $pkgdatadir. * .gitignore: Add tags/ChangeLog generated files. * README: Just some random notes. Needs to be rewritten anyway. * controller/.gitignore: Add newly 'make'd files. * controller/Makefile.am: Generate libexec/bin files. * controller/commit_results: Move to controller/libexec as dtf-result-stats.in. * controller/configure.ac: Also substitute resulttemplatedir. * controller/etc/dtf.conf.d/config.sh.template: The DTF_DATABASE was misleading - use rather DTF_DATABASE_DEFAULT. * controller/libexec/dtf-commit-results.in: Moved from controller/commit_results. * controller/result_stats: Moved to controller/libexec/dtf-result-stats.in. * controller/libexec/dtf-result-stats.in: Moved from controller/result_stats. * controller/result_templates/html.tmpl: Moved to controller/share/dtf-controller/results-stats-templates/html.tmpl.
Diffstat (limited to 'controller/commit_results')
-rwxr-xr-xcontroller/commit_results24
1 files changed, 0 insertions, 24 deletions
diff --git a/controller/commit_results b/controller/commit_results
deleted file mode 100755
index f18a361..0000000
--- a/controller/commit_results
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-srcdir=$(cd -P -- "$(dirname -- "$0")" && pwd -P) || exit 1
-. "$srcdir/config/config.sh" || {
- echo >&2 "sorry, but $srcdir/config/config.sh not found"
- exit 1
-}
-
-# argparse
-resultdir="$1"
-ressubdir="$2"
-test -n "$ressubdir" || { "no path specified" ; exit 1 ; }
-test -n "$3" && DTF_DATABASE="$2"
-
-# checks
-test -z "$DTF_DATABASE" && exit 1
-test -f "$resultdir/dtf.tar.gz" || exit 1
-
-# run
-if test ! -d "$DTF_DATABASE/$ressubdir"; then
- mkdir -p "$DTF_DATABASE/$ressubdir"
-fi
-
-( cd "$resultdir" && tar -xf dtf.tar.gz && cp -r dtf "$DTF_DATABASE/$ressubdir" )