diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2015-03-13 15:35:01 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2015-03-13 15:35:01 +0000 |
commit | 42bc88e06447c9c136c828c21eccd42eb9128085 (patch) | |
tree | 86cb000b79acb997a6cca262daf56e1593b27783 | |
parent | e41070a4cd9252796bae03a7551df5af659a33da (diff) | |
download | morph-42bc88e06447c9c136c828c21eccd42eb9128085.tar.gz |
WIP: Add a test for partial builds
-rw-r--r-- | yarns/building.yarn | 11 | ||||
-rw-r--r-- | yarns/implementations.yarn | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/yarns/building.yarn b/yarns/building.yarn index b5e46b73..b8a3ff49 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 2557e2e5..0be46048 100644 --- a/yarns/implementations.yarn +++ b/yarns/implementations.yarn @@ -747,6 +747,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 ============================================== |