[elbe-devel] [PATCH 0/3] unittests start

Olivier Dion dion at linutronix.de
Thu Mar 5 23:38:33 CET 2020


On Thu, 05 Mar 2020, Torben Hohn <torben.hohn at linutronix.de> wrote:
> This is a first go on unittests.
>
> Olivier is supposed to implement unittests soon. And we
> have a few problems hiding in the copy_filelist() implementation
> regarding symlinks.
>
> This is not yet ready to be merged, but it already points us
> to the problems we currently see.
>
> Tests can be run using:
>
> python -m unittest discover
> or 
> python3 -m unittest discover
>
> note that python3 complains about the missing python3-spyne, while
> scanning the soap modules.
>
> To lxcvs:linutronix/elbe/elbe
>  * [new branch]          devel/torbenh/unittests -> devel/torbenh/unittests
>
>
> Torben Hohn (3):
>   tests: start with unittests by simply verifying the version
>   tests efilesystem: add a test for copy_fileslist and usrmerge
>   tests efilesystem: add deeplinks test for copy_filelist()
>
>  elbepack/tests/__init__.py         |  0
>  elbepack/tests/test_efilesystem.py | 64 ++++++++++++++++++++++++++++++
>  elbepack/tests/test_version.py     |  8 ++++
>  3 files changed, 72 insertions(+)
>  create mode 100644 elbepack/tests/__init__.py
>  create mode 100644 elbepack/tests/test_efilesystem.py
>  create mode 100644 elbepack/tests/test_version.py

I made some changes to your unit tests.  I've also fixed the
copy_filelist, which should now handle nested symlinks.

git at lxcvs:linutronix/elbe/elbe.git devel/dion/unittests d4560a59..ce9d072f



-- 
Olivier Dion
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen



More information about the elbe-devel mailing list