Lines Matching full:platform

33 from twisterlib.platform import Platform, generate_platforms
55 # platform keys
56 PLATFORM_KEY = 'platform key filter'
63 # filters related to platform definition
64 PLATFORM = 'Platform related filter' variable in Filters
73 # in case of missing env. variable required for a platform
238 self.selected_platforms = set(p.platform.name for p in self.instances.values())
241 self.selected_platforms = set(p.platform.name for p in self.instances.values())
244 # If the platform does not exist in the hardware map or was not specified by --platform,
249 for _cp in self.options.platform:
262 self.selected_platforms = set(p.platform.name for p in self.instances.values())
448 for platform in generate_platforms(board_roots, soc_roots, arch_roots):
449 if not platform.twister:
451 self.platforms.append(platform)
454 if platform.default:
455 self.default_platforms.append(platform.name)
456 #logger.debug(f"adding {platform.name} to default platforms")
459 if pp in platform.aliases:
460 logger.debug(f"adding {platform.name} to default platforms (override mode)")
461 self.default_platforms.append(platform.name)
591 for platform in self.platforms:
592 if name in platform.aliases:
593 selected_platform = platform
597 def handle_quarantined_tests(self, instance: TestInstance, plat: Platform): argument
624 platform = self.get_platform(ts["platform"])
625 if filter_platform and platform.name not in filter_platform:
628 self.testsuites[testsuite], platform, toolchain, self.env.outdir
667 self.handle_quarantined_tests(instance, platform)
687 instance.create_overlay(platform,
699 def check_platform(self, platform, platform_list): argument
700 return any(p in platform.aliases for p in platform_list)
704 platform_filter = self.options.platform
719 logger.debug("platform filter: " + str(platform_filter))
731 # When --all used, any --platform arguments ignored
744 logger.debug(f"Checking platform filter: {platform_filter}")
837 instance.add_filter("Platform is excluded on command line.", Filters.CMD_LINE)
912 instance.add_filter("In testsuite platform exclude", Filters.TESTSUITE)
918 instance.add_filter("Command line platform filter", Filters.CMD_LINE)
923 instance.add_filter("Not in testsuite platform allow list", Filters.TESTSUITE)
926 instance.add_filter("Not in testsuite platform type list", Filters.TESTSUITE)
936 if plat.type == 'native' and sys.platform != 'linux':
937 instance.add_filter("Native platform requires Linux", Filters.ENVIRONMENT)
943 Filters.PLATFORM
947 instance.add_filter("Not enough RAM", Filters.PLATFORM)
953 "No robot support for the selected platform",
962 Filters.PLATFORM
966 instance.add_filter("Not enough FLASH", Filters.PLATFORM)
970 "Excluded tags per platform (exclude_tags)",
971 Filters.PLATFORM
975 instance.add_filter("Excluded tags per platform (only_tags)", Filters.PLATFORM)
1003 # snippet applies to all boards and further platform-specific checks
1019 instance.add_filter("Snippet not supported", Filters.PLATFORM)
1025 # platform_key is a list of unique platform attributes that form a unique key
1027 # A key containing a field name that the platform does not have
1028 # will filter the platform.
1031 # to run a test once per unique (arch, simulation) platform.
1042 "Excluded platform missing key fields"
1044 Filters.PLATFORM
1061 f" by platform {keyed_test['plat'].name} having key {plat_key}",
1065 # do not add a platform to keyed tests if previously
1079 # if twister was launched with no platform options at all, we
1089 lambda _scenario: _scenario.platform.name in _intersection,
1101 filter(lambda ts: ts.platform.name in _platforms, instance_list)
1107 lambda item: item.platform.name in ts.integration_platforms,
1117 lambda inst: not inst.platform.simulator_by_name(self.options.sim_name),
1121 instance.add_filter("Not an emulated platform", Filters.CMD_LINE)
1126 lambda inst: inst.platform.vendor not in vendor_filter,
1130 instance.add_filter("Not a selected vendor platform", Filters.CMD_LINE)
1140 case.create_overlay(case.platform,
1146 self.selected_platforms = set(p.platform.name for p in self.instances.values())
1178 Verify if platform name (passed by --platform option, or in yaml file
1183 for platform in platform_names_to_verify:
1184 if platform in self.platform_names:
1185 p = self.get_platform(platform)
1189 logger.error(f"{log_info} - unrecognized platform - {platform}")
1238 if instance.platform.name in instance.testsuite.integration_platforms:
1249 f"Changing status of {instance.name} to ERROR because it is an integration platform"