From b1c1d4877dfc305475b2b7b555477ba1332e0545 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Thu, 7 Feb 2013 15:16:24 +0000 Subject: Amend tests to trigger failure to recursively update strata --- tests.as-root/setup | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'tests.as-root/setup') diff --git a/tests.as-root/setup b/tests.as-root/setup index 285a3143..03a438e0 100755 --- a/tests.as-root/setup +++ b/tests.as-root/setup @@ -79,6 +79,22 @@ git commit --quiet -m "add a hello world program and morph" git checkout --quiet master +# Create tools repository, so there is an extra layer of build-depends +toolsrepo="$DATADIR/tools-repo" +mkdir -p "$toolsrepo" +cd "$toolsrepo" +git init --quiet +cat <<'EOF' >tools.morph +name: tools +kind: chunk +build-commands: + - echo 'echo dummy strace' >strace +install-commands: + - mkdir -p "$DESTDIR/bin" + - install strace "$DESTDIR/bin/strace" +EOF +git add tools.morph +git commit --quiet -m "add morphology" # Create morph repository. @@ -98,6 +114,21 @@ chunks: EOF git add hello-stratum.morph +cat < tools-stratum.morph +name: tools-stratum +kind: stratum +build-depends: + - morph: linux-stratum + repo: test:morphs + ref: master +chunks: + - name: tools + repo: test:tools-repo + ref: master + build-depends: [] +EOF +git add tools-stratum.morph + cat < hello-system.morph name: hello-system kind: system @@ -139,6 +170,9 @@ strata: - morph: linux-stratum repo: test:morphs ref: master + - morph: tools-stratum + repo: test:morphs + ref: master EOF git add linux-system.morph -- cgit v1.2.1