polyspace-test -monitor
(System Command) Monitor execution of C/C++ xUnit tests and retrieve test and code profiling results
Since R2025a
Syntax
Description
The system command polyspace-test -monitor monitors execution of C/C++ xUnit tests on a host computer or target board, and retrieves test and code profiling results for review in the Polyspace® Platform user interface.
polyspace-test -monitor [ runs the test command or script -results-dir <resultsFolder>] [-results-name <resultFile>] [testOptions]-- <testCommand><testCommand> and generates test results (.pstestr format) in <resultsFolder>. This action allows you to monitor the execution of C/C++ xUnit tests without going
through a Polyspace Platform project and retrieve results for viewing in the user interface, for uploading to Polyspace
Access™, or for generating reports. To use this action, you must have previously compiled xUnit tests using specific compilation options.
polyspace-test -monitor [ runs the test command or script -results-dir <resultsFolder>] [-results-name <resultFile>] -com serial [-com-timeout <timeInSecs>] [-read-timeout <timeInSecs>] [testOptions] [serialCommOptions] -- <testCommand><testCommand> on a target board, retrieves
the results and converts them to a form suitable for review and report generation. The data transfer to and from the target board is done using serial communication protocols.
polyspace-test -monitor [ runs the test command or script -results-dir <resultsFolder>] [-results-name <resultFile>] -com tcpip [-com-timeout <timeInSecs>] [-read-timeout <timeInSecs>] [testOptions] [tcpipCommOptions] -- <testCommand><testCommand> on a target board, retrieves the
results and converts them to a form suitable for review and report generation. The data transfer to and from the target board is done using TCP/IP communication protocols.
polyspace-test -monitor runs the test command or script -instrum-dir <instrumFolder> [-results-dir <resultsFolder>] [-results-name <resultFile>] -- <testCommand><testCommand> and generates test (.pstestr format) and code profiling results (.psprof format). This action allows you to monitor the execution of
C/C++ xUnit tests for both testing and code profiling without going through a Polyspace Platform project. To use this action, you must have previously compiled xUnit tests using specific compilation options and instrumented your source code for code profiling.
polyspace-test -monitor runs the test command or script
-instrum-dir <instrumFolder> [-results-dir <resultsFolder>] [-results-name <resultFile>] -com serial [-com-timeout <timeInSecs>] [-read-timeout <timeInSecs>] [testOptions] [serialCommOptions] -- <testCommand><testCommand> on a target board, retrieves the test and code profiling results, and converts them to a form suitable for review and report generation. The data transfer to and from the target board is done using serial communication protocols.
polyspace-test -monitor runs the test command or script
-instrum-dir <instrumFolder> [-results-dir <resultsFolder>] [-results-name <resultFile>] -com tcpip [-com-timeout <timeInSecs>] [-read-timeout <timeInSecs>] [testOptions] [tcpipCommOptions] -- <testCommand><testCommand> on a target board, retrieves the test and code profiling results, and converts them to a form suitable for review and report generation. The data transfer to and from the target board is done using TCP/IP communication protocols.
Examples
Input Arguments
Version History
Introduced in R2025a