From 36a8fdfd74c82103055e097296ee03363adfa06d Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Thu, 30 Apr 2020 21:33:58 +0200 Subject: python/xrelfo: the ELF xref extractor This creates JSON dumps of all the xref structs littered around FRR. Signed-off-by: David Lamparter --- python/runtests.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 python/runtests.py (limited to 'python/runtests.py') diff --git a/python/runtests.py b/python/runtests.py new file mode 100644 index 0000000000..bcf650b329 --- /dev/null +++ b/python/runtests.py @@ -0,0 +1,14 @@ +import pytest +import sys +import os + +try: + import _clippy +except ImportError: + sys.stderr.write('''these tests need to be run with the _clippy C extension +module available. Try running "clippy runtests.py ...". +''') + sys.exit(1) + +os.chdir(os.path.dirname(os.path.abspath(__file__))) +raise SystemExit(pytest.main(sys.argv[1:])) -- cgit v1.2.3