Lines Matching +full:directory +full:- +full:to +full:- +full:scan
4 # Copyright (c) 2018-2024 Intel Corporation
7 # SPDX-License-Identifier: Apache-2.0
28 print("Install the anytree module to use the --test-tree option")
48 # This is needed to load edt.pickle files.
50 "python-devicetree", "src"))
51 from devicetree import edtlib # pylint: disable=unused-import
64 # filters related to platform definition
85 __test__ = False # for pytest to skip this class when collects tests
86 config_re = re.compile('(CONFIG_[A-Za-z0-9_]+)[=]\"?([^\"]*)\"?$')
87 dt_re = re.compile('([A-Za-z0-9_]+)[=]\"?([^\"]*)\"?$')
91 "scripts", "schemas", "twister", "testsuite-schema.yaml"))
94 "scripts", "schemas", "twister", "quarantine-schema.yaml"))
101 "test-config-schema.yaml"
150 # Do first pass on levels to get initial data.
163 # Go over levels again to resolve inheritance.
186 print(f" - {test}")
216 logger.error("No quarantine list given to be verified")
217 raise TwisterRuntimeError("No quarantine list given to be verified")
244 # Get list of connected hardware and filter tests to only be run on connected hardware.
245 # If the platform does not exist in the hardware map or was not specified by --platform,
288 # the execution order is: "plat1-testA, plat1-testB, ...,
289 # plat1-testZ, plat2-testA, ...". For hardware tests
291 # in parallel, it is more efficient to run in the order:
292 # "plat1-testA, plat2-testA, ..., plat1-testB, plat2-testB, ..."
310 # Do calculation based on what is actually going to be run and evaluated
311 # at runtime, ignore the cases we already know going to be skipped.
317 num_extra_sets = total - (per_set * sets)
320 # so the last subset doesn't get overloaded, we add 1 extra to
323 start = (subset - 1) * (per_set + 1)
327 start = ((subset - num_extra_sets - 1) * per_set) + base
335 # add all pre-filtered tests that are skipped or got error status
336 # to the first set to allow for better distribution among all sets.
350 logger.info("Test tree is always shown with detailed test-id.")
355 logger.info("Test list is always shown with detailed test-id.")
369 msg += (f"- {dupe} found in:\n")
371 msg += (f" - {dc.yamlfile}\n")
382 print(f"- {t}")
429 print(f" - {test}")
457 # helper function to initialize and add platforms
535 #logger.debug(f"adding {platform.name} to default platforms")
539 logger.debug(f"adding {platform.name} to default platforms (override mode)")
620 # convert to fully qualified names
633 # scan it only once per testsuite
651 logger.debug(f"Skip - {msg}")
734 # test marked as built only can run when --test-only is used.
735 # Reset status to capture new results.
808 # When --all used, any --platform arguments ignored
866 # if not in integration mode, still add integration platforms to the list
877 # we set the scope to the platform_allow list
1064 # snippet applies to all boards and further platform-specific checks
1071 match = re.search(this_board[1:-1], plat.name)
1087 # a test will match against to determine if it should be scheduled to run.
1092 # to run a test once per unique (arch, simulation) platform.
1126 # do not add a platform to keyed tests if previously
1133 # needs to be added.
1136 # no configurations, so jump to next testsuite
1158 # add integration platforms to the list of default
1239 Verify if platform name (passed by --platform option, or in yaml file
1240 as platform_allow or integration_platforms options) is correct. If not -
1250 logger.error(f"{log_info} - unrecognized platform - {platform}")
1256 Iterate through all no-skipped instances in suite and create links
1258 steps to the CMake command.
1272 Create build directory with original "long" path. Next take shorter
1273 path and link them with original path - create link. At the end
1274 replace build_dir to created link. This link will be passed to CMake
1275 command. This action helps to limit path length which can be
1290 # Here original build directory is replaced with symbolic link. It will
1291 # be passed to CMake command
1310 f"Changing status of {instance.name} to ERROR because it is an integration platform"