summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-03-13 15:35:01 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2015-04-02 08:07:09 +0000
commitdbc9851ac865c6201dad6489bbd97f546495ae73 (patch)
tree264568f8afd08fa39c728184fa2b59cebe92c4ab /yarns
parent19cb5098dcec8e4dd4152aeff95b8e5a7fe1c69a (diff)
downloadmorph-dbc9851ac865c6201dad6489bbd97f546495ae73.tar.gz
Add a test for partial builds
Change-Id: Ibc95fe1d78c8d68dd20a4d2187f93f363369dfec
Diffstat (limited to 'yarns')
-rw-r--r--yarns/building.yarn11
-rw-r--r--yarns/implementations.yarn6
2 files changed, 17 insertions, 0 deletions
diff --git a/yarns/building.yarn b/yarns/building.yarn
index b5e46b73..8a98e5d9 100644
--- a/yarns/building.yarn
+++ b/yarns/building.yarn
@@ -112,3 +112,14 @@ Empty strata don't build
AND the user attempts to build the system systems/empty-stratum-system.morph in branch empty-stratum
THEN morph failed
FINALLY the git server is shut down
+
+Partial building
+----------------
+
+ SCENARIO partial building
+ GIVEN a workspace
+ AND a git server
+ WHEN the user checks out the system branch called master
+ AND the user attempts to build build-essential from the system systems/test-system.morph in branch master
+ THEN morph succeeded
+ FINALLY the git server is shut down
diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn
index 2bbb1f5c..faae44a8 100644
--- a/yarns/implementations.yarn
+++ b/yarns/implementations.yarn
@@ -737,6 +737,12 @@ Implementation sections for building
if [ "$MATCH_1" != "attempts to " ]; then run_morph "$@"
else attempt_morph "$@"; fi
+ IMPLEMENTS WHEN the user (attempts to )?((dist)?build)s? (\S+) from the system (\S+) in branch (\S+)
+ cd "$DATADIR/workspace/$MATCH_6/test/morphs"
+ set "$MATCH_2" "$MATCH_5" "$MATCH_4"
+ if [ "$MATCH_1" != "attempts to " ]; then run_morph "$@"
+ else attempt_morph "$@"; fi
+
Implementation sections for cross-bootstraping
==============================================