diff options
author | Tristan van Berkom <tristan@codethink.co.uk> | 2020-09-26 17:10:15 +0900 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2020-09-28 09:26:09 +0000 |
commit | 295d65b9c753d378c97cafd132275016b9cea3f5 (patch) | |
tree | 98c814eef73ff9e78b70cc9067dda3044a2d9cb1 /tests/format/dependencies.py | |
parent | 14f9e473406d64c9b176412bd965a212553ca809 (diff) | |
download | buildstream-295d65b9c753d378c97cafd132275016b9cea3f5.tar.gz |
tests/format/dependencies.py: Testing shorthand dependency configurations
Diffstat (limited to 'tests/format/dependencies.py')
-rw-r--r-- | tests/format/dependencies.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/format/dependencies.py b/tests/format/dependencies.py index 12eb19d3a..0e2d4a1a7 100644 --- a/tests/format/dependencies.py +++ b/tests/format/dependencies.py @@ -281,3 +281,16 @@ def test_config_runtime_error(cli, datafiles): # result = cli.run(project=project, args=["show", "runtime-error.bst"]) result.assert_main_error(ErrorDomain.LOAD, LoadErrorReason.INVALID_DATA) + + +@pytest.mark.datafiles(DATA_DIR) +@pytest.mark.parametrize( + "target,number", [("shorthand-config.bst", 2), ("shorthand-junction.bst", 2),], ids=["config", "junction"], +) +def test_shorthand(cli, datafiles, target, number): + project = os.path.join(str(datafiles), "dependencies3") + + result = cli.run(project=project, args=["show", target]) + result.assert_success() + + assert "TEST PLUGIN FOUND {} ENABLED DEPENDENCIES".format(number) in result.stderr |