diff options
author | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-04-05 17:06:56 +0100 |
---|---|---|
committer | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-04-11 13:27:31 +0100 |
commit | 8d00200d5aa2011bc91ccc688ee93caf5b6980f6 (patch) | |
tree | cfd80a2cc6d6772888c8aabf93d53329e0f92b01 /tests | |
parent | c7c894ee0721b1076fcea25506d7b84772cc5704 (diff) | |
download | mlia-8d00200d5aa2011bc91ccc688ee93caf5b6980f6.tar.gz |
MLIA-825 Make backend installation more generic
Use the backend registry to manage installation routines for different
backends as well. This makes the process more generic and allows us
to move towards plug & play for backends (i.e. there should be no code
changes needed in the general MLIA code to add/support new backends).
Change-Id: Ib7c772ec52b2f4d857c2c9871e44dfff97e9d970
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_backend_config.py | 5 | ||||
-rw-r--r-- | tests/test_target_config.py | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_backend_config.py b/tests/test_backend_config.py index 700534f..bdea03e 100644 --- a/tests/test_backend_config.py +++ b/tests/test_backend_config.py @@ -20,7 +20,10 @@ def test_system() -> None: def test_backend_config() -> None: """Test the class 'BackendConfiguration'.""" cfg = BackendConfiguration( - [AdviceCategory.COMPATIBILITY], [System.CURRENT], BackendType.CUSTOM + [AdviceCategory.COMPATIBILITY], + [System.CURRENT], + BackendType.CUSTOM, + None, ) assert cfg.supported_advice == [AdviceCategory.COMPATIBILITY] assert cfg.supported_systems == [System.CURRENT] diff --git a/tests/test_target_config.py b/tests/test_target_config.py index 368d394..8055af0 100644 --- a/tests/test_target_config.py +++ b/tests/test_target_config.py @@ -112,6 +112,7 @@ def test_target_info( [AdviceCategory.COMPATIBILITY], [System.CURRENT], BackendType.BUILTIN, + None, ), ) monkeypatch.setattr("mlia.target.config.backend_registry", backend_registry) |