]> git.ipfire.org Git - thirdparty/lldpd.git/blob - tests/integration/README.md
tests: replace integration test by py.test+namespace tests
[thirdparty/lldpd.git] / tests / integration / README.md
1 lldpd integration tests
2 =======================
3
4 To run those tests, you need Python 3.
5
6 $ virtualenv -p /usr/bin/python3 venv
7 $ . venv/bin/activate
8 $ pip install -r requirements.txt
9
10 The tests rely on namespace support. Therefore, they only work on
11 Linux. At least a 3.11 kernel is needed. While it would have been
12 convenient to rely on a user namespace to avoid to run tests as root,
13 there are restrictions that makes that difficult, notably we can only
14 map one user to root and we have to map the current user and the
15 _lldpd user.
16
17 Then, tests can be run with:
18
19 $ sudo $(which py.test) -vv -n 10 --boxed
20
21 Add an additional `-v` to get even more traces.