diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2020-12-28 18:24:47 +0100 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2020-12-28 18:24:47 +0100 |
commit | 42a1c81bbd4759dc50dfec089be35cb69c2ab088 (patch) | |
tree | 10ca1f992c674b61503ce3398542d60ac007c715 /testsuite | |
parent | 1c912a59c73a1ecb4c8b4d5d16bfc097d63d8546 (diff) | |
download | ghdl-42a1c81bbd4759dc50dfec089be35cb69c2ab088.tar.gz ghdl-42a1c81bbd4759dc50dfec089be35cb69c2ab088.tar.bz2 ghdl-42a1c81bbd4759dc50dfec089be35cb69c2ab088.zip |
Added testsuites so all Python unit tests can be run with a single command.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/pyunit/__init__.py | 12 | ||||
-rw-r--r-- | testsuite/pyunit/dom/__init__.py | 10 | ||||
-rw-r--r-- | testsuite/pyunit/libghdl/__init__.py | 10 |
3 files changed, 32 insertions, 0 deletions
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 |