From 42a1c81bbd4759dc50dfec089be35cb69c2ab088 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 28 Dec 2020 18:24:47 +0100 Subject: Added testsuites so all Python unit tests can be run with a single command. --- testsuite/pyunit/__init__.py | 12 ++++++++++++ testsuite/pyunit/dom/__init__.py | 10 ++++++++++ testsuite/pyunit/libghdl/__init__.py | 10 ++++++++++ 3 files changed, 32 insertions(+) create mode 100644 testsuite/pyunit/__init__.py create mode 100644 testsuite/pyunit/dom/__init__.py create mode 100644 testsuite/pyunit/libghdl/__init__.py (limited to 'testsuite/pyunit') diff --git a/testsuite/pyunit/__init__.py b/testsuite/pyunit/__init__.py new file mode 100644 index 000000000..b73f051d4 --- /dev/null +++ b/testsuite/pyunit/__init__.py @@ -0,0 +1,12 @@ +from unittest import TestSuite + +from testsuite.pyunit import libghdl, dom + + +def load_tests(loader, testCases, pattern): + suite = TestSuite() + + suite.addTests(loader.loadTestsFromModule(libghdl)) + suite.addTests(loader.loadTestsFromModule(dom)) + + return suite diff --git a/testsuite/pyunit/dom/__init__.py b/testsuite/pyunit/dom/__init__.py new file mode 100644 index 000000000..768810d72 --- /dev/null +++ b/testsuite/pyunit/dom/__init__.py @@ -0,0 +1,10 @@ +from unittest import TestSuite + +from testsuite.pyunit.dom import SimpleEntity + +def load_tests(loader, testCases, pattern): + suite = TestSuite() + + suite.addTests(loader.loadTestsFromModule(SimpleEntity)) + + return suite diff --git a/testsuite/pyunit/libghdl/__init__.py b/testsuite/pyunit/libghdl/__init__.py new file mode 100644 index 000000000..24ce9e704 --- /dev/null +++ b/testsuite/pyunit/libghdl/__init__.py @@ -0,0 +1,10 @@ +from unittest import TestSuite + +from testsuite.pyunit.libghdl import Initialize + +def load_tests(loader, testCases, pattern): + suite = TestSuite() + + suite.addTests(loader.loadTestsFromModule(Initialize)) + + return suite -- cgit v1.2.3