polyspace.target Class
Namespace: polyspace
(Python) Manage host compilers or manage hardware targets for running C/C++ tests using Polyspace Test
Since R2026a
Description
This Python® class allows you to manage host compilers, and register, unregister or configure hardware targets for building and running tests authored using Polyspace® Test™.
Creation
Syntax
Description
Manage Host Compilers
returns all supported host compilers. For more information on host compilers, see Specify C/C++ Compilers for Testing in Polyspace Platform User Interface.compilers = polyspace.target.getHostCompilers()
returns the currently active host compiler.currentCompiler = polyspace.target.getCurrentHostCompiler()
polyspace.target.setHostCompiler( sets hostCompilerName)hostCompilerName as the compiler to be used for host compilation.
Register and Unregister Targets
polyspace.target.registerFromFile( registers an execution target using the custom target registration file targetRegistrationFile)targetRegistrationFile. Once a target is registered, you can use board and toolchain names from the target.
polyspace.target.unregisterFromFile( unregisters components in a previously registered target using the custom target unregistration file targetUnregistrationFile)<targetUnregistrationFile>.
Remove Targets
polyspace.target.removeComponent("Toolchain", removes a previously registered toolchain toolchainName)toolchainName and all associated components.
polyspace.target.removeComponent("Processor", removes a previously registered processor processorName)processorName and all associated components.
polyspace.target.removeComponent("Board", removes a previously registered board boardName)boardName and all associated components.
Get Registered Targets
returns the names of all currently registered toolchains as a list of strings.toolchains = polyspace.target.getToolchainNames()
returns the names of all currently registered processors as a list of strings.processors = polyspace.target.getProcessorNames()
returns the names of all currently registered boards as a list of strings.boards = polyspace.target.getBoardNames()
Configure Targets
Check Targets
polyspace.target.checkTargetPackage( runs a group of checks checkGroup, toolchainName, boardName)checkGroup on the target package indicated by toolchainName and boardName.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2026a