summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-03-13 15:35:01 (GMT)
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2015-03-20 17:13:34 (GMT)
commitd67d7dac1a1477817abff8900a7306f96a8283d6 (patch)
tree5103e820b8e1b7682242bc2ddeff02939e0ee654
parent9500e44ceaf6c36ecd933680901737a7b322e8d7 (diff)
downloadmorph-baserock/adamcoldrick/partial-builds.tar.gz
Add a test for partial buildsbaserock/adamcoldrick/partial-builds
Change-Id: I7e5bc3be4b31bf8bf8fa90454a9758984d5b56ec
-rw-r--r--yarns/building.yarn11
-rw-r--r--yarns/implementations.yarn7
2 files changed, 18 insertions, 0 deletions
diff --git a/yarns/building.yarn b/yarns/building.yarn
index b5e46b7..b8a3ff4 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 strata/build-essential.morph 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 2bbb1f5..47d3334 100644
--- a/yarns/implementations.yarn
+++ b/yarns/implementations.yarn
@@ -737,6 +737,13 @@ 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"
+ echo 'partial=True' >> "$DATADIR/morph.conf"
+ set "$MATCH_2" "$MATCH_5" "$MATCH_4"
+ if [ "$MATCH_1" != "attempts to " ]; then run_morph "$@"
+ else attempt_morph "$@"; fi
+
Implementation sections for cross-bootstraping
==============================================