On Fri, Dec 20, 2013 at 03:23:26PM +0000, Pedro Alvarez wrote:
diff --git a/yarns/implementations.yarn b/yarns/implementations.yarn
index 132ce9b..3aa47b8 100644
--- a/yarns/implementations.yarn
+++ b/yarns/implementations.yarn
@@ -124,6 +124,46 @@ We need a consistent value for the architecture in some tests, so
we
have a morphology using the test architecture.
IMPLEMENTS GIVEN a system called (\S+) for the test architecture in the git server
+
+ cat << EOF > "$DATADIR/gits/test-chunk/stage1-chunk.morph"
+ name: stage1-chunk
+ kind: chunk
+ build-system: dummy
+ EOF
+
+ run_in "$DATADIR/gits/test-chunk" git init .
+ run_in "$DATADIR/gits/test-chunk" git add .
+ run_in "$DATADIR/gits/test-chunk" git commit -m Initial.
+
+
+ cat << EOF > "$DATADIR/gits/morphs/build-essential.morph"
+ name: build-essential
+ kind: stratum
+ chunks:
+ - name: stage1-chunk
+ repo: test:test-chunk
+ ref: master
+ morph: stage1-chunk
+ build-mode: bootstrap
+ build-depends: []
+ EOF
+
+ cat << EOF > "$DATADIR/gits/morphs/core.morph"
+ name: core
+ kind: stratum
+ build-depends:
+ - morph: build-essential
+ ref: master
+ repo: test:morphs
+ chunks:
+ - name: test-chunk
+ repo: test:test-chunk
+ ref: master
+ morph: test-chunk
+ build-mode: test
+ build-depends: []
+ EOF
+
cat << EOF > "$DATADIR/gits/morphs/$MATCH_1.morph"
arch: testarch
configuration-extensions: []
@@ -131,11 +171,19 @@ have a morphology using the test architecture.
kind: system
name: $MATCH_1
strata:
- - name: test-stratum
+ - name: build-essential
repo: test:morphs
ref: master
- morph: test-stratum
+ morph: build-essential
+ - name: core
+ repo: test:morphs
+ ref: master
+ morph: core
EOF
+
+ run_in "$DATADIR/gits/morphs" git add "build-essential.morph"
+ run_in "$DATADIR/gits/morphs" git add "core.morph"
+ run_in "$DATADIR/gits/morphs" git commit -m "Added a strata
morphologies."
I don't think it's necessary to do this in two commits, but it looks
like it'll work fine as-is.
+1