diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/setup | 74 |
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] |