To test Thunderbolt umockdev
package is used. Umockdev mocks Linux devices
to test tools even on platforms without actual Thunderbolt connected.
To ease setting up environment for the testing there is docker configuration.
- Install docker following instructions: https://docs.docker.com/get-started/#setup
- Create docker image
make docker-build
- Run tests
make docker-run
Check build results and trigger builds can be done here: https://travis-ci.org/01org/thunderbolt-software-user-space
- Build and install
umockdev
following instructions here: https://github.com/martinpitt/umockdev - Use special makefile target:
make check