From 90f292c7f5c1bad6c28664b0b32ca85d7ecfe04b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 8 Mar 2018 08:59:11 +0100 Subject: [PATCH] tests/mmd_resolver: add test for multiple runtime requires Signed-off-by: Igor Gnatenko --- tests/test_mmd_resolver.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/tests/test_mmd_resolver.py b/tests/test_mmd_resolver.py index 988bb30e..7f79de86 100644 --- a/tests/test_mmd_resolver.py +++ b/tests/test_mmd_resolver.py @@ -124,10 +124,17 @@ class TestMMDResolver: ]), ([{"qt": [], "platform": ["f28"]}, {"gtk": [], "platform": ["-f28"]}], [ - [["qt:4:0:c8:x86_64", "platform:f28:0:c0:x86_64"], - ["qt:5:0:c8:x86_64", "platform:f28:0:c0:x86_64"]], - [["gtk:3:0:c9:x86_64", "platform:f29:0:c0:x86_64"], - ["gtk:4:0:c9:x86_64", "platform:f29:0:c0:x86_64"]], + [["qt:4:0:c8:x86_64", "platform:f28:0:c0:x86_64"], + ["qt:5:0:c8:x86_64", "platform:f28:0:c0:x86_64"]], + [["gtk:3:0:c9:x86_64", "platform:f29:0:c0:x86_64"], + ["gtk:4:0:c9:x86_64", "platform:f29:0:c0:x86_64"]], + ]), + ({"mess": []}, [ + [["mess:1:0:c0:x86_64", "gtk:3:0:c8:x86_64", "platform:f28:0:c0:x86_64"]], + ]), + ({"mess": [], "platform": []}, [ + [["mess:1:0:c0:x86_64", "gtk:3:0:c8:x86_64", "platform:f28:0:c0:x86_64"], + ["mess:1:0:c0:x86_64", "gtk:4:0:c9:x86_64", "platform:f29:0:c0:x86_64"]], ]), ) ) @@ -143,6 +150,8 @@ class TestMMDResolver: ("qt:4:0:c9", {"platform": ["f29"]}), ("qt:5:0:c8", {"platform": ["f28"]}), ("qt:5:0:c9", {"platform": ["f29"]}), + ("mess:1:0:c0", [{"gtk": ["3"], "platform": ["f28"]}, + {"gtk": ["4"], "platform": ["-f28"]}]), ) for n, req in modules: self.mmd_resolver.add_modules(self._make_mmd(n, req))