1 lldpd integration tests
2 =======================
4 To run those tests, you need Python 3.
6 $ virtualenv -p /usr/bin/python3 venv
8 $ pip install -r requirements.txt
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
17 Then, tests can be run with:
19 $ sudo $(which py.test) -vv -n 10 --boxed
21 Add an additional `-v` to get even more traces.