summaryrefslogtreecommitdiff
path: root/yarns/tempdir.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/tempdir.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/tempdir.yarn')
-rw-r--r--yarns/tempdir.yarn26
1 files changed, 26 insertions, 0 deletions
diff --git a/yarns/tempdir.yarn b/yarns/tempdir.yarn
new file mode 100644
index 00000000..7882121e
--- /dev/null
+++ b/yarns/tempdir.yarn
@@ -0,0 +1,26 @@
+Temporary Directory
+===================
+
+ SCENARIO morph honours the temporary directory given
+ GIVEN a git server
+ WHEN the user clones definitions
+ THEN the user is able to build the system systems/test-system.morph in branch master using the specified temporary directory
+
+ IMPLEMENTS THEN the user is able to build the system (\S+) in branch (\S+) using the specified temporary directory
+ system="$MATCH_1"
+ branch="$MATCH_2"
+
+ export TMPDIR
+ TMPDIR="$DATADIR"/unwritable-tmp
+ install -m 000 -d "$TMPDIR"
+ mkdir "$DATADIR"/tmp
+
+ cd "$DATADIR"/definitions
+ git checkout "$branch"
+ morph --tempdir="$DATADIR"/tmp \
+ --cachedir-min-space=0 \
+ --tempdir-min-space=0 \
+ --no-default-config \
+ --config "$DATADIR"/morph.conf \
+ build "$system"
+ git checkout -