[elbe-devel] [RFC PATCH 0/6] Elbe unit testing
Olivier Dion
dion at linutronix.de
Tue Apr 7 21:32:40 CEST 2020
This patch introduces Elbe to the Python unittest framework. It
llows to run tests locally for developers. This is part of the
ongoing Elbe-CI infrastructure.
* High level requirements [1/3]
- [X] Use Python unittest framework to run the tests.
- [ ] Make it possible to run tests against a local initvm.
- [ ] Use COW Qemu's images, so that a base initvm can be shared
between several testing containers.
* New command
Run '$ elbe test [options]' from anywhere in the project.
* Example
The test_version is used as an example. The commit that introduces
this test has a verbose log on how to create new tests and what
conventions to follow.
* Some fixes
A minor fix has been made in filesystem.py and the copy_filelist
method in efilesystem.py has been rewritten from scratch.
New tests are welcome. I will apply them to my branch. Feedback is
also needed.
Olivier Dion (3):
commands/test: Create Elbe unit test wrapper
filesystem: Change os.errno to errno module
efilesystem: Fix copy_filelist to handle symlinks
Torben Hohn (3):
tests version: Introduction to Elbe unit testing
tests efilesystem: Add tests for copy_fileslist
tests efilesystem: Add deeplinks test for copy_filelist
elbepack/commands/test.py | 16 ++++++++
elbepack/efilesystem.py | 61 +++++++++++++++++++++++------
elbepack/filesystem.py | 3 +-
elbepack/tests/__init__.py | 0
elbepack/tests/test_efilesystem.py | 62 ++++++++++++++++++++++++++++++
elbepack/tests/test_version.py | 29 ++++++++++++++
6 files changed, 158 insertions(+), 13 deletions(-)
create mode 100644 elbepack/commands/test.py
create mode 100644 elbepack/tests/__init__.py
create mode 100644 elbepack/tests/test_efilesystem.py
create mode 100644 elbepack/tests/test_version.py
--
2.26.0
More information about the elbe-devel
mailing list