[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 20/27] tests/functional: extend test_aarch64_virt with vul
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v2 20/27] tests/functional: extend test_aarch64_virt with vulkan test |
Date: |
Wed, 18 Dec 2024 16:39:26 +0000 |
User-agent: |
Mutt/2.2.13 (2024-03-09) |
On Wed, Dec 18, 2024 at 04:20:56PM +0000, Alex Bennée wrote:
> Now we have virtio-gpu Vulkan support lets add a test for it.
> Currently this is using images build by buildroot:
>
> https://lists.buildroot.org/pipermail/buildroot/2024-December/768196.html
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>
> ---
> v2
> - use decorator for has_cmd(zstd)
> - move set_machine/require_accelerator to top of test
> - un-handled->unhandled
> - drop extra - from --snapshot
> - drop unneeded virtualization=on
> - only show 1s of each scene
> - fix long lines
> ---
> tests/functional/test_aarch64_virt.py | 84 ++++++++++++++++++++++++++-
> 1 file changed, 81 insertions(+), 3 deletions(-)
>
> + @skipUnless(*has_cmd('zstd'))
> + def test_aarch64_virt_with_gpu(self):
> + # This tests boots with a buildroot test image that contains
> + # vkmark and other GPU exercising tools. We run a headless
> + # weston that nevertheless still exercises the virtio-gpu
> + # backend.
> +
> + self.set_machine('virt')
> + self.require_accelerator("tcg")
> +
> + image_path_zst = self.ASSET_VIRT_GPU_ROOTFS.fetch()
> + kernel_path = self.ASSET_VIRT_GPU_KERNEL.fetch()
> +
> + image_path = self.workdir + "/rootfs.ext4"
Pending PULL has removed all direct access to self.workdir,
use 'self.scratch_file("rootfs.ext4") instead, except that
shouldn't be needed either....
> +
> + run_cmd(['zstd', "-f", "-d", image_path_zst,
> + "-o", image_path])
...the pending PULL has added common helpers for uncompression,
but only covers gz + lzma so far. Can you create a 'zstd_uncompress'
in uncompress.py and wire it up in the same way. That would let
this code turn into
image_path = self.uncompress(self.ASSERT_VIRT_GPU_ROOTFS)
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- Re: [PATCH v2 19/27] tests/functional: remove hacky sleep from the tests, (continued)
- [PATCH v2 07/27] tests/functional: update the mips64el tuxrun tests, Alex Bennée, 2024/12/18
- [PATCH v2 24/27] tests/vm: fix build_path based path, Alex Bennée, 2024/12/18
- [PATCH v2 23/27] tests/lcitool: remove temp workaround for debian mips64el, Alex Bennée, 2024/12/18
- [PATCH v2 21/27] tests/lcitool: bump to latest version of libvirt-ci, Alex Bennée, 2024/12/18
- [PATCH v2 13/27] tests/functional: update the sparc64 tuxrun tests, Alex Bennée, 2024/12/18
- [PATCH v2 20/27] tests/functional: extend test_aarch64_virt with vulkan test, Alex Bennée, 2024/12/18
- [PATCH v2 22/27] tests/docker: move riscv64 cross container from sid to trixie, Alex Bennée, 2024/12/18
- [PATCH v2 27/27] pc-bios: ensure keymaps dependencies set vnc tests, Alex Bennée, 2024/12/18
- [PATCH v2 25/27] tests/vm: partially un-tabify help output, Alex Bennée, 2024/12/18
- [PATCH v2 17/27] tests/qtest: remove clock_steps from virtio tests, Alex Bennée, 2024/12/18
- [PATCH v2 26/27] tests/vm: allow interactive login as root, Alex Bennée, 2024/12/18
- [PATCH v2 16/27] util/qemu-timer: fix indentation, Alex Bennée, 2024/12/18
- [PATCH v2 18/27] system/qtest: properly feedback results of clock_[step|set], Alex Bennée, 2024/12/18