From f23433b50eca403eb47161fa7ce95085d618c75d Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Sun, 16 Nov 2014 19:04:01 +0000 Subject: Add yarns to test building with relative paths --- yarns/building.yarn | 27 +++++++++++++++++++++++++++ yarns/implementations.yarn | 8 ++++++++ 2 files changed, 35 insertions(+) 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 -------------------------------------- -- cgit v1.2.1