This is an automated email from the ASF dual-hosted git repository. not-in-ldap pushed a commit to branch jonathan/workspace-fragment-multi-project in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit b1a8349e40c43da20c92d0a9f137b215fb732789 Author: Jonathan Maw <[email protected]> AuthorDate: Thu Jan 3 18:48:31 2019 +0000 test: start adding tests for multiple elements having the same workspace --- tests/frontend/project/elements/same-repo-bin.bst | 9 +++++++++ tests/frontend/project/elements/same-repo-dev.bst | 9 +++++++++ tests/frontend/workspace.py | 6 ++++++ 3 files changed, 24 insertions(+) diff --git a/tests/frontend/project/elements/same-repo-bin.bst b/tests/frontend/project/elements/same-repo-bin.bst new file mode 100644 index 0000000..77e1ffc --- /dev/null +++ b/tests/frontend/project/elements/same-repo-bin.bst @@ -0,0 +1,9 @@ +kind: manual +variables: + command-subdir: bin-files +config: + install-commands: + - "cp %{build-root}/usr/bin/hello %{install-root}" +sources: +- kind: local + path: files diff --git a/tests/frontend/project/elements/same-repo-dev.bst b/tests/frontend/project/elements/same-repo-dev.bst new file mode 100644 index 0000000..e6b3f87 --- /dev/null +++ b/tests/frontend/project/elements/same-repo-dev.bst @@ -0,0 +1,9 @@ +kind: manual +variables: + command-subdir: dev-files +config: + install-commands: + - "cp %{build-root}/usr/include/pony.h %{install-root}" +sources: +- kind: local + path: files diff --git a/tests/frontend/workspace.py b/tests/frontend/workspace.py index b992538..10fd68c 100644 --- a/tests/frontend/workspace.py +++ b/tests/frontend/workspace.py @@ -1371,3 +1371,9 @@ def test_multiple_projects(cli, datafiles, tmpdir_factory, close_from_external): # Check that the workspace no longer works result = cli.run(project=alpha_project, args=['-C', workspace_dir, 'show', '--format', '%{name}']) result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.MISSING_PROJECT_CONF) + + [email protected](DATA_DIR) +def test_multi_element_multiple_projects(cli, datafiles, tmpdir_factory): + # Test that behaviour is consistent when two elements that use the same + # repository as a source open the same workspace
