diff options
author | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2018-10-09 14:32:05 +0100 |
---|---|---|
committer | Jonathan Maw <jonathan.maw@codethink.co.uk> | 2018-10-30 15:42:05 +0000 |
commit | 9b89564f0ac8e8278207358ec3aa95c61ed19d96 (patch) | |
tree | 1606d17d6f9bbc21dd639cbb2de7031c978c9ed7 /tests/integration/project | |
parent | 4bc717730d54c00c4242b0e5b1e7e8ca65b4f832 (diff) | |
download | buildstream-9b89564f0ac8e8278207358ec3aa95c61ed19d96.tar.gz |
tests: Add test that cached build trees are staged in build shells
This is related to #539
Diffstat (limited to 'tests/integration/project')
-rw-r--r-- | tests/integration/project/elements/build-shell/buildtree-fail.bst | 13 | ||||
-rw-r--r-- | tests/integration/project/elements/build-shell/buildtree.bst | 11 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/integration/project/elements/build-shell/buildtree-fail.bst b/tests/integration/project/elements/build-shell/buildtree-fail.bst new file mode 100644 index 000000000..a3b515a9a --- /dev/null +++ b/tests/integration/project/elements/build-shell/buildtree-fail.bst @@ -0,0 +1,13 @@ +kind: manual +description: | + Puts a file in the build tree so that build tree caching and staging can be tested, + then deliberately failing to build so we can check the output. + +depends: + - filename: base.bst + type: build + +config: + build-commands: + - "echo 'Hi' > %{build-root}/test" + - "false" diff --git a/tests/integration/project/elements/build-shell/buildtree.bst b/tests/integration/project/elements/build-shell/buildtree.bst new file mode 100644 index 000000000..d5cf256be --- /dev/null +++ b/tests/integration/project/elements/build-shell/buildtree.bst @@ -0,0 +1,11 @@ +kind: manual +description: | + Puts a file in the build tree so that build tree caching and staging can be tested. + +depends: + - filename: base.bst + type: build + +config: + build-commands: + - "echo 'Hi' > %{build-root}/test" |