diff options
author | Tristan van Berkom <tristan@codethink.co.uk> | 2020-10-01 16:59:47 +0900 |
---|---|---|
committer | Tristan van Berkom <tristan@codethink.co.uk> | 2020-10-06 14:48:26 +0900 |
commit | bfdf22986d57cd8349154cf52f0f9224e8a2feba (patch) | |
tree | 0186bec419eb998def5844625597c53c4afcd454 /tests | |
parent | 4b2e56f5d374bce97270c68f1b3d7fe8922dee1e (diff) | |
download | buildstream-bfdf22986d57cd8349154cf52f0f9224e8a2feba.tar.gz |
tests/format/junctions.py: Test that links work for override keys in nested projects
Diffstat (limited to 'tests')
3 files changed, 18 insertions, 0 deletions
diff --git a/tests/format/junctions.py b/tests/format/junctions.py index 600dc4ce1..c4536bff7 100644 --- a/tests/format/junctions.py +++ b/tests/format/junctions.py @@ -404,6 +404,8 @@ def test_full_path_not_found(cli, tmpdir, datafiles, target, provenance): ("target-overridden-subsubproject-link.bst", "subsubsub.txt"), # Test that we can override a subproject junction of a subproject's subproject ("target-overridden-subsubsubproject.bst", "surprise.txt"), + # Test that we can override a subproject junction of a subproject's subproject, which using links to address them + ("target-overridden-subsubsubproject-link.bst", "surprise.txt"), # Test that we can override a subproject junction with a deep subproject path ("target-overridden-with-deepsubproject.bst", "deepsurprise.txt"), ], @@ -411,6 +413,7 @@ def test_full_path_not_found(cli, tmpdir, datafiles, target, provenance): "override-subproject", "override-subproject-link", "override-subsubproject", + "override-subsubproject-link", "override-subproject-with-subsubproject", ], ) diff --git a/tests/format/junctions/overrides/subproject-with-deep-override-link.bst b/tests/format/junctions/overrides/subproject-with-deep-override-link.bst new file mode 100644 index 000000000..5e7f0254a --- /dev/null +++ b/tests/format/junctions/overrides/subproject-with-deep-override-link.bst @@ -0,0 +1,8 @@ +kind: junction +sources: +- kind: local + path: subproject + +config: + overrides: + subsubproject-link.bst:subsubsubproject.bst: overridden-subsubsubproject.bst diff --git a/tests/format/junctions/overrides/target-overridden-subsubsubproject-link.bst b/tests/format/junctions/overrides/target-overridden-subsubsubproject-link.bst new file mode 100644 index 000000000..580632f0c --- /dev/null +++ b/tests/format/junctions/overrides/target-overridden-subsubsubproject-link.bst @@ -0,0 +1,7 @@ +kind: stack + +# Similar test as target-overridden-subsubsubproject.bst, except that +# we use links in the addressing of overrides. +# +depends: +- subproject-with-deep-override-link.bst:subsubproject.bst:subsubsubproject.bst:target.bst |