summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-11-03 10:12:32 +0100
committerPavel Raiskup <praiskup@redhat.com>2014-11-03 10:12:32 +0100
commit9f86c5ea468d3617f37e8fa34e6171e35650bb88 (patch)
tree343cf513b2c883059866c6a479bbad2d144d206f
parent2ad39b1a78d94283eb3e11ee75337585ddc6d6d7 (diff)
downloadpostgresql-setup-tests-9f86c5ea468d3617f37e8fa34e6171e35650bb88.tar.gz
postgresql-setup-tests-9f86c5ea468d3617f37e8fa34e6171e35650bb88.tar.xz
postgresql-setup-tests-9f86c5ea468d3617f37e8fa34e6171e35650bb88.zip
controller: remove old unused script
* controller/controller: Removed.
-rwxr-xr-xcontroller/controller73
1 files changed, 0 insertions, 73 deletions
diff --git a/controller/controller b/controller/controller
deleted file mode 100755
index e0cffe9..0000000
--- a/controller/controller
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/bash
-
-. config/config.sh || {
- echo >&2 "sorry, but config/config.sh not found"
- exit 1
-}
-
-# (still) local variables
-distro=fedora
-distro_ver=21
-arch=x86_64
-starttime=$(date -u +%Y%m%d_%H%M%S_%N)
-
-die() { echo "$@"; exit 1; }
-
-prereq_resultdir()
-{
- test -d "$DTF_DATABASE" || mkdir -p "$DTF_DATABASE"
-}
-
-unpack_results()
-{
- local where="$1"
- local tmp_results_dir="$2"
-
- local workdir=$(mktemp -d "/tmp/.dtf.XXXXXX") || die "can not create workdir"
-
- { pushd "$workdir" >/dev/null \
- && tar -xf "$tmp_results_dir/dtf.tar.gz" \
- && pushd dtf >/dev/null
- } || die "can not unpack results"
-
- for i in *.log; do
- local task_id="${i%%.log}"
- local mydir=""
-
- # First item in tarball is the "main" directory
- while read dirname; do
- test -z "$mydir" && mydir="$dirname"
- done <<<"$(tar xvf "$task_id.tar.gz")"
-
- # Give the unpacked results better name
- rm "$task_id.tar.gz"
- mv "$mydir" "$task_id.dir"
- done
-
- { popd && popd ; } > /dev/null
-
- { mkdir -p "$(dirname "$where")" \
- && mv "$workdir/dtf" "$where" ;
- } || die "can not create resultdir"
-}
-
-prereq_resultdir
-
-workdir=$(mktemp -d "/var/tmp/dtf_postgresql_setup-XXXXXX")
-
-# cp /var/tmp/dtf_postgresql_setup-yK12r7/dtf.tar.gz "$workdir"
-./run_remote \
- --distro="$distro" \
- --distro-version="$distro_ver" \
- --workdir="$workdir" \
- --openstack-instance="$DTF_OPENSTACK_ID" \
- "$(test -f additional_packages \
- && echo '--extra-rpms-file=additional_packages')" \
-|| die "can not perform run_remote"
-
-resultdir="$DTF_DATABASE/$distro/$distro_ver/$arch"
-unpack_results "$resultdir/result_$starttime" "$workdir"
-
-./runner/result_stats "$resultdir" > "$resultdir/results.html"
-
-rsync -r "${DTF_DATABASE%%/}/" "${DTF_PRESENTER_PLACE%%/}"