From 172c7404b00016cf7358af77b45b9d2a946af301 Mon Sep 17 00:00:00 2001 From: Tristan van Berkom Date: Sat, 12 Sep 2020 17:50:50 +0900 Subject: tests/frontend/overlaps.py: Test multiple calls to Element.stage_dependency_artifacts() This patch adds a new test plugin which implements Element.configure_dependencies() in order to offer better flexibility for testing overlaps. Newly added tests: * Test overlap warnings and errors when staging elsewhere than in the sandbox root. * Test unstaged files failure modes when staging elsewhere than in the sandbox root. * Test various overlap behaviors of OverlapAction, when different calls to Element.stage_dependency_artifacts() cause overlaps to occur after staging files into separate directories. --- tests/frontend/overlaps/relocated-unstaged.bst | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/frontend/overlaps/relocated-unstaged.bst (limited to 'tests/frontend/overlaps/relocated-unstaged.bst') diff --git a/tests/frontend/overlaps/relocated-unstaged.bst b/tests/frontend/overlaps/relocated-unstaged.bst new file mode 100644 index 000000000..65592a3dc --- /dev/null +++ b/tests/frontend/overlaps/relocated-unstaged.bst @@ -0,0 +1,9 @@ +kind: overlap + +build-depends: +- filename: directory-file.bst + config: + location: /opt + +config: + action: warning -- cgit v1.2.1