summaryrefslogtreecommitdiff
path: root/tests.as-root/setup
diff options
context:
space:
mode:
Diffstat (limited to 'tests.as-root/setup')
-rwxr-xr-xtests.as-root/setup34
1 files changed, 34 insertions, 0 deletions
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 <<EOF > 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 <<EOF > 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