主要内容

服务器上的编译和测试自动化

R2026b
使用之前准备的 Polyspace® 平台工程编译和运行测试

将 Polyspace 平台工程提交到 CI 服务器。作为持续集成的一环,编译工程、运行测试,并将结果上传到 Polyspace Access™ 以进行基于 Web 的审查:

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>

要从源代码、测试和配置即时创建工程,请参阅使用 Python API 实现服务器上的工作流自动化。

系统命令

全部展开

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

主题