Package Summary

Tags No category tags.
Version 1.0.1
License Apache 2.0
Build type AMENT_CMAKE

Repository Summary

Checkout URI
VCS Type git
VCS Version release_1.0
Last Updated 2021-06-15
CI status No Continuous Integration
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

iceoryx Software Integrationtest

Additional Links


  • Eclipse Foundation, Inc.


No additional authors.

Iceoryx Integrationtests


To ensure quality standards in iceoryx, we are using automated testing to ensure ISO26262 on unittest and integrationtest level in the respective components. Additionally we need to make sure that the customer-facing API is functional and software integration specifications are fulfilled. Test focus is here on SWE.5 according to ASPICE.

For that purpose we bring in tests which simulate customer behavior to have automatic testing of (Mis)Use-cases. As testing framework we use the launch_testing framework from ROS 2. The tests are stored in a ROS 2 CMake package where the test executables are build and launched/tested by python scripts. In these scripts the testing is currently done by evaluating the stdout output of the processes and the exit codes.

advantages: - automatic test if processes have exited unexpectedly - test against custom or error return codes to evaluate error-cases - test the order of printed messages

limitations: - testing against stdout is error prone - limited functionality for performance testing because the stdout is buffered (messages could be reordered)


For building and executing the tests you need to have ROS2 installed. Please follow the instructions on The system tests are currently tested on ROS 2 "Foxy Fitzroy" in Ubuntu 20.04 LTS.

Please remove beforehand the COLCON_IGNORE files from iceoryx_integrationtest and iceoryx_examples.

For a basic setup you need to install the following packages:

sudo apt install ros-foxy-ros-base ros-foxy-ros-testing ros-foxy-launch-testing ros-foxy-ament-cmake python3-colcon-common-extensions

For the future versions you can use the corresponding ROS2 release.

After installing you need to source ROS 2 to make the environment available in your terminal:

source /opt/ros/foxy/setup.bash

NOTE: You can add the source command to your ~/.bashrc for automatic loading the ROS2 workspace at boot time.

Required for the colcon build of iceoryx is that the repository is located within a ROS workspace like this:

└── src
    └── iceoryx
        ├── cmake
        ├── doc
        ├── iceoryx_binding_c
        ├── iceoryx_dds
        ├── iceoryx_examples
        ├── iceoryx_meta
        ├── iceoryx_posh
        ├── iceoryx_integrationtest
        ├── iceoryx_utils
        └── tools

Test Build and Execution

Go into your iceoryx_workspace folder and do the colcon build:

colcon build

Expected output should be like this: Summary: 13 packages finished [24.1s] Colcon automatically creates the folders build, install and log.

NOTE: Please make sure that the build folder in src/iceoryx is not present to avoid conflicts with the colcon build.

For executing tests you can use colcon too:

source install/setup.bash # your install directory created by colcon
colcon test --packages-select iceoryx_integrationtest

For the case that a test fails the output look like this

--- stderr: iceoryx_integrationtest
Errors while running CTest
Finished <<< iceoryx_integrationtest [7.49s] [ with test failures ]

Summary: 13 packages finished [7.80s]
  1 package had stderr output: iceoryx_integrationtest
  1 package had test failures: iceoryx_integrationtest

For observing test logs in an error case you can use colcon test-result:

colcon test-result --all --verbose

With colcon all tests in the iceoryx_integrationtest package are executed. In particular cases you want to execute only one test file. This can be done the following way:

launch_test src/iceoryx/iceoryx_integrationtest/iceoryx_integrationtest/

An output for a failing test could look like this:

    FAIL: test_roudi_ready (iceoryx_integrationtest.TestRouDiProcess)
    Traceback (most recent call last):
      File "iceoryx_workspace/src/iceoryx/iceoryx_integrationtest/iceoryx_integrationtest/", line 52, in test_roudi_ready
      File "/opt/ros/foxy/lib/python3.8/site-packages/launch_testing/", line 146, in assertWaitFor
        assert success, 'Waiting for output timed out'
    AssertionError: Waiting for output timed out

Open points

  • use an alternative way of tracing test information of the test processes without involving iceoryx (e.g. DDS or some tracing lib)
  • add gtest for detailed testing in the test processes

Wiki Tutorials

See ROS Wiki Tutorials for more details.

Source Tutorials

Not currently indexed.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

No known dependants.

Launch files

No launch files found


No message files found.


No service files found


No plugins found.

Recent questions tagged iceoryx_integrationtest at