summaryrefslogtreecommitdiff
path: root/tests/setup
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2014-10-08 13:17:00 +0000
committerRichard Maw <richard.maw@gmail.com>2014-10-08 13:17:00 +0000
commit8b85d60e9294713097928d52b8ca4cfe5d5f801a (patch)
tree0de7707ca779b47f7c3882b5627cb3dedaf09a6a /tests/setup
parentd3be16e282bfdf7a8db8538339719161725b5cad (diff)
parent9034cd11ee2b9c050f2301c84627a3d7b2e67895 (diff)
downloadmorph-8b85d60e9294713097928d52b8ca4cfe5d5f801a.tar.gz
Merge branch 'baserock/richardmaw/fix-distbuild-v3'
Reviewed-by: Sam Thursfield Reviewed-by: Richard Ipsum Reviewed-by: Pedro Alvarez
Diffstat (limited to 'tests/setup')
-rwxr-xr-xtests/setup74
1 files changed, 0 insertions, 74 deletions
diff --git a/tests/setup b/tests/setup
index 02ddb3af..6ebab880 100755
--- a/tests/setup
+++ b/tests/setup
@@ -31,80 +31,6 @@ set -eu
# The $DATADIR should be empty at the beginnig of each test.
find "$DATADIR" -mindepth 1 -delete
-# Create chunk repository.
-
-chunkrepo="$DATADIR/chunk-repo"
-mkdir "$chunkrepo"
-cd "$chunkrepo"
-git init --quiet
-
-cat <<EOF > README
-This is a sample README.
-EOF
-git add README
-git commit --quiet -m "add README"
-
-git checkout --quiet -b farrokh
-
-cat <<EOF > hello.c
-#include <stdio.h>
-int main(void)
-{
- puts("hello, world");
- return 0;
-}
-EOF
-git add hello.c
-
-cat <<EOF > hello.morph
-name: hello
-kind: chunk
-build-system: dummy
-build-commands:
- - gcc -o hello hello.c
-install-commands:
- - install -d "\$DESTDIR/etc"
- - install -d "\$DESTDIR/bin"
- - install hello "\$DESTDIR/bin/hello"
-EOF
-git add hello.morph
-
-git commit --quiet -m "add a hello world program and morph"
-
-git checkout --quiet master
-
-
-
-# Create morph repository.
-
-morphsrepo="$DATADIR/morphs-repo"
-mkdir "$morphsrepo"
-cd "$morphsrepo"
-git init --quiet
-
-cat <<EOF > hello-stratum.morph
-name: hello-stratum
-kind: stratum
-chunks:
- - name: hello
- repo: test:chunk-repo
- ref: farrokh
- build-mode: test
- build-depends: []
-EOF
-git add hello-stratum.morph
-
-cat <<EOF > hello-system.morph
-name: hello-system
-kind: system
-strata:
- - morph: hello-stratum
-EOF
-git add hello-system.morph
-
-git commit --quiet -m "add morphs"
-
-
# Create a morph configuration file.
cat <<EOF > "$DATADIR/morph.conf"
[config]