From d67d7dac1a1477817abff8900a7306f96a8283d6 Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Fri, 13 Mar 2015 15:35:01 +0000 Subject: Add a test for partial builds Change-Id: I7e5bc3be4b31bf8bf8fa90454a9758984d5b56ec --- yarns/building.yarn | 11 +++++++++++ yarns/implementations.yarn | 7 +++++++ 2 files changed, 18 insertions(+) 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 2bbb1f5c..47d33341 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 ============================================== -- cgit v1.2.1