diff options
author | Tristan Maat <tristan.maat@codethink.co.uk> | 2018-03-12 13:12:30 +0100 |
---|---|---|
committer | Tristan Maat <tristan.maat@codethink.co.uk> | 2018-03-27 14:32:55 +0100 |
commit | a7ae93ce305c581d4129b91108c48b3624866d01 (patch) | |
tree | 5d2ad493d4ea487a1e5cee89f994a1e5ee530163 /tests/integration/project | |
parent | 989bb3fe000dc8c843b7a8293f9cf0a3293b8d39 (diff) | |
download | buildstream-a7ae93ce305c581d4129b91108c48b3624866d01.tar.gz |
integration/workspace.py: Add updated dependency tests
Diffstat (limited to 'tests/integration/project')
6 files changed, 82 insertions, 0 deletions
diff --git a/tests/integration/project/elements/workspace/workspace-updated-dependency-failed.bst b/tests/integration/project/elements/workspace/workspace-updated-dependency-failed.bst new file mode 100644 index 000000000..f05907cf5 --- /dev/null +++ b/tests/integration/project/elements/workspace/workspace-updated-dependency-failed.bst @@ -0,0 +1,17 @@ +kind: manual + +depends: + - base.bst + - workspace/dependency.bst + +sources: + - kind: local + path: files/workspace-updated-dependency-failed/ + +config: + build-commands: + - make + - chmod +x test.sh + - mkdir -p %{install-root}/usr/bin/ + - cp test.sh %{install-root}/usr/bin/ + - ls %{install-root} diff --git a/tests/integration/project/elements/workspace/workspace-updated-dependency-nested.bst b/tests/integration/project/elements/workspace/workspace-updated-dependency-nested.bst new file mode 100644 index 000000000..6ee770830 --- /dev/null +++ b/tests/integration/project/elements/workspace/workspace-updated-dependency-nested.bst @@ -0,0 +1,17 @@ +kind: manual + +depends: + - base.bst + - workspace/dependency.bst + +sources: + - kind: local + path: files/workspace-updated-dependency-nested/ + +config: + build-commands: + - make + - chmod +x test.sh + - mkdir -p %{install-root}/usr/bin/ + - cp test.sh %{install-root}/usr/bin/ + - ls %{install-root} diff --git a/tests/integration/project/elements/workspace/workspace-updated-dependency.bst b/tests/integration/project/elements/workspace/workspace-updated-dependency.bst new file mode 100644 index 000000000..0dcaacfbe --- /dev/null +++ b/tests/integration/project/elements/workspace/workspace-updated-dependency.bst @@ -0,0 +1,17 @@ +kind: manual + +depends: + - base.bst + - workspace/dependency.bst + +sources: + - kind: local + path: files/workspace-updated-dependency/ + +config: + build-commands: + - make + - chmod +x test.sh + - mkdir -p %{install-root}/usr/bin/ + - cp test.sh %{install-root}/usr/bin/ + - ls %{install-root} diff --git a/tests/integration/project/files/workspace-updated-dependency-failed/Makefile b/tests/integration/project/files/workspace-updated-dependency-failed/Makefile new file mode 100644 index 000000000..c7229d2d6 --- /dev/null +++ b/tests/integration/project/files/workspace-updated-dependency-failed/Makefile @@ -0,0 +1,13 @@ +all: test.sh + +hello: /etc/test/hello.txt + cp $^ $@ + +brazil: /etc/test/brazil.txt + cp $^ $@ + +test.sh: hello brazil + echo "#!/usr/bin/env sh" > $@ + echo -n "echo '" >> $@ + cat $^ >> $@ + echo -n "'" >> $@ diff --git a/tests/integration/project/files/workspace-updated-dependency-nested/Makefile b/tests/integration/project/files/workspace-updated-dependency-nested/Makefile new file mode 100644 index 000000000..5248a7043 --- /dev/null +++ b/tests/integration/project/files/workspace-updated-dependency-nested/Makefile @@ -0,0 +1,13 @@ +all: test.sh + +hello: /etc/test/hello.txt + cp $^ $@ + +tests: /etc/test/tests/*.txt + cp $^ $@ + +test.sh: hello tests + echo "#!/usr/bin/env sh" > $@ + echo -n "echo '" >> $@ + cat $^ >> $@ + echo -n "'" >> $@ diff --git a/tests/integration/project/files/workspace-updated-dependency/Makefile b/tests/integration/project/files/workspace-updated-dependency/Makefile new file mode 100644 index 000000000..935ef1854 --- /dev/null +++ b/tests/integration/project/files/workspace-updated-dependency/Makefile @@ -0,0 +1,5 @@ +test.sh: /etc/test/hello.txt + echo "#!/usr/bin/env sh" > $@ + echo -n "echo '" >> $@ + cat $^ >> $@ + echo -n "'" >> $@ |