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>
This commit is contained in:
parent
a1d1810e54
commit
c50966ac17
|
@ -1977,7 +1977,7 @@ class TestInstance(DisablePyTestCollectionMixin):
|
|||
|
||||
target_ready = bool(self.testcase.type == "unit" or \
|
||||
self.platform.type == "native" or \
|
||||
self.platform.simulation in ["mdb-nsim", "nsim", "renode", "qemu", "tsim", "armfvp"] or \
|
||||
self.platform.simulation in ["mdb-nsim", "nsim", "renode", "qemu", "tsim", "armfvp", "xt-sim"] or \
|
||||
filter == 'runnable')
|
||||
|
||||
if self.platform.simulation == "nsim":
|
||||
|
@ -2442,6 +2442,9 @@ class ProjectBuilder(FilterBuilder):
|
|||
elif instance.platform.simulation == "armfvp":
|
||||
instance.handler = BinaryHandler(instance, "armfvp")
|
||||
instance.handler.call_make_run = True
|
||||
elif instance.platform.simulation == "xt-sim":
|
||||
instance.handler = BinaryHandler(instance, "xt-sim")
|
||||
instance.handler.call_make_run = True
|
||||
|
||||
if instance.handler:
|
||||
instance.handler.args = args
|
||||
|
|
Loading…
Reference in a new issue