summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-11-23 14:18:40 +0000
committerTiago Gomes <tiago.gomes@codethink.co.uk>2015-11-24 09:56:17 +0000
commitcbc3d789a4573704863de3a0247f55eda8b28638 (patch)
treed2ed4d405d2ca790826c4190b40c1699fbf4d46d /scripts
parent822d5415edc61fafeb8709e27b6fb1a2ddd3b288 (diff)
downloadmorph-cbc3d789a4573704863de3a0247f55eda8b28638.tar.gz
Remove tests for branch-and-merge plugin
Change-Id: Ie66b543eb67282c08a2651062727a4583057ee2d
Diffstat (limited to 'scripts')
-rw-r--r--scripts/setup-3rd-party-strata134
1 files changed, 0 insertions, 134 deletions
diff --git a/scripts/setup-3rd-party-strata b/scripts/setup-3rd-party-strata
deleted file mode 100644
index fd5aab9e..00000000
--- a/scripts/setup-3rd-party-strata
+++ /dev/null
@@ -1,134 +0,0 @@
-#!/bin/sh
-# Copyright (C) 2012-2013,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/>.
-
-
-# Create strata outside the main morphologies repository, which is useful
-# for the more complex workflow tests.
-
-
-. "$SRCDIR/scripts/fix-committer-info"
-
-create_chunk() {
- REPO="$1"
- NAME="$2"
-
- mkdir "$1"
- ln -s "$1" "$1.git"
- cd "$1"
-
- cat <<EOF > "$1/$2.morph"
-{
- "name": "$2",
- "kind": "chunk",
- "build-system": "dummy"
-}
-EOF
-
- git init --quiet
- git add .
- git commit --quiet -m "Initial commit"
-}
-
-write_stratum_morph() {
- REPO="$1"
- NAME="$2"
-
-cat <<EOF > "$1/$2.morph"
-{
- "name": "$2",
- "kind": "stratum",
- "chunks": [
- {
- "name": "hello",
- "repo": "test:$2-hello",
- "ref": "master",
- "build-mode": "test",
- "build-depends": []
- }
- ]
-}
-EOF
-}
-
-# Create two more strata outside the test:morphs repository
-
-EXTERNAL_STRATA_REPO="$DATADIR/external-strata"
-mkdir "$EXTERNAL_STRATA_REPO"
-ln -s "$EXTERNAL_STRATA_REPO" "$EXTERNAL_STRATA_REPO".git
-cd "$EXTERNAL_STRATA_REPO"
-
-git init --quiet .
-
-write_stratum_morph "$EXTERNAL_STRATA_REPO" "stratum2"
-write_stratum_morph "$EXTERNAL_STRATA_REPO" "stratum3"
-
-git add .
-git commit --quiet -m "Initial commit"
-
-# To make life harder, both chunks have the same name too
-
-create_chunk "$DATADIR/stratum2-hello" "hello"
-create_chunk "$DATADIR/stratum3-hello" "hello"
-
-# Update hello-system to include them ... using a system branch! Since the
-# strata refs are 'master' not 'me/add-external-strata' this does not cause
-# problems with merging.
-
-cd "$DATADIR/workspace"
-"$SRCDIR/scripts/test-morph" init
-"$SRCDIR/scripts/test-morph" branch test:morphs me/add-external-strata
-
-cd "$DATADIR/workspace/me/add-external-strata/test:morphs"
-
-cat <<EOF > "hello-system.morph"
-{
- "name": "hello-system",
- "kind": "system",
- "arch": "x86_64",
- "strata": [
- {
- "morph": "hello-stratum",
- "repo": "test:morphs",
- "ref": "master"
- },
- {
- "morph": "stratum2",
- "repo": "test:external-strata",
- "ref": "master"
- },
- {
- "morph": "stratum3",
- "repo": "test:external-strata",
- "ref": "master"
- }
- ]
-}
-EOF
-git commit --quiet --all -m "Add two more external strata"
-
-# Merge to master
-cd "$DATADIR/workspace"
-"$SRCDIR/scripts/test-morph" checkout test:morphs master
-cd master/test:morphs
-"$SRCDIR/scripts/test-morph" merge me/add-external-strata
-
-# In reality the user would do: 'git push origin master' here,
-# but since our remote repo is non-bare we must cheat a bit.
-# We should consider a separate fixture for the workflow tests.
-cd "$DATADIR/morphs"
-git pull -q \
- "file://$DATADIR/workspace/master/test:morphs" master
-
-cd "$DATADIR/workspace"