编译和测试自动化
R2026b使用之前准备的 Polyspace® 平台工程编译和运行测试
在用户界面中准备一个 Polyspace 平台工程,然后以编程方式编译和运行测试:
polyspace-test -build myproject.psprjx -results-dir results
polyspace-test -run myproject.psprjx -results-dir results有关 CI 服务器工作流,请参阅服务器上的编译和测试自动化。
系统命令
主题
Polyspace 平台工程的源代码管理
- Create Easily Shareable Projects for Version Control
Create projects that are easy to share and submit to version control by using relative paths, variables, and a modular project structure. - Compare and Merge Polyspace Platform Projects and Configurations Before Submission to Source Control
Compare Polyspace Platform projects (.psprjxfiles) with version in repository, and resolve conflicts in sources, configurations, or tests in project.
编译和测试自动化
- Automate C/C++ Test Execution Using Polyspace Platform Projects
Build and run C/C++ tests in a project on a continuous integration (CI) server, upload results to Polyspace Access™ web server. - Automate C/C++ Code Profiling Using Polyspace Platform Projects
Calculate metrics such as code coverage, execution time, and memory use on a continuous integration (CI) server.
在目标上运行测试
- Automate C/C++ Test Execution on Targets Using Polyspace Platform Projects
Build and run tests on a custom target board programmatically using the command line interface, for instance, on a continuous integration server. - Automate C/C++ Code Profiling on Targets Using Polyspace Platform Projects
Calculate metrics such as code coverage or execution time on a custom target board using the command line interface.