diff options
author | Dmitrii Agibov <dmitrii.agibov@arm.com> | 2023-01-27 09:12:50 +0000 |
---|---|---|
committer | Benjamin Klimczak <benjamin.klimczak@arm.com> | 2023-02-08 15:25:11 +0000 |
commit | 3e3dcb9bd5abb88adcd85b4f89e8a81e7f6fa293 (patch) | |
tree | 020eee6abef093113de5b49c135c915c37173843 /tests/test_backend_registry.py | |
parent | 836efd40317a397761ec8b66e3f4398faac43ad0 (diff) | |
download | mlia-3e3dcb9bd5abb88adcd85b4f89e8a81e7f6fa293.tar.gz |
MLIA-595 Remove old backend configuration mechanism
- Remove old backend configuration code
- Install backends into directory ~/.mlia
- Rename targets/backends in registry to make it consistent
across codebase.
Change-Id: I9c8b012fe863280f1c692940c0dcad3ef638aaae
Diffstat (limited to 'tests/test_backend_registry.py')
-rw-r--r-- | tests/test_backend_registry.py | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/tests/test_backend_registry.py b/tests/test_backend_registry.py index 703e699..e3e2da2 100644 --- a/tests/test_backend_registry.py +++ b/tests/test_backend_registry.py @@ -9,6 +9,8 @@ import pytest from mlia.backend.config import BackendType from mlia.backend.config import System +from mlia.backend.registry import get_supported_backends +from mlia.backend.registry import get_supported_systems from mlia.backend.registry import registry from mlia.core.common import AdviceCategory @@ -35,7 +37,7 @@ from mlia.core.common import AdviceCategory BackendType.CUSTOM, ), ( - "TOSA-Checker", + "tosa-checker", [AdviceCategory.COMPATIBILITY], [System.LINUX_AMD64], BackendType.WHEEL, @@ -79,3 +81,19 @@ def test_backend_registry( cfg.supported_systems ), f"Supported systems differs: {advices} != {cfg.supported_advice}" assert cfg.type == type_ + + +def test_get_supported_backends() -> None: + """Test function get_supported_backends.""" + assert get_supported_backends() == [ + "ArmNNTFLiteDelegate", + "Corstone-300", + "Corstone-310", + "Vela", + "tosa-checker", + ] + + +def test_get_supported_systems() -> None: + """Test function get_supported_systems.""" + assert get_supported_systems() |