summaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-10-14 09:57:57 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-10-14 10:09:18 +0200
commit959158ab0457afc4454e637db89f9d16f8aad775 (patch)
tree44870c605e38bfd4026c8a14fdf47c12a8ef420d /dist
parent2fc91b1dc56823bc615ce0cb19a8ee79645af6a2 (diff)
controller: configuration cleanup
Better define configuration and provide examples. * controller: Unpack results to correct directory, load the configuration from new place, call run_remote with proper arguments, generate 'results.html' with result_stats script. * ansible/run_include: Adjust to better simulate run_remote. * ansible/fedora.yml: Adjust for fixed configuration. * run_remote: Likewise. Also small issues with option parsing fixed. * config.sh.template: Moved as config/config.sh.template. * config/config.sh.template: Copyyed from /config.sh.template, better documented options. * run: Fix typo - use 'while read i' instead of 'for i in'. * config/os/EXAMPLE.sh: New file - exmaple configuration. * private/os/EXAMPLE.yml: Likewise. * config/hosts.template: Likewise. * dist.include: New file with file patterns that should be distributed to test machine. * dist: Distribute only those files which are necessary. * config/.gitignore: New gitignore file.
Diffstat (limited to 'dist')
-rwxr-xr-xdist15
1 files changed, 10 insertions, 5 deletions
diff --git a/dist b/dist
index 62938db..9c97621 100755
--- a/dist
+++ b/dist
@@ -1,10 +1,15 @@
#!/bin/bash
name=postgresql-setup-tests
-tarball=$name.tar.gz
+tarball="$name.tar.gz"
+
test -e .git || exit 1
-what=`ls -1 | grep -v $tarball | grep -v ansible`
-mkdir $name
-cp $what $name -R
-tar -czf $tarball $name
+
+mkdir "$name"
+while read line; do
+ line=${line##postgresql-setup-tests/}
+ cp -R "$line" "$name"
+done < dist.include
+
+tar -czf $tarball --wildcards -T dist.include
rm -rf $name