summaryrefslogtreecommitdiff
path: root/yarns/building.yarn
diff options
context:
space:
mode:
authorTiago Gomes <tiago.gomes@codethink.co.uk>2015-11-27 14:21:01 +0000
committerTiago Gomes <tiago.gomes@codethink.co.uk>2015-12-02 12:19:29 +0000
commit0d24e380ff394782358da99b776a187d402142e9 (patch)
tree895f2fe3efe4c524cd6ed0f65a4ce7c24c0cb267 /yarns/building.yarn
parentc8f97d36441ce8e0bd18feba8073f32a2b1c4628 (diff)
downloadmorph-0d24e380ff394782358da99b776a187d402142e9.tar.gz
Convert last cmdtests to yarns
The conversion was made so that the build command was used instead of the build-morphology command. Change-Id: I67c43d765ed603ecdd806bc649815526243b7b87
Diffstat (limited to 'yarns/building.yarn')
-rw-r--r--yarns/building.yarn56
1 files changed, 56 insertions, 0 deletions
diff --git a/yarns/building.yarn b/yarns/building.yarn
index cb92a098..9284f7cf 100644
--- a/yarns/building.yarn
+++ b/yarns/building.yarn
@@ -1,6 +1,14 @@
Morph Building Tests
======================
+ SCENARIO building a system morphology
+ GIVEN a git server
+ WHEN the user clones definitions
+ AND the user attempts to build the system systems/test-system.morph in branch master
+ THEN morph succeeded
+ AND the system artifact for test-system is in the cache
+ FINALLY the git server is shut down
+
SCENARIO attempting to build a system morphology which has never been committed
GIVEN a git server
WHEN the user clones definitions
@@ -33,6 +41,54 @@ Morph Building Tests
THEN morph succeeded
FINALLY the git server is shut down
+ SCENARIO build a chunk with build commands that will fail
+ GIVEN a git server
+ WHEN the user clones definitions
+ AND the user defines build commands for chunk test-chunk that will fail, in branch master
+ AND the user attempts to build the system systems/test-system.morph in branch master
+ THEN morph failed
+ AND the build error message includes the string "build failed (exit_code=1)"
+ FINALLY the git server is shut down
+
+ SCENARIO build log is saved when a chunk is built
+ GIVEN a git server
+ WHEN the user clones definitions
+ AND the user attempts to build the system systems/test-system.morph in branch master
+ THEN morph succeeded
+ AND the build logs for the chunks were saved to the artifact cache
+ FINALLY the git server is shut down
+
+ SCENARIO building a chunk containing submodules
+ GIVEN a git server
+ AND a chunk with submodules
+ WHEN the user clones definitions
+ AND the user adds the chunk with submodules to an existing stratum in branch master
+ AND the user attempts to build the system systems/test-system.morph in branch master
+ THEN morph succeeded
+ FINALLY the git server is shut down
+
+ SCENARIO building a chunk using a custom prefix
+ GIVEN a git server
+ WHEN the user clones definitions
+ AND the user adds the chunk with custom prefixes to an existing stratum in branch master
+ AND the user attempts to build the system systems/test-system.morph in branch master
+ THEN morph succeeded
+ THEN the build log for chunk xyzzy contains /plover
+ THEN the build log for chunk plugh contains /usr
+ THEN the build log for chunk plugh contains /plover/bin
+ FINALLY the git server is shut down
+
+ SCENARIO modifying chunk causes its stratum to be rebuilt
+ GIVEN a git server
+ WHEN the user clones definitions
+ AND the user attempts to build the system systems/test-system.morph in branch master
+ THEN morph succeeded
+ WHEN the user changes the build commands for chunk test-chunk in branch master
+ AND the user attempts to build the system systems/test-system.morph in branch master
+ THEN morph succeeded
+ AND there are 2 artifacts named core-runtime in the cache
+ FINALLY the git server is shut down
+
System integrations
-------------------