From a053f1ae0552c7cb4dd0401582d87c14ad66124b Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Wed, 28 Aug 2024 12:44:23 +0000 Subject: [PATCH] twister: add simics as supported simulator Enable simics as a support simulation platform. Signed-off-by: Anas Nashif --- scripts/pylib/twister/twisterlib/handlers.py | 2 +- scripts/pylib/twister/twisterlib/testinstance.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/pylib/twister/twisterlib/handlers.py b/scripts/pylib/twister/twisterlib/handlers.py index 84ed9a1db2e..26472a795f0 100755 --- a/scripts/pylib/twister/twisterlib/handlers.py +++ b/scripts/pylib/twister/twisterlib/handlers.py @@ -48,7 +48,7 @@ except ImportError as capture_error: logger = logging.getLogger('twister') logger.setLevel(logging.DEBUG) -SUPPORTED_SIMS = ["mdb-nsim", "nsim", "renode", "qemu", "tsim", "armfvp", "xt-sim", "native", "custom"] +SUPPORTED_SIMS = ["mdb-nsim", "nsim", "renode", "qemu", "tsim", "armfvp", "xt-sim", "native", "custom", "simics"] SUPPORTED_SIMS_IN_PYTEST = ['native', 'qemu'] diff --git a/scripts/pylib/twister/twisterlib/testinstance.py b/scripts/pylib/twister/twisterlib/testinstance.py index 590785ea773..16586a7a20e 100644 --- a/scripts/pylib/twister/twisterlib/testinstance.py +++ b/scripts/pylib/twister/twisterlib/testinstance.py @@ -271,7 +271,7 @@ class TestInstance: if self.testsuite.harness == 'pytest': target_ready = bool(filter == 'runnable' or self.platform.simulation in SUPPORTED_SIMS_IN_PYTEST) - SUPPORTED_SIMS_WITH_EXEC = ['nsim', 'mdb-nsim', 'renode', 'tsim', 'native'] + SUPPORTED_SIMS_WITH_EXEC = ['nsim', 'mdb-nsim', 'renode', 'tsim', 'native', 'simics'] if filter != 'runnable' and \ self.platform.simulation in SUPPORTED_SIMS_WITH_EXEC and \ self.platform.simulation_exec: