ocpidev-run — runs applications and component unit tests
The run verb is the OpenCPI command for running applications and component unit tests
in the development (project) environment.
When running applications (all in the applications/ subdirectory of the project), this command runs them
based their XML file and any run-related attributes/options found there. Applications may be
simple XML-based applications without their own directories, XML-based applications with their own
directories or ACI-based (C++/Python) applications in their own directories.
When running component unit tests with default options, all unit tests are run, with any required preparation done before the tests are run. Running component unit tests normally proceeds in three phases:
Normally all three are run, but they can be individually run or two out of three can be run
using the --phase option to this run verb.
The --only-platform and --exclude-platform options are used to limit the runtime
platforms used during the phases of unit testing.
Asset types to be specified in the <noun> argument are:
application
applications
library
project
test
tests
When running applications or unit tests from within their directories, no noun or name arguments are required.
In addition to the options common to all OpenCPI tools (see opencpi(1)),
the following options can be specified for the run verb.
In the option descriptions below, a plus sign (+) indicates that
the option can be specified more than once on the command line.
--after <args>+
--before <args>+
ocpirun command; for example, environment settings or prefix commands.
--run-arg <args>+
ocpirun command.
You can also add run-arg arguments after the application <name>;
for example, to specify options to ocpirun for XML applications.
Preface these arguments with the double hyphen (--) notation
to indicate that they are not options to the ocpidev command
itself. For example, if you want to run an application with a
number of run-arg arguments, you can use any of the following
syntaxes:
ocpidev run application myapp -- -v -d -Pxsim
ocpidev run application myapp --run-arg=-v --run-arg=-d --run-arg=-Pxsim
ocpidev run application myapp --run-arg="-v -d -Pxsim"
For an XML application, these command lines perform the command:
ocpirun -v -d -Pxsim myapp
For more information on how to use these options, see the section "Applications in Projects" in the OpenCPI Application Development Guide.
-G <platform>, --only-platform=<platform>+
-Q <platform>, --exclude-platform=<platform>+
-l <library>, --library=<library>
--accumulate-errors
--case=<case-name>[,<case-name>[,<case-name>…]]
--keep-simulations
--phase=<phase>+
prepare, execute, verify, and view.
The view phase is used to run only the view scripts for the unit test,
without other phases. The --view option can be used to add viewing along with other phases.
--remotes=<system>
OCPI_REMOTE_TEST_SYS variable. See the section
"Defining Remote Systems for Executing Tests"
in the OpenCPI Component Development Guide for more information.
--view
view.sh) for the test at the conclusion of the
test’s execution.
The following environment variables affect ocpidev run operation:
OCPI_LIBRARY_PATH
ocpidev run.
Run an application named myapp:
ocpidev run application myapp
Run all the applications in the current project:
ocpidev run applications
Inside the assets project, run the fir_real_see unit test
in the dsp_comps library located at components/dsp_comps:
ocpidev run -l dsp_comps test fir_real_sse
Inside the assets project, run all tests in the dsp_comps library
located at components/dsp_comps:
ocpidev run library dsp_comps
Inside the assets project, run the view script
only for the fir_real_sse test in the dsp_comps library
located at components/dsp_comps:
ocpidev run -l dsp_comps --phase=view test fir_real_sse
See the main web site: https://www.opencpi.org
See the OpenCPI Application Development Guide: https://opencpi.gitlab.io/releases/latest/docs/OpenCPI_Application_Development_Guide.pdf
See the OpenCPI Component Development Guide: https://opencpi.gitlab.io/releases/latest/docs/OpenCPI_Component_Development_Guide.pdf