summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2015-05-14 13:13:36 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2015-05-20 14:03:27 +0000
commit8eef287c2a6a72197e31d8c9f815709f1d3618f0 (patch)
tree3736071465e706dbdb554c6900a518c4d3414830
parent4dcc23bc30429fbc60625c004b701b9105c70b95 (diff)
downloadmorph-8eef287c2a6a72197e31d8c9f815709f1d3618f0.tar.gz
yarns: Add a test for `morph certify`
Change-Id: Iee611887c54f8b8b67504ae2ba0cd78be703e455
-rw-r--r--yarns/branches-workspaces.yarn13
-rw-r--r--yarns/implementations.yarn6
2 files changed, 19 insertions, 0 deletions
diff --git a/yarns/branches-workspaces.yarn b/yarns/branches-workspaces.yarn
index 492bd102..8bbf7d50 100644
--- a/yarns/branches-workspaces.yarn
+++ b/yarns/branches-workspaces.yarn
@@ -644,3 +644,16 @@ Definition diffing
IMPLEMENTS WHEN the user requests a definition diff on all systems on branches (\S+) and (\S+) in system branch (\S+)
repo="$DATADIR/workspace/$MATCH_3/test/morphs"
attempt_morph diff "$repo" "$MATCH_1" - "$repo" "$MATCH_2" -
+
+Certify
+-------
+
+`morph certify` can be used to get an indication whether or not building
+a system is likely to have a reproducible result.
+
+ SCENARIO using morph certify
+ GIVEN a git server
+
+ WHEN the user certifies the system systems/test-system.morph at ref HEAD in repository test:morphs
+ THEN morph succeeded
+ AND morph output Reproducibility certification PASSED
diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn
index 3e076f59..688203cf 100644
--- a/yarns/implementations.yarn
+++ b/yarns/implementations.yarn
@@ -739,6 +739,12 @@ Generating a manifest.
cd "$DATADIR/workspace/$MATCH_1/test/morphs"
git commit -a --allow-empty -m 'Commit all changes'
+Implementations for `morph certify`
+-----------------------------------
+
+ IMPLEMENTS WHEN the user certifies the system (\S+) at ref (\S+) in repository (\S+)
+ attempt_morph certify "$MATCH_3" "$MATCH_2" "$MATCH_1"
+
Implementations for temporary build branch handling
---------------------------------------------------