Re: [PATCH 0/5] test: teach pytest the emulate.pl tricks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 19, 2023 at 11:52:35AM +0200, Ahmad Fatoum wrote:
> test/emulate.pl duplicates a lot of what labgrid is already doing
> in order to instantiate virtualized devices and to allow interactive
> use of emulated barebox with the same environment config.
> 
> In preparation for phasing out emulate.pl, let's teach pytest how to
> replace it. As a first step we add these new pytest options:
> 
>   --interactive	start Qemu interactively using labgrid environment
>   --dry-run     print Qemu command line that would've been used
>   --rng         instaiate RNG device
>   --console     instaiate console device
>   --blk         instaiate block device
>   --qemu=OPT    pass OPT to qemu
> 
> The intention is to ultimately move as much as possible of this handling
> into labgrid itself, e.g. labgrid already has provisions for fixing up
> disk options.
> 
> Ahmad Fatoum (5):
>   test: add pytest.ini with defaults
>   test: have pytest --interactive start interactive Qemu session
>   test: lookup qemu binary in path if no tools key exists
>   test: add support for passing devices on command line
>   test: don't hardcode origin of OVMF.fd

Applied, thanks

Sascha

> 
>  .github/workflows/test-labgrid-pytest.yml     |  4 -
>  pytest.ini                                    |  2 +
>  test/arm/a15@multi_v7_defconfig.yaml          |  4 +-
>  test/arm/a9@multi_v7_defconfig.yaml           |  4 +-
>  test/arm/multi_v8_defconfig.yaml              |  4 +-
>  test/arm/qemu-raspi0@multi_v7_defconfig.yaml  |  4 +-
>  .../arm/qemu-raspi1ap@multi_v7_defconfig.yaml |  4 +-
>  test/arm/qemu-raspi2b@multi_v7_defconfig.yaml |  4 +-
>  .../qemu-sabrelite@multi_v7_defconfig.yaml    |  4 +-
>  test/arm/virt@multi_v7_defconfig.yaml         |  4 +-
>  test/conftest.py                              | 78 +++++++++++++++++
>  test/mips/be@qemu-malta_defconfig.yaml        |  4 +-
>  test/mips/le@qemu-malta_defconfig.yaml        |  4 +-
>  test/mips/qemu-malta64el_defconfig.yaml       |  4 +-
>  test/openrisc/generic_defconfig.yaml          |  4 +-
>  test/riscv/qemu-virt64@rv64i_defconfig.yaml   |  4 +-
>  test/riscv/qemu@virt32_defconfig.yaml         |  4 +-
>  test/riscv/sifive@rv64i_defconfig.yaml        |  4 +-
>  test/strategy.py                              | 87 ++++++++++++++++++-
>  test/x86/pc@efi_defconfig.yaml                | 10 +--
>  test/x86/q35@efi_defconfig.yaml               | 10 +--
>  test/x86/virtio@efi_defconfig.yaml            | 10 +--
>  22 files changed, 187 insertions(+), 74 deletions(-)
>  create mode 100644 pytest.ini
> 
> -- 
> 2.39.2
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux