tests: move out of the main package.
authorwhitequark <whitequark@whitequark.org>
Thu, 27 Aug 2020 00:33:31 +0000 (00:33 +0000)
committerwhitequark <whitequark@whitequark.org>
Thu, 27 Aug 2020 00:33:31 +0000 (00:33 +0000)
commit67b957d4f41226fdfc787434c2ebb2738229d0f3
tree8a22230e1f2f246a070ebf04fc5037cd6cc39c89
parentef7a3bcfb1aa349f83e4b9f69fa4e66b41f1ddd4
tests: move out of the main package.

Compared to tests in the repository root, tests in the package have
many downsides:
  * Unless explicitly excluded in find_packages(), tests and their
    support code effectively become a part of public API.
    This, unfortunately, happened with FHDLTestCase, which was never
    intended for downstream use.
  * Even if explicitly excluded from the setuptools package, using
    an editable install, or setting PYTHONPATH still allows accessing
    the tests.
  * Having a sub-package that is present in the source tree but not
    exported (or, worse, exported only sometimes) is confusing.
  * The name `nmigen.test` cannot be used for anything else, such as
    testing utilities that *are* intended for downstream use.
62 files changed:
.gitignore
nmigen/test/__init__.py [deleted file]
nmigen/test/compat/__init__.py [deleted file]
nmigen/test/compat/support.py [deleted file]
nmigen/test/compat/test_coding.py [deleted file]
nmigen/test/compat/test_constant.py [deleted file]
nmigen/test/compat/test_fifo.py [deleted file]
nmigen/test/compat/test_fsm.py [deleted file]
nmigen/test/compat/test_passive.py [deleted file]
nmigen/test/compat/test_run_simulation.py [deleted file]
nmigen/test/compat/test_signed.py [deleted file]
nmigen/test/compat/test_size.py [deleted file]
nmigen/test/test_build_dsl.py [deleted file]
nmigen/test/test_build_plat.py [deleted file]
nmigen/test/test_build_res.py [deleted file]
nmigen/test/test_compat.py [deleted file]
nmigen/test/test_examples.py [deleted file]
nmigen/test/test_hdl_ast.py [deleted file]
nmigen/test/test_hdl_cd.py [deleted file]
nmigen/test/test_hdl_dsl.py [deleted file]
nmigen/test/test_hdl_ir.py [deleted file]
nmigen/test/test_hdl_mem.py [deleted file]
nmigen/test/test_hdl_rec.py [deleted file]
nmigen/test/test_hdl_xfrm.py [deleted file]
nmigen/test/test_lib_cdc.py [deleted file]
nmigen/test/test_lib_coding.py [deleted file]
nmigen/test/test_lib_fifo.py [deleted file]
nmigen/test/test_lib_io.py [deleted file]
nmigen/test/test_lib_scheduler.py [deleted file]
nmigen/test/test_sim.py [deleted file]
nmigen/test/utils.py [deleted file]
setup.py
tests/__init__.py [new file with mode: 0644]
tests/compat/__init__.py [new file with mode: 0644]
tests/compat/support.py [new file with mode: 0644]
tests/compat/test_coding.py [new file with mode: 0644]
tests/compat/test_constant.py [new file with mode: 0644]
tests/compat/test_fifo.py [new file with mode: 0644]
tests/compat/test_fsm.py [new file with mode: 0644]
tests/compat/test_passive.py [new file with mode: 0644]
tests/compat/test_run_simulation.py [new file with mode: 0644]
tests/compat/test_signed.py [new file with mode: 0644]
tests/compat/test_size.py [new file with mode: 0644]
tests/test_build_dsl.py [new file with mode: 0644]
tests/test_build_plat.py [new file with mode: 0644]
tests/test_build_res.py [new file with mode: 0644]
tests/test_compat.py [new file with mode: 0644]
tests/test_examples.py [new file with mode: 0644]
tests/test_hdl_ast.py [new file with mode: 0644]
tests/test_hdl_cd.py [new file with mode: 0644]
tests/test_hdl_dsl.py [new file with mode: 0644]
tests/test_hdl_ir.py [new file with mode: 0644]
tests/test_hdl_mem.py [new file with mode: 0644]
tests/test_hdl_rec.py [new file with mode: 0644]
tests/test_hdl_xfrm.py [new file with mode: 0644]
tests/test_lib_cdc.py [new file with mode: 0644]
tests/test_lib_coding.py [new file with mode: 0644]
tests/test_lib_fifo.py [new file with mode: 0644]
tests/test_lib_io.py [new file with mode: 0644]
tests/test_lib_scheduler.py [new file with mode: 0644]
tests/test_sim.py [new file with mode: 0644]
tests/utils.py [new file with mode: 0644]