public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH v2 0/4] Rewrite the image-account-extension in python
@ 2023-05-09  7:44 T. Schaffner
  2023-05-09  7:44 ` [PATCH v2 1/4] simplify image-account-extension T. Schaffner
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: T. Schaffner @ 2023-05-09  7:44 UTC (permalink / raw)
  To: isar-users; +Cc: quirin.gylstorff, henning.schild, Tobias Schaffner

From: Tobias Schaffner <tobias.schaffner@siemens.com>

This allows us to drop a lot of encoding and parsing code that was used
to transition to shell and therefore makes it easier to read and maintain.

Using python functions for more complex tasks allows us the usage of
unittests. A very basic infrastructure for unittesting using the build
in python unittest and the bb.parse module was added. This was used to
test the re-implementation of the image-account-extension as a first
showcase.

This is a rebased version of the refactoring part of the "allow creation
of users/groups before rootfs creation" patch series to decouple the
merge of the simplifications.

Changes since v1:
- Fix wrong yeaar in copyright of image-account-extension

Tobias Schaffner (4):
  simplify image-account-extension
  create a minimal python unittest infrastructure
  add unittests for the image-account-extension
  set minimal python version in user_manual to 3.5

 doc/user_manual.md                            |   2 +-
 meta/classes/image-account-extension.bbclass  | 368 ++++++------------
 testsuite/unittests/README.md                 |  28 ++
 testsuite/unittests/bitbake.py                |  37 ++
 testsuite/unittests/rootfs.py                 |  45 +++
 .../unittests/test_image_account_extension.py | 145 +++++++
 6 files changed, 380 insertions(+), 245 deletions(-)
 create mode 100644 testsuite/unittests/README.md
 create mode 100644 testsuite/unittests/bitbake.py
 create mode 100644 testsuite/unittests/rootfs.py
 create mode 100644 testsuite/unittests/test_image_account_extension.py

-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-05-22  6:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-09  7:44 [PATCH v2 0/4] Rewrite the image-account-extension in python T. Schaffner
2023-05-09  7:44 ` [PATCH v2 1/4] simplify image-account-extension T. Schaffner
2023-05-09  7:44 ` [PATCH v2 2/4] create a minimal python unittest infrastructure T. Schaffner
2023-05-09  7:44 ` [PATCH v2 3/4] add unittests for the image-account-extension T. Schaffner
2023-05-09  7:44 ` [PATCH v2 4/4] set minimal python version in user_manual to 3.5 T. Schaffner
2023-05-22  4:41 ` [PATCH v2 0/4] Rewrite the image-account-extension in python Uladzimir Bely
2023-05-22  4:57   ` Uladzimir Bely
2023-05-22  6:52     ` Schaffner, Tobias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox