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

Torben Hohn torben.hohn at linutronix.de
Thu Mar 5 12:12:23 CET 2020


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

-- 
2.20.1




More information about the elbe-devel mailing list