icub-test
Installation Instructions

Installing Robot Testing Framework

If you have not installed Robot Testing Framework, Please see http://robotology.github.io/robot-testing-framework/index.html.
Make sure that the yarpmanager robottestingframework-plugin generated by YARP can be found by the robottestingframework-testrunner.

Building tests

Linux/macOS

On Linux/macOS machines, open a terminal and type:

$ git clone https://github.com/robotology/icub-tests.git
$ cd icub-tests
$ mkdir build
$ cd build
$ cmake ..
$ make

Windows

On Windows machines use the CMake program to create Visual Studio project and build it.

Configuration

Plugins

Test cases are built as Robot Testing Framework plug-ins (shared libraries) and can be found in icub-tests/build/plugins folder.
We need to add the plug-ins path to the OS-specific dynamic linker environment variable

  • Linux LD_LIBRARY_PATH
  • macOS DYLD_LIBRARY_PATH
  • Windows PATH

As an example, under Linux:

$ echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path to icub_tests>/build/plugins' >> ~/.bashrc

Context

Tests configuration (.ini files) can be found in icub-tests/suite/contexts.
We need to configure the OS-independent YARP_DATA_DIRS environment variable so that the test cases can load the configuration files.

$ echo 'export YARP_DATA_DIRS=$YARP_DATA_DIRS:<path to icub-tests>/suites' >> ~/.bashrc