summaryrefslogtreecommitdiff
path: root/tests.branching/setup
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-22 19:09:41 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-03-22 19:09:41 +0000
commit9049d3091c9aec0642388514ef5a3a01bfdde9b4 (patch)
tree3a1f0a1957b83319917f822ef706c223b29de30b /tests.branching/setup
parent988a23bc269eb181b26ee8ad9a2bfb8c534e5c72 (diff)
downloadmorph-9049d3091c9aec0642388514ef5a3a01bfdde9b4.tar.gz
Create a morph config file in the test setup script
Diffstat (limited to 'tests.branching/setup')
-rwxr-xr-xtests.branching/setup12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests.branching/setup b/tests.branching/setup
index 61f966e2..791e0337 100755
--- a/tests.branching/setup
+++ b/tests.branching/setup
@@ -17,6 +17,7 @@
# Set up $DATADIR.
#
+# - a morph.conf configuration file
# - an empty morph mine directory
# - a git repository called "morphs" for fake system, stratum morphologies
# - a git repository calle "hello" for a dummy chunk
@@ -24,6 +25,17 @@
set -eu
+# Create a morph configuration file
+cat <<EOF > "$DATADIR/morph.conf"
+[config]
+git-base-url = file://$DATADIR/
+cachedir = $DATADIR/mine/.morph/cache
+log = $DATADIR/morph.log
+keep-path = true
+no-distcc = true
+EOF
+
+
# Create an empty directory to be used as a morph mine
mkdir "$DATADIR/mine"