ocpitest — command-line tool for running tests from the OpenCPI test suite
The ocpitest(1) command-line tool is used to run all or specific tests in the OpenCPI test suite.
The tests in the OpenCPI test suite run automatically during OpenCPI installation to
verify that all parts of OpenCPI are properly installed and function as expected.
Running these tests individually can also be useful for troubleshooting an OpenCPI installation.
The ocpitest command can be run in three different contexts that correspond to the
modes of operation for OpenCPI on embedded systems:
The second and third contexts correspond to the "network" and "standalone" modes of operation for OpenCPI on embedded systems. See the section "Installation Steps for Systems after their Platforms are Installed" in the OpenCPI Installation Guide for more details on these modes of operation.
The ocpitest command runs the tests appropriate for the context in which it runs unless
specific tests are specified on the command line.
To run one or more specific tests, specify the test name(s) listed below as <test> argument(s).
driver
ocpitest command is running
in a docker container, or the test is disabled with the --no-kernel option.
os
datatype
load-plugins
container
swig
python
tests/pytests/project/ directory.
project
projects/test/).
ocpidev
ocpidev tests.
core
core project (projects/core/).
inactive
inactive project (projects/inactive/).
In addition to the options common to all OpenCPI tools (see opencpi(1)), the following options can be specified. For convenience, options can occur anywhere in the command.
--no-hdl
--no-kernel
driver test when it might otherwise be run.
This option is specified when ocpitest is run by install-opencpi.sh
and the --no-kernel option is passed to install-opencpi.sh.
--showtests
ocpitest.
List the tests that can be run with ocpitest:
ocpitest --showtests
Run the network mode tests without building and running any HDL assets:
ocpitest --no-hdl assets
Run all tests except for the driver test:
ocpitest --no-kernel
Run the swig and python tests:
ocpitest swig python
See the main web site: https://www.opencpi.org
See the OpenCPI Installation Guide: https://opencpi.gitlab.io/releases/latest/docs/OpenCPI_Installation_Guide.pdf