diff --git a/scripts/tests/chiptest/linux.py b/scripts/tests/chiptest/linux.py index 7cba1f0ef2f6a9..f67ec4eb83e208 100644 --- a/scripts/tests/chiptest/linux.py +++ b/scripts/tests/chiptest/linux.py @@ -144,5 +144,6 @@ def PathsWithNetworkNamespaces(paths: ApplicationPaths) -> ApplicationPaths: return ApplicationPaths( chip_tool='ip netns exec tool'.split() + paths.chip_tool, all_clusters_app='ip netns exec app'.split() + paths.all_clusters_app, + door_lock_app='ip netns exec app'.split() + paths.door_lock_app, tv_app='ip netns exec app'.split() + paths.tv_app, ) diff --git a/scripts/tests/chiptest/test_definition.py b/scripts/tests/chiptest/test_definition.py index a7ad414a3a5a1e..39b67e50bcabad 100644 --- a/scripts/tests/chiptest/test_definition.py +++ b/scripts/tests/chiptest/test_definition.py @@ -145,6 +145,7 @@ class TestTarget(Enum): class ApplicationPaths: chip_tool: typing.List[str] all_clusters_app: typing.List[str] + door_lock_app: typing.List[str] tv_app: typing.List[str] @@ -205,10 +206,7 @@ def Run(self, runner, apps_register, paths: ApplicationPaths): elif self.target == TestTarget.TV: app_cmd = paths.tv_app elif self.target == TestTarget.DOOR_LOCK: - logging.info( - "Ignore test - test is made for door lock which" - " is not supported yet") - return + app_cmd = paths.door_lock_app else: raise Exception("Unknown test target - " "don't know which application to run") diff --git a/scripts/tests/run_test_suite.py b/scripts/tests/run_test_suite.py index 3e34547dfd5bf5..345c4835623548 100755 --- a/scripts/tests/run_test_suite.py +++ b/scripts/tests/run_test_suite.py @@ -167,18 +167,23 @@ def cmd_list(context): '--all-clusters-app', default=FindBinaryPath('chip-all-clusters-app'), help='what all clusters app to use') +@click.option( + '--door-lock-app', + default=FindBinaryPath('chip-door-lock-app'), + help='what door lock app to use') @click.option( '--tv-app', default=FindBinaryPath('chip-tv-app'), help='what tv app to use') @click.pass_context -def cmd_run(context, iterations, all_clusters_app, tv_app): +def cmd_run(context, iterations, all_clusters_app, door_lock_app, tv_app): runner = chiptest.runner.Runner() # Command execution requires an array paths = chiptest.ApplicationPaths( chip_tool=[context.obj.chip_tool], all_clusters_app=[all_clusters_app], + door_lock_app=[door_lock_app], tv_app=[tv_app] )