Skip to content

Commit c50966a

Browse files
committed
twister: support xt-sim as a runnable target
Use xt-sim to run Xtensa simulator in twister. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent a1d1810 commit c50966a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/pylib/twister/twisterlib.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1977,7 +1977,7 @@ def check_runnable(self, enable_slow=False, filter='buildable', fixtures=[]):
19771977

19781978
target_ready = bool(self.testcase.type == "unit" or \
19791979
self.platform.type == "native" or \
1980-
self.platform.simulation in ["mdb-nsim", "nsim", "renode", "qemu", "tsim", "armfvp"] or \
1980+
self.platform.simulation in ["mdb-nsim", "nsim", "renode", "qemu", "tsim", "armfvp", "xt-sim"] or \
19811981
filter == 'runnable')
19821982

19831983
if self.platform.simulation == "nsim":
@@ -2442,6 +2442,9 @@ def setup_handler(self):
24422442
elif instance.platform.simulation == "armfvp":
24432443
instance.handler = BinaryHandler(instance, "armfvp")
24442444
instance.handler.call_make_run = True
2445+
elif instance.platform.simulation == "xt-sim":
2446+
instance.handler = BinaryHandler(instance, "xt-sim")
2447+
instance.handler.call_make_run = True
24452448

24462449
if instance.handler:
24472450
instance.handler.args = args

0 commit comments

Comments
 (0)