make test: split into basic and extended tests

Implement plumbing to allow decorating tests as extended, e.g.:

@unittest.skipUnless(running_extended_tests(), "part of extended tests")

both methods and classes can be decorated this way.

Change make test and make test-debug to run only non-extended tests.
Introduce make test-all and make test-all-debug to run the full suite.
Run full suite as part of make verify.
Decorate most BFD tests as extended.

Change-Id: I3bc64f59e9fe238f7f767d7e043dc165d03e9dfa
Signed-off-by: Klement Sekera <ksekera@cisco.com>
This commit is contained in:
Klement Sekera
2017-03-07 11:39:27 +01:00
committed by Damjan Marion
parent d96bad8ceb
commit 871349371a
4 changed files with 78 additions and 10 deletions
+4 -2
View File
@@ -119,8 +119,10 @@ checkstyle: verify-python-path
help:
@echo "Running tests:"
@echo ""
@echo " test - build and run functional tests"
@echo " test-debug - build and run functional tests (debug build)"
@echo " test - build and run (basic) functional tests"
@echo " test-debug - build and run (basic) functional tests (debug build)"
@echo " test-all - build and run (all) functional tests"
@echo " test-all-debug - build and run (all) functional tests (debug build)"
@echo " retest - run functional tests"
@echo " retest-debug - run functional tests (debug build)"
@echo " test-wipe - wipe (temporary) files generated by unit tests"