diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-11-23 14:18:40 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-11-24 09:56:17 +0000 |
commit | cbc3d789a4573704863de3a0247f55eda8b28638 (patch) | |
tree | d2ed4d405d2ca790826c4190b40c1699fbf4d46d /tests.branching/setup | |
parent | 822d5415edc61fafeb8709e27b6fb1a2ddd3b288 (diff) | |
download | morph-cbc3d789a4573704863de3a0247f55eda8b28638.tar.gz |
Remove tests for branch-and-merge plugin
Change-Id: Ie66b543eb67282c08a2651062727a4583057ee2d
Diffstat (limited to 'tests.branching/setup')
-rwxr-xr-x | tests.branching/setup | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/tests.branching/setup b/tests.branching/setup deleted file mode 100755 index c10b4fee..00000000 --- a/tests.branching/setup +++ /dev/null @@ -1,101 +0,0 @@ -#!/bin/bash -# Copyright (C) 2012-2015 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. - - -# Set up $DATADIR. -# -# - a morph.conf configuration file -# - an empty morph workspace directory -# - a git repository called "morphs" for fake system, stratum morphologies -# - a git repository calle "hello" for a dummy chunk - -set -eu - -source "$SRCDIR/scripts/fix-committer-info" - -# Create a morph configuration file -cat <<EOF > "$DATADIR/morph.conf" -[config] -repo-alias = test=file://$DATADIR/%s#file://$DATADIR/%s -cachedir = $DATADIR/cache -log = $DATADIR/morph.log -tempdir = $TMPDIR -no-distcc = true -quiet = true -EOF - - -# Create an empty directory to be used as a morph workspace -mkdir "$DATADIR/workspace" - - -# Create a fake morphs repository -mkdir "$DATADIR/morphs" - -## Create a link to this repo that has a .git suffix -ln -s "$DATADIR/morphs" "$DATADIR/morphs.git" - -echo 'version: 7' > "$DATADIR/morphs/VERSION" - -# We don't build anything, so empty DEFAULTS file is fine. -echo '' > "$DATADIR/morphs/DEFAULTS" - -cat <<EOF > "$DATADIR/morphs/hello-system.morph" -name: hello-system -kind: system -arch: $("$SRCDIR/scripts/test-morph" print-architecture) -strata: -- morph: hello-stratum -EOF - -cat <<EOF > "$DATADIR/morphs/hello-stratum.morph" -name: hello-stratum -kind: stratum -chunks: -- name: hello - repo: test:hello - ref: master - build-depends: [] - build-mode: bootstrap - build-system: manual -EOF - - -scripts/run-git-in "$DATADIR/morphs" init -scripts/run-git-in "$DATADIR/morphs" add . -scripts/run-git-in "$DATADIR/morphs" commit -m initial - - -# Add an extra branch to the morphs repo. -scripts/run-git-in "$DATADIR/morphs" checkout -b alfred -touch "$DATADIR/morphs/this.is.alfred" -scripts/run-git-in "$DATADIR/morphs" add this.is.alfred -scripts/run-git-in "$DATADIR/morphs" commit --quiet -m 'mark as alfred' -scripts/run-git-in "$DATADIR/morphs" checkout master - -# Create a dummy chunk repository -mkdir "$DATADIR/hello" - -echo 'Chunk repo is empty' > "$DATADIR"/hello/dummy - -scripts/run-git-in "$DATADIR/hello" init -scripts/run-git-in "$DATADIR/hello" add . -scripts/run-git-in "$DATADIR/hello" commit -m initial - - -# Add an extra branch to the hello repo. -scripts/run-git-in "$DATADIR/hello" checkout -b alfred -scripts/run-git-in "$DATADIR/hello" checkout master - |