summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorRichard Ipsum <richardipsum@fastmail.co.uk>2014-11-16 19:04:01 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-01-23 10:55:18 +0000
commitf23433b50eca403eb47161fa7ce95085d618c75d (patch)
tree629ac84e226ab512b82ca5f31f7bfd69dfb71fb2 /yarns
parentcbc779d28c8f1978d235fb43ac91bf6f779bb796 (diff)
downloadmorph-f23433b50eca403eb47161fa7ce95085d618c75d.tar.gz
Add yarns to test building with relative paths
Diffstat (limited to 'yarns')
-rw-r--r--yarns/building.yarn27
-rw-r--r--yarns/implementations.yarn8
2 files changed, 35 insertions, 0 deletions
diff --git a/yarns/building.yarn b/yarns/building.yarn
index 253b3b3c..7e9406ac 100644
--- a/yarns/building.yarn
+++ b/yarns/building.yarn
@@ -9,6 +9,33 @@ Morph Building Tests
THEN morph build the system systems/base-system.morph of the branch master
FINALLY the git server is shut down
+ SCENARIO build system with relative path
+ GIVEN a workspace
+ AND a git server
+ WHEN the user checks out the system branch called master
+ AND the user creates an uncommitted system morphology called systems/base-system.morph for our architecture in system branch master
+ AND from the directory workspace/master/test/morphs/systems the user attempts to morph build the system base-system.morph
+ THEN morph succeeded
+ FINALLY the git server is shut down
+
+ SCENARIO build system with relative path (second variant)
+ GIVEN a workspace
+ AND a git server
+ WHEN the user checks out the system branch called master
+ AND the user creates an uncommitted system morphology called systems/base-system.morph for our architecture in system branch master
+ AND from the directory workspace/master/test/morphs/systems the user attempts to morph build the system ../systems/base-system.morph
+ THEN morph succeeded
+ FINALLY the git server is shut down
+
+ SCENARIO build system with absolute path
+ GIVEN a workspace
+ AND a git server
+ WHEN the user checks out the system branch called master
+ AND the user creates an uncommitted system morphology called systems/base-system.morph for our architecture in system branch master
+ AND from the directory workspace/master/test/morphs/systems the user attempts to morph build the system using the absolute path to base-system.morph
+ THEN morph succeeded
+ FINALLY the git server is shut down
+
System integrations
-------------------
diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn
index 2c2c6d18..f73e3c64 100644
--- a/yarns/implementations.yarn
+++ b/yarns/implementations.yarn
@@ -899,6 +899,14 @@ Implementations for building systems
cd "$DATADIR/workspace/$MATCH_2/test/morphs"
run_morph build "$MATCH_1"
+ IMPLEMENTS WHEN from the directory (\S+) the user attempts to morph build the system (\S+)
+ cd "$DATADIR/$MATCH_1"
+ attempt_morph build "$MATCH_2"
+
+ IMPLEMENTS WHEN from the directory (\S+) the user attempts to morph build the system using the absolute path to (\S+)
+ cd "$DATADIR/$MATCH_1"
+ attempt_morph build "$(pwd)/$MATCH_2"
+
Implementations for tarball inspection
--------------------------------------