]> git.proxmox.com Git - mirror_frr.git/commit
tests: Start the ability to mark tests
authorDonald Sharp <sharpd@nvidia.com>
Fri, 15 Jan 2021 01:29:14 +0000 (20:29 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 15 Jan 2021 01:29:14 +0000 (20:29 -0500)
commitb9f3e47f3a4010d8ea3179db7e6b602a40e349cb
tree5a464c524bd8e24c3260ee494046012f8b9e1d88
parent9fad1340d4ce7798f843c70826dd1629fec6ddcb
tests: Start the ability to mark tests

Add the ability for our topotests to take advantage of pytest `mark`ing.
This effectively allows you to tell pytest to run against certain sets
of tests.  For a demonstration purpose I've added in marks for:
babel
eigrp
ldp
ospf
pim
rip

And setup tests to run against those tests that only test those protocols.

You can run against eigrp tests by running `pytest -k eigrp`
Other combinations are also available based upon simple boolean logic.
Just read the pytest.mark documentation.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
tests/topotests/all-protocol-startup/test_all_protocol_startup.py
tests/topotests/bgp-evpn-mh/test_evpn_mh.py
tests/topotests/eigrp-topo1/test_eigrp_topo1.py
tests/topotests/evpn-pim-1/test_evpn_pim_topo1.py
tests/topotests/ldp-topo1/test_ldp_topo1.py
tests/topotests/ldp-vpls-topo1/test_ldp_vpls_topo1.py
tests/topotests/pim-basic/test_pim.py
tests/topotests/pytest.ini
tests/topotests/rip-topo1/test_rip_topo1.py
tests/topotests/ripng-topo1/test_ripng_topo1.py