File: TESTING.md

package info (click to toggle)
thunderbolt-tools 0.9.3-4
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 280 kB
  • sloc: cpp: 913; python: 366; sh: 86; makefile: 10
file content (22 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Testing Thunderbolt user-space components

## Overview
To test Thunderbolt `umockdev` package is used. Umockdev mocks Linux devices
to test tools even on platforms without actual Thunderbolt connected.

## Testing inside docker container
To ease setting up environment for the testing there is docker configuration.

### Testing docker locally
- Install docker following instructions: https://docs.docker.com/get-started/#setup
- Create docker image `make docker-build`
- Run tests `make docker-run`

### Testing in Travis CI platform
Check build results and trigger builds can be done here:
https://travis-ci.org/01org/thunderbolt-software-user-space

## Testing locally
- Build and install `umockdev` following instructions here:
https://github.com/martinpitt/umockdev
- Use special makefile target: `make check`