summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
Diffstat (limited to 'yarns')
-rw-r--r--yarns/building.yarn11
-rw-r--r--yarns/implementations.yarn10
2 files changed, 21 insertions, 0 deletions
diff --git a/yarns/building.yarn b/yarns/building.yarn
new file mode 100644
index 00000000..2bd9b1e4
--- /dev/null
+++ b/yarns/building.yarn
@@ -0,0 +1,11 @@
+Morph Building Tests
+======================
+
+ SCENARIO attempting to build a system morphology which has never been committed
+ GIVEN a workspace
+ AND a git server
+ WHEN checking out the master system branch
+ AND creating an uncommitted system morphology called base-system-testarch for architecture testarch in system branch master
+ AND attempting to build the system base-system-testarch in branch master
+ THEN morph failed
+ AND the build error message includes the string "Did you forget to commit it?"
diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn
index 985ab2bc..85149f0a 100644
--- a/yarns/implementations.yarn
+++ b/yarns/implementations.yarn
@@ -281,6 +281,16 @@ Editing morphologies with `morph edit`.
echo "$MATCH_2" > "$DATADIR/git-branch.wanted"
diff -u "$DATADIR/git-branch.wanted" "$DATADIR/git-branch.actual"
+ IMPLEMENTS WHEN creating an uncommitted system morphology called (\S+) for architecture (\S+) in system branch (\S+)
+ cat << EOF > "$DATADIR/workspace/$MATCH_3/test:morphs/$MATCH_1.morph"
+ arch: $MATCH_2
+ configuration-extensions: []
+ description: A system called $MATCH_1 for architectures $MATCH_2
+ kind: system
+ name: $MATCH_1
+ strata: []
+ EOF
+
Reporting status of checked out repositories:
IMPLEMENTS THEN morph reports no outstanding changes in (\S+)