[PATCH v3 0/4] yank: Add chardev tests and fixes

Lukas Straub posted 4 patches 3 years, 1 month ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/cover.1616521487.git.lukasstraub2@web.de
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>
There is a newer version of this series
MAINTAINERS            |   1 +
chardev/char-socket.c  |  20 +++-
chardev/char.c         |  77 +++++++++++-----
include/chardev/char.h |   3 +
tests/unit/meson.build |   3 +-
tests/unit/test-yank.c | 201 +++++++++++++++++++++++++++++++++++++++++
6 files changed, 276 insertions(+), 29 deletions(-)
create mode 100644 tests/unit/test-yank.c
[PATCH v3 0/4] yank: Add chardev tests and fixes
Posted by Lukas Straub 3 years, 1 month ago
Hello Everyone,
These patches increase test coverage for yank, add tests and fix bugs and
crashes in yank in combination with chardev-change.
Please Review.

Regards,
Lukas Straub

Changes:
-v3:
 -Base on <cover.1616521341.git.lukasstraub2@web.de>
  ([PATCH 0/2] yank: Always link full yank code)
 -Drop patch 1 (tests: Use the normal yank code instead of stubs in relevant tests)

-v2:
 -test: add license
 -test: factorize testcases to a single function
 -test: test chardev_change with initialization of new chardev failing
 -fix chardev_change with initialization of new chardev failing
 -add reviewed-by and tested-by tags

Based-on: <cover.1616521341.git.lukasstraub2@web.de>
([PATCH 0/2] yank: Always link full yank code)

Lukas Straub (4):
  tests: Add tests for yank with the chardev-change case
  chardev/char.c: Move object_property_try_add_child out of chardev_new
  chardev/char.c: Always pass id to chardev_new
  chardev: Fix yank with the chardev-change case

 MAINTAINERS            |   1 +
 chardev/char-socket.c  |  20 +++-
 chardev/char.c         |  77 +++++++++++-----
 include/chardev/char.h |   3 +
 tests/unit/meson.build |   3 +-
 tests/unit/test-yank.c | 201 +++++++++++++++++++++++++++++++++++++++++
 6 files changed, 276 insertions(+), 29 deletions(-)
 create mode 100644 tests/unit/test-yank.c

--
2.30.2
Re: [PATCH v3 0/4] yank: Add chardev tests and fixes
Posted by Lukas Straub 3 years, 1 month ago
On Tue, 23 Mar 2021 18:57:32 +0100
Lukas Straub <lukasstraub2@web.de> wrote:

> Hello Everyone,
> These patches increase test coverage for yank, add tests and fix bugs and
> crashes in yank in combination with chardev-change.
> Please Review.
> 
> Regards,
> Lukas Straub
> 
> Changes:
> -v3:
>  -Base on <cover.1616521341.git.lukasstraub2@web.de>
>   ([PATCH 0/2] yank: Always link full yank code)
>  -Drop patch 1 (tests: Use the normal yank code instead of stubs in relevant tests)
> 
> -v2:
>  -test: add license
>  -test: factorize testcases to a single function
>  -test: test chardev_change with initialization of new chardev failing
>  -fix chardev_change with initialization of new chardev failing
>  -add reviewed-by and tested-by tags
> 
> Based-on: <cover.1616521341.git.lukasstraub2@web.de>
> ([PATCH 0/2] yank: Always link full yank code)
> 
> Lukas Straub (4):
>   tests: Add tests for yank with the chardev-change case
>   chardev/char.c: Move object_property_try_add_child out of chardev_new
>   chardev/char.c: Always pass id to chardev_new
>   chardev: Fix yank with the chardev-change case
> 
>  MAINTAINERS            |   1 +
>  chardev/char-socket.c  |  20 +++-
>  chardev/char.c         |  77 +++++++++++-----
>  include/chardev/char.h |   3 +
>  tests/unit/meson.build |   3 +-
>  tests/unit/test-yank.c | 201 +++++++++++++++++++++++++++++++++++++++++
>  6 files changed, 276 insertions(+), 29 deletions(-)
>  create mode 100644 tests/unit/test-yank.c
> 
> --
> 2.30.2

Ping. It would be cool if I could submit a PR for this for rc1.

Regards,
Lukas Straub

--