diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-11-27 14:21:01 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-12-02 12:19:29 +0000 |
commit | 0d24e380ff394782358da99b776a187d402142e9 (patch) | |
tree | 895f2fe3efe4c524cd6ed0f65a4ce7c24c0cb267 /tests.build | |
parent | c8f97d36441ce8e0bd18feba8073f32a2b1c4628 (diff) | |
download | morph-0d24e380ff394782358da99b776a187d402142e9.tar.gz |
Convert last cmdtests to yarns
The conversion was made so that the build command was used instead of
the build-morphology command.
Change-Id: I67c43d765ed603ecdd806bc649815526243b7b87
Diffstat (limited to 'tests.build')
19 files changed, 0 insertions, 673 deletions
diff --git a/tests.build/build-chunk-failures-dump-log.exit b/tests.build/build-chunk-failures-dump-log.exit deleted file mode 100644 index d00491fd..00000000 --- a/tests.build/build-chunk-failures-dump-log.exit +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/tests.build/build-chunk-failures-dump-log.script b/tests.build/build-chunk-failures-dump-log.script deleted file mode 100755 index 75c3caf2..00000000 --- a/tests.build/build-chunk-failures-dump-log.script +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2011-2015 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. - - -## Test building a chunk that fails. - -set -eu - -# Make 'hello' chunk fail to build -morphsrepo="$DATADIR/morphs-repo" -cd "$morphsrepo" -cat <<EOF >hello.morph -name: hello -kind: chunk -configure-commands: - - echo dummy configure -build-commands: - - echo The next command will fail - - "false" -EOF -git add hello.morph -git commit --quiet -m "Make morphology fail to build." - -"$SRCDIR/scripts/test-morph" build-morphology \ - test:morphs-repo master hello-system 2>/dev/null diff --git a/tests.build/build-chunk-failures-dump-log.stdout b/tests.build/build-chunk-failures-dump-log.stdout deleted file mode 100644 index c4d4bf93..00000000 --- a/tests.build/build-chunk-failures-dump-log.stdout +++ /dev/null @@ -1,8 +0,0 @@ -### CONFIGURE-COMMANDS ### -+ echo dummy configure -dummy configure -### BUILD-COMMANDS ### -+ echo The next command will fail -The next command will fail -+ false - diff --git a/tests.build/build-chunk-writes-log.script b/tests.build/build-chunk-writes-log.script deleted file mode 100755 index e636924e..00000000 --- a/tests.build/build-chunk-writes-log.script +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2011-2013,2015 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. - - -## Build log should be saved when a chunk is built. - -set -eu - -"$SRCDIR/scripts/test-morph" build-morphology \ - test:morphs-repo master hello-system - -SOURCES="$DATADIR/cached-sources" -find "$DATADIR/cache/artifacts" -name '*.chunk.*' | - sed 's|\.chunk\..*||' | sort -u >"$SOURCES" - -found=false -# list of sources in cache is not piped because while loop changes variable -while read source; do - [ -e "$source".build-log ] || continue - found=true - break -done <"$SOURCES" -"$found" - diff --git a/tests.build/build-stratum-with-submodules.script b/tests.build/build-stratum-with-submodules.script deleted file mode 100755 index b3073af1..00000000 --- a/tests.build/build-stratum-with-submodules.script +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2011-2015 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. - - -## Test build a stratum that uses a chunk which needs a submodule. - -set -eu - -# tests/setup creates a chunk-repo. We now create a new chunk, which -# uses chunk-repo as a submodule. - -parent="$DATADIR/parent-repo" -mkdir "$parent" - -echo "No real content here" > "$parent/dummy" - -"$SRCDIR/scripts/run-git-in" "$parent" init --quiet -"$SRCDIR/scripts/run-git-in" "$parent" add . -"$SRCDIR/scripts/run-git-in" "$parent" \ - submodule --quiet add -b farrokh "$DATADIR/chunk-repo" le-sub > /dev/null -"$SRCDIR/scripts/run-git-in" "$parent" commit --quiet -m initial - - -# Modify the stratum to refer to the parent, not the submodule. - -morphs="$DATADIR/morphs-repo" -cat <<EOF > "$morphs/parent.morph" -name: parent -kind: chunk -build-system: manual -build-commands: - - test -f le-sub/README -EOF - -cat <<EOF > "$morphs/hello-stratum.morph" -name: hello-stratum -kind: stratum -chunks: - - name: parent - morph: parent.morph - repo: test:parent-repo - ref: master - morph: parent.morph - build-depends: [] - build-mode: test -EOF -"$SRCDIR/scripts/run-git-in" "$morphs" add hello-stratum.morph parent.morph -"$SRCDIR/scripts/run-git-in" "$morphs" commit --quiet -m 'foo' - - -# Now build and verify we got a stratum. - -"$SRCDIR/scripts/test-morph" build-morphology \ - test:morphs-repo master hello-system - -system=$(ls "$DATADIR/cache/artifacts/"*hello-system-rootfs) -tar tf $system | LC_ALL=C sort | sed '/^\.\/./s:^\./::' | grep -v '^baserock/' - diff --git a/tests.build/build-stratum-with-submodules.stdout b/tests.build/build-stratum-with-submodules.stdout deleted file mode 100644 index d4d03e13..00000000 --- a/tests.build/build-stratum-with-submodules.stdout +++ /dev/null @@ -1,3 +0,0 @@ -./ -etc/ -etc/os-release diff --git a/tests.build/build-system.script b/tests.build/build-system.script deleted file mode 100755 index 0180939a..00000000 --- a/tests.build/build-system.script +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2011-2015 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. - - -## Test building a simple system. - -set -eu - -"$SRCDIR/scripts/test-morph" build-morphology \ - test:morphs-repo master hello-system - -system=$(ls "$DATADIR/cache/artifacts/"*hello-system-rootfs) -tar tf $system | LC_ALL=C sort | sed '/^\.\/./s:^\./::' | grep -v '^baserock/' diff --git a/tests.build/build-system.stdout b/tests.build/build-system.stdout deleted file mode 100644 index 4d0fac2f..00000000 --- a/tests.build/build-system.stdout +++ /dev/null @@ -1,5 +0,0 @@ -./ -bin/ -bin/hello -etc/ -etc/os-release diff --git a/tests.build/cross-bootstrap-only-to-supported-archs.exit b/tests.build/cross-bootstrap-only-to-supported-archs.exit deleted file mode 100644 index d00491fd..00000000 --- a/tests.build/cross-bootstrap-only-to-supported-archs.exit +++ /dev/null @@ -1 +0,0 @@ -1 diff --git a/tests.build/cross-bootstrap-only-to-supported-archs.script b/tests.build/cross-bootstrap-only-to-supported-archs.script deleted file mode 100755 index 3b19b910..00000000 --- a/tests.build/cross-bootstrap-only-to-supported-archs.script +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2013,2015 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. - - -# Test that "morph cross-bootstrap" works only for the architectures that -# Morph explicitly supports. - -set -eu - -"$SRCDIR/scripts/test-morph" cross-bootstrap \ - unknown-archicture test:morphs-repo master hello-system -v diff --git a/tests.build/cross-bootstrap-only-to-supported-archs.stderr b/tests.build/cross-bootstrap-only-to-supported-archs.stderr deleted file mode 100644 index 61c0fe0d..00000000 --- a/tests.build/cross-bootstrap-only-to-supported-archs.stderr +++ /dev/null @@ -1 +0,0 @@ -ERROR: Unsupported architecture "unknown-archicture" diff --git a/tests.build/cross-bootstrap.script b/tests.build/cross-bootstrap.script deleted file mode 100755 index 245c2a13..00000000 --- a/tests.build/cross-bootstrap.script +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash -# -# Copyright (C) 2013,2015 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. - - -# Test "morph cross-bootstrap", up to the point of the tarball it generates -# for the target - -set -eu - -"$SRCDIR/tests.build/setup-build-essential" - -"$SRCDIR/scripts/test-morph" cross-bootstrap \ - $("$SRCDIR/scripts/test-morph" print-architecture) \ - test:morphs-repo master hello-system diff --git a/tests.build/prefix.script b/tests.build/prefix.script deleted file mode 100755 index 0ff077b8..00000000 --- a/tests.build/prefix.script +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2013-2015 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. - - -## Honour 'prefix' attribute for chunks within stratum morphs - -set -eu - -cd "$DATADIR/morphs-repo" -git checkout -q master - -# Create two chunks which print out PATH and PREFIX from their environment. -cat <<\EOF > xyzzy.morph -name: xyzzy -kind: chunk -configure-commands: - - "echo First chunk: prefix $PREFIX" -EOF - -cat <<\EOF > plugh.morph -name: plugh -kind: chunk -configure-commands: - - "echo Second chunk: prefix $PREFIX" - - | - set +x - echo Path: $(echo $PATH | grep -o '/plover') -EOF - -git add xyzzy.morph -git add plugh.morph - -# Change stratum to include those two chunks, and use a custom install prefix -cat <<EOF > hello-stratum.morph -name: hello-stratum -kind: stratum -chunks: - - name: xyzzy - morph: xyzzy.morph - repo: test:chunk-repo - ref: master - morph: xyzzy.morph - build-depends: [] - build-mode: test - prefix: /plover - - name: plugh - morph: plugh.morph - repo: test:chunk-repo - ref: master - morph: plugh.morph - build-mode: test - build-depends: - - xyzzy -EOF -git add hello-stratum.morph -git commit -q -m "Update build definitions" - -"$SRCDIR/scripts/test-morph" build-morphology \ - test:morphs-repo master hello-system - -cd "$DATADIR/cache/artifacts" -first_chunk=$(ls -1 *.chunk.xyzzy* | head -n1 | cut -c -64) -second_chunk=$(ls -1 *.chunk.plugh* | head -n1 | cut -c -64) -cat $first_chunk.build-log $second_chunk.build-log diff --git a/tests.build/prefix.stdout b/tests.build/prefix.stdout deleted file mode 100644 index cb953a4e..00000000 --- a/tests.build/prefix.stdout +++ /dev/null @@ -1,8 +0,0 @@ -### CONFIGURE-COMMANDS ### -+ echo First chunk: prefix /plover -First chunk: prefix /plover -### CONFIGURE-COMMANDS ### -+ echo Second chunk: prefix /usr -Second chunk: prefix /usr -+ set +x -Path: /plover diff --git a/tests.build/rebuild-cached-stratum.script b/tests.build/rebuild-cached-stratum.script deleted file mode 100755 index bc1b83fd..00000000 --- a/tests.build/rebuild-cached-stratum.script +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2011-2015 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. - - -## Does a cached stratum get rebuilt if its chunk changes? -## This tests a bug that is currently in morph, where the stratum does -## not get rebuilt in that case. Later on, the test will guard against -## regressions. - -set -eu - -cache="$DATADIR/cache/artifacts" - -# Make a branch in the chunk repo where we can make our own modifications. -(cd "$DATADIR/chunk-repo" && - git checkout --quiet farrokh && - git checkout --quiet -b rebuild-cached-stratum) - -# Make a branch in the morphs repo and modify the stratum to refer to -# the new chunk branch. -(cd "$DATADIR/morphs-repo" && - git checkout --quiet -b rebuild-cached-stratum && - sed -i 's/farrokh/rebuild-cached-stratum/' hello-stratum.morph && - sed -i 's/master/rebuild-cached-stratum/' hello-system.morph && - git commit --quiet -m "rebuild-cached-stratum" -a) - -# Build the first time. -"$SRCDIR/scripts/test-morph" build-morphology \ - test:morphs-repo rebuild-cached-stratum hello-system -echo "first build:" -(cd "$cache" && ls *.chunk.* *hello-stratum* | sed 's/^[^.]*\./ /' | - LC_ALL=C sort -u) - -# Change the chunk. -(cd "$DATADIR/chunk-repo" && - echo >> hello.c && - git commit --quiet -am change) - -# Rebuild. -"$SRCDIR/scripts/test-morph" build-morphology \ - test:morphs-repo rebuild-cached-stratum hello-system -echo "second build:" -(cd "$cache" && ls *.chunk.* *hello-stratum* | sed 's/^[^.]*\./ /' | - LC_ALL=C sort -u) - diff --git a/tests.build/rebuild-cached-stratum.stdout b/tests.build/rebuild-cached-stratum.stdout deleted file mode 100644 index 4672e7f2..00000000 --- a/tests.build/rebuild-cached-stratum.stdout +++ /dev/null @@ -1,8 +0,0 @@ -first build: - chunk.hello-chunk - stratum.hello-stratum - stratum.hello-stratum.meta -second build: - chunk.hello-chunk - stratum.hello-stratum - stratum.hello-stratum.meta diff --git a/tests.build/setup b/tests.build/setup deleted file mode 100755 index ca60d426..00000000 --- a/tests.build/setup +++ /dev/null @@ -1,138 +0,0 @@ -#!/bin/sh -# -# Create git repositories for tests. The chunk repository will contain a -# simple "hello, world" C program, and two branches ("master", "farrokh"), -# with the master branch containing just a README. The two branches are there -# so that we can test building a branch that hasn't been checked out. -# The branches are different so that we know that if the wrong branch -# is uses, the build will fail. -# -# The stratum repository contains a single branch, "master", with a -# stratum and a system morphology that include the chunk above. -# -# Copyright (C) 2011-2015 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. - - -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 - -git commit --quiet -m "add a hello world program" -git checkout --quiet master - - - -# Create morph repository. - -morphsrepo="$DATADIR/morphs-repo" -mkdir "$morphsrepo" -cd "$morphsrepo" -git init --quiet - -echo 'version: 7' > VERSION -git add VERSION - -cat <<'EOF' > DEFAULTS -# This is a deliberately minimal DEFAULTS file. - -# There are no splitting rules defined, because it's important that Morph -# still works correctly when the user didn't define any. - -build-systems: - autotools: - configure-commands: - - ./configure - build-commands: - - make - install-commands: - - make DESTDIR="$DESTDIR" install -EOF -git add DEFAULTS - -cat <<EOF > hello.morph -name: hello-chunk -kind: chunk -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 - -cat <<EOF > hello-stratum.morph -name: hello-stratum -kind: stratum -chunks: - - name: hello - morph: hello.morph - repo: test:chunk-repo - ref: farrokh - morph: hello.morph - build-mode: test - build-depends: [] -EOF -git add hello-stratum.morph - -cat <<EOF > hello-system.morph -name: hello-system -kind: system -arch: $("$SRCDIR/scripts/test-morph" print-architecture) -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] -repo-alias = test=file://$DATADIR/%s#file://$DATADIR/%s -cachedir = $DATADIR/cache -log = $DATADIR/morph.log -tempdir = $TMPDIR -no-distcc = true -quiet = true -EOF - diff --git a/tests.build/setup-build-essential b/tests.build/setup-build-essential deleted file mode 100755 index 28847d76..00000000 --- a/tests.build/setup-build-essential +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2013-2015 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. - -# Set up a stratum which resembles Baserock's 'build-essential' slightly. Used -# for testing 'morph cross-bootstrap' and the 'bootstrap' build mode. - -# Add a mock compiler chunk. -mkdir -p "$DATADIR/cc-repo" -cd "$DATADIR/cc-repo" - -cat <<EOF > "morph-test-cc" -#!/bin/sh -echo "I'm a compiler!" -EOF -chmod +x morph-test-cc - -git init -q -git add morph-test-cc -git commit -q -m "Create compiler chunk" - -cd "$DATADIR/morphs-repo" - -cat <<EOF > "stage1-cc.morph" -name: stage1-cc -kind: chunk -install-commands: - - install -d "\$DESTDIR\$PREFIX/bin" - - install -m 755 morph-test-cc "\$DESTDIR\$PREFIX/bin/morph-test-cc" -EOF - -cat <<EOF > "cc.morph" -name: cc -kind: chunk -configure-commands: - - [ -e ../tools/bin/morph-test-cc ] -install-commands: - - install -d "\$DESTDIR\$PREFIX/bin" - - install -m 755 morph-test-cc "\$DESTDIR\$PREFIX/bin/morph-test-cc" -EOF - -git add cc.morph stage1-cc.morph -git commit -q -m "Add build instructions for mock compiler." - -# Require 'cc' in hello-chunk. We should have the second version available -# but *not* the first one. -cat <<EOF > "hello.morph" -name: hello -kind: chunk -configure-commands: - - [ ! -e ../tools/bin/morph-test-cc ] - - [ -e ../usr/bin/morph-test-cc ] -build-commands: - - ../usr/bin/morph-test-cc > hello -install-commands: - - install -d "\$DESTDIR\$PREFIX/bin" - - install hello "\$DESTDIR\$PREFIX/bin/hello" -EOF -git add hello.morph stage1-cc.morph cc.morph - -# Add 'build-essential' stratum and make hello-stratum depend upon it. Only -# the *second* 'cc' chunk should make it into the build-essential stratum -# artifact, and neither should make it into the system. - -cat <<EOF > "build-essential.morph" -name: build-essential -kind: stratum -chunks: - - name: stage1-cc - morph: stage1-cc.morph - repo: test:cc-repo - ref: master - morph: stage1-cc.morph - build-depends: [] - build-mode: bootstrap - prefix: /tools - - name: cc - morph: cc.morph - repo: test:cc-repo - ref: master - morph: cc.morph - build-depends: - - stage1-cc - build-mode: test -EOF - -cat <<EOF > "hello-stratum.morph" -name: hello-stratum -kind: stratum -build-depends: - - morph: build-essential -chunks: - - name: hello - morph: hello.morph - repo: test:chunk-repo - ref: farrokh - morph: hello.morph - build-depends: [] - build-mode: test -EOF - -git add build-essential.morph hello-stratum.morph hello-system.morph -git commit -q -m "Add fake build-essential stratum" diff --git a/tests.build/uses-tempdir.script b/tests.build/uses-tempdir.script deleted file mode 100755 index aa4563f8..00000000 --- a/tests.build/uses-tempdir.script +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2011-2013,2015 Codethink Limited -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see <http://www.gnu.org/licenses/>. - - -## Test that temporary directories are created in the dir specified -## by --tempdir rather than specified in the environment by TMPDIR. - -set -eu -export TMPDIR -TMPDIR="$DATADIR"/unwritable-tmp -install -m 000 -d "$TMPDIR" -mkdir "$DATADIR"/tmp -"$SRCDIR/scripts/test-morph" build-morphology --tempdir "$DATADIR"/tmp \ - test:morphs-repo master hello-system |