主要内容

Build and Test Automation on Servers

R2026b
Build and run tests using a previously prepared Polyspace® Platform project

Submit a Polyspace Platform project to your CI server. As part of continuous integration, build the project, run tests, and upload results to Polyspace Access™ for web-based review:

polyspace-test-server -build myproject.psprjx -results-dir results
polyspace-test-server -run myproject.psprjx -results-dir results
polyspace-access -upload results/ps_test.pstestr -parent-project myproject -host <HOST> -port <PORT>

To create a project on the fly from sources, tests, and configurations, see Workflow Automation on Servers Using Python API.

System Commands

expand all

polyspace-test-server -build(System Command) Build sources and tests in a Polyspace Platform project
polyspace-test-server -run(System Command) Run tests in a Polyspace Platform project
polyspace-test-server -report(System Command) Generate reports from test or code profiling results
polyspace-test-server -convert(System Command) Convert test or code profiling results to standard Polyspace Test format
polyspace-test-server -merge(System Command) Create a single test or code profiling result set from multiple result sets
polyspace-access -upload (Polyspace Access)(System Command) Upload results to Polyspace Access database
polyspace-access -download (Polyspace Access)(System Command) Download results from Polyspace Access
polyspace-test-server -manage-host-compiler(System Command) List or select host compilers for Polyspace Platform project build
polyspace-test-server -manage-target-package(System Command) Register, list, configure or otherwise manage target packages for test execution or code profiling on targets
polyspace-test-server -check-target-package(System Command) Check connection to target before test execution
polyspace-test-server -manage-addon(System Command) Install or list add-ons for use with Polyspace Test
polyspace-test-server -generate(System Command) Generate test registration function from a set of Polyspace Test C/C++ test files
polyspace-test-server -version(System Command) Display Polyspace Test version
polyspace-code-profiler-server(System Command) Profile your source code for calculating C/C++ code coverage, code execution time, and memory use
polyspace-test-server -monitor(System Command) Monitor execution of C/C++ xUnit tests and retrieve test and code profiling results

Topics