[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/4] tests: refactor fw_cfg_test
From: |
Thomas Huth |
Subject: |
Re: [Qemu-devel] [PATCH 1/4] tests: refactor fw_cfg_test |
Date: |
Tue, 23 Apr 2019 18:25:04 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 20/04/2019 12.00, Li Qiang wrote:
> Currently, fw_cfg_test uses one QTestState for every test case.
> This will add all command lines for every test case and
> this is unnecessary. This patch split the test cases and for
> every test case it uses his own QTestState. This patch does following
> things:
>
> 1. Get rid of the global 'fw_cfg', this need add a uninit function
>
> 2. Convert every test case in a separate QTestState
>
> After this patch, we can add fw_cfg test case freely and will not
> have efect other test cases.
>
> Signed-off-by: Li Qiang <address@hidden>
> ---
> tests/fw_cfg-test.c | 86 ++++++++++++++++++++++++++++++++++++++-----
> tests/libqos/fw_cfg.c | 10 +++++
> tests/libqos/fw_cfg.h | 7 ++++
> 3 files changed, 94 insertions(+), 9 deletions(-)
Sounds like a good idea.
Acked-by: Thomas Huth <address@hidden>
- [Qemu-devel] [PATCH 0/4] fw_cfg_test refactor and add two test cases, Li Qiang, 2019/04/20
- [Qemu-devel] [PATCH 1/4] tests: refactor fw_cfg_test, Li Qiang, 2019/04/20
- Re: [Qemu-devel] [PATCH 1/4] tests: refactor fw_cfg_test,
Thomas Huth <=
- [Qemu-devel] [PATCH 3/4] tests: fw_cfg: add reboot_timeout test case, Li Qiang, 2019/04/20
- Re: [Qemu-devel] [PATCH 3/4] tests: fw_cfg: add reboot_timeout test case, Thomas Huth, 2019/04/23
- Re: [Qemu-devel] [PATCH 3/4] tests: fw_cfg: add reboot_timeout test case, Gerd Hoffmann, 2019/04/25
- Re: [Qemu-devel] [PATCH 3/4] tests: fw_cfg: add reboot_timeout test case, Li Qiang, 2019/04/25
- Re: [Qemu-devel] [PATCH 3/4] tests: fw_cfg: add reboot_timeout test case, Philippe Mathieu-Daudé, 2019/04/25
- Re: [Qemu-devel] [PATCH 3/4] tests: fw_cfg: add reboot_timeout test case, Laszlo Ersek, 2019/04/26