]> git.ipfire.org Git - thirdparty/lldpd.git/commit - tests/integration/fixtures/namespaces.py
tests: replace integration test by py.test+namespace tests
authorVincent Bernat <vincent@bernat.im>
Tue, 1 Mar 2016 19:01:23 +0000 (20:01 +0100)
committerVincent Bernat <vincent@bernat.im>
Sun, 13 Mar 2016 23:14:37 +0000 (00:14 +0100)
commite0a847787ed0a11f82c7022bea7fe7c3ff6be512
tree1f94c7f07702e0e6a1ca4f532efa9ae0ebf6ce03
parentc960236b8c93108d5c307d842283cc42fbb2794e
tests: replace integration test by py.test+namespace tests

Relying on namespaces enable us to quickly run isolated instances of
lldpd without the need of virtual machines. Since the startup time is
quite fast (despite having to wait for lldpd to be "ready"), we can use
a classic unittest framework like py.test to run tests and get
appropriate reports. Tests can be run in parallel to overcome the
slowness induced by all those `time.sleep(2)`.
20 files changed:
README.md
tests/Makefile.am
tests/R1.expected [deleted file]
tests/integration-tests.in [deleted file]
tests/integration/.gitignore [new file with mode: 0644]
tests/integration/README.md [new file with mode: 0644]
tests/integration/conftest.py [new file with mode: 0644]
tests/integration/fixtures/namespaces.py [new file with mode: 0644]
tests/integration/fixtures/network.py [new file with mode: 0644]
tests/integration/fixtures/programs.py [new file with mode: 0644]
tests/integration/requirements.txt [new file with mode: 0644]
tests/integration/test_basic.py [new file with mode: 0644]
tests/integration/test_custom.py [new file with mode: 0644]
tests/integration/test_dot1.py [new file with mode: 0644]
tests/integration/test_dot3.py [new file with mode: 0644]
tests/integration/test_interfaces.py [new file with mode: 0644]
tests/integration/test_lldpcli.py [new file with mode: 0644]
tests/integration/test_med.py [new file with mode: 0644]
tests/integration/test_protocols.py [new file with mode: 0644]
tests/lldpcli.conf