Lines Matching +full:bad +full:- +full:key +full:- +full:1

3 # Copyright (c) 2018-2024 Intel Corporation
4 # SPDX-License-Identifier: Apache-2.0
71 # do not match until end-of-line, otherwise we won't allow
73 # line--as we only search starting the end of this match
74 br"^\s*ztest_test_suite\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,",
78 br"\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,",
81 br"^\s*ZTEST_SUITE\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,",
84 br"^\s*(?:ZTEST|ZTEST_F|ZTEST_USER|ZTEST_USER_F)\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,"
85 br"\s*(?P<testcase_name>[a-zA-Z0-9_]+)\s*",
89 # 1. register test suites and not call the run function if and only if
98 br"(\*+|&)?(?P<state_identifier>[a-zA-Z0-9_]+)\)",
174 [name.decode("UTF-8") for name in ztest_suite_names]
189 (?:test_suite\(|register_test_suite\([a-zA-Z0-9_]+\s*,\s*)
190 [a-zA-Z0-9_]+\s*,\s*
192 # Catch ztest[_user]_unit_test-[_setup_teardown](TESTNAME)
193 ztest_(?:1cpu_)?(?:user_)?unit_test(?:_setup_teardown)?
195 \(\s*(?P<testcase_name>[a-zA-Z0-9_]+)
197 (?:\s*,\s*[a-zA-Z0-9_]+\s*,\s*[a-zA-Z0-9_]+)?
226 br"^\s*ztest_run_test_suite\((?P<suite_name>[a-zA-Z0-9_]+)\)",
249 br"^\s*(?:ZTEST|ZTEST_F|ZTEST_USER|ZTEST_USER_F)\(\s*(?P<suite_name>[a-zA-Z0-9_]+)\s*,"
250 br"\s*(?P<testcase_name>[a-zA-Z0-9_]+)\s*",
269 (ts_name.decode("UTF-8"), tc_name.decode("UTF-8")) for ts_name, tc_name in testcase_names
273 if not testcase_name[1].startswith("test_"):
276 [(ts_name + '.' if ts_name else '') + f"{tc_name.replace('test_', '', 1)}" \
281 def find_c_files_in(path: str, extensions: list = None) -> list:
390 def detailed_name(self) -> str:
394 def status(self) -> TwisterStatus:
398 def status(self, value : TwisterStatus) -> None:
401 key = value.name if isinstance(value, Enum) else value
402 self._status = TwisterStatus[key]
430 @param testsuite_root os.path.abspath() of one of the --testsuite-root
462 def status(self) -> TwisterStatus:
466 def status(self, value : TwisterStatus) -> None:
469 key = value.name if isinstance(value, Enum) else value
470 self._status = TwisterStatus[key]
485 def get_case_name_(test_suite, tc_name, detailed=True) -> str:
490 def compose_case_name_(test_suite, tc_name) -> str:
494 def compose_case_name(self, tc_name) -> str:
539 raise TwisterException(f"""bad test name '{name}' in {testsuite_root}/{workdir}. \