tests: move out of the main package.
authorwhitequark <whitequark@whitequark.org>
Thu, 27 Aug 2020 00:33:31 +0000 (00:33 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 15:09:30 +0000 (15:09 +0000)
commit34d52b8cdafaa2018522568459715c3d3bc43bb7
treecae79650fcfe46b671c19b9acd96f2f7304fcd8b
parent435a59c5f8515b4123188b3ba9805f888e92cc68
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.
61 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]
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]