summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2014-09-24 16:55:06 +0000
committerRichard Maw <richard.maw@gmail.com>2014-10-01 09:30:15 +0000
commitfd6e7adca086e86657efdcd0a10cb1d2b3c8ad1e (patch)
treee65283d4486b303a1bc012a5257dcbe3dda950bb /tests
parent5ac9f90a64cdadaf4d9adb243c6be2f0f4d1764a (diff)
downloadmorph-fd6e7adca086e86657efdcd0a10cb1d2b3c8ad1e.tar.gz
Remove unused cmdtests
tests.deploy is gone since we have yarn coverage instead. tests/setup had unnecessary setup in it, since the remaining tests require custom setup anyway. A bunch of tests were disabled anyway, so they're gone. Also, there was still code in ./check to run tests.merging, which have been gone for a while.
Diffstat (limited to 'tests')
-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]