]> git.puffer.fish Git - mirror/frr.git/commitdiff
tests: add feature to not run ospfd test when opted out 9391/head
authorBasha Mougamadou <b.mougamadou@criteo.com>
Fri, 13 Aug 2021 07:45:34 +0000 (09:45 +0200)
committerBasha Mougamadou <b.mougamadou@criteo.com>
Fri, 13 Aug 2021 09:38:38 +0000 (11:38 +0200)
Signed-off-by: Basha Mougamadou <b.mougamadou@criteo.com>
tests/subdir.am

index 45236287cf6df24e96b4ee28a69310a79b29b070..b0be63c69545f88876a59cf79377e5e7476a9b4c 100644 (file)
@@ -35,8 +35,10 @@ if OSPFD
 TESTS_OSPFD = \
        tests/ospfd/test_ospf_spf \
        # end
+IGNORE_OSPFD =
 else
 TESTS_OSPFD =
+IGNORE_OSPFD = --ignore=ospfd/
 endif
 
 if OSPF6D
@@ -486,7 +488,7 @@ endif
 
 .PHONY: tests/tests.xml
 tests/tests.xml: $(check_PROGRAMS)
-       ( cd tests; $(PYTHON) ../$(srcdir)/tests/runtests.py --junitxml=tests.xml -v ../$(srcdir)/tests $(IGNORE_BGPD) $(IGNORE_ISISD) $(IGNORE_OSPF6D); )
+       ( cd tests; $(PYTHON) ../$(srcdir)/tests/runtests.py --junitxml=tests.xml -v ../$(srcdir)/tests $(IGNORE_BGPD) $(IGNORE_ISISD) $(IGNORE_OSPFD) $(IGNORE_OSPF6D); )
 check: tests/tests.xml
 
 clean-local: clean-tests