[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 11/35] tests/functional: Prepare the meson build system fo
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH v4 11/35] tests/functional: Prepare the meson build system for the functional tests |
Date: |
Thu, 29 Aug 2024 10:54:34 +0100 |
User-agent: |
Mutt/2.2.12 (2023-09-09) |
On Mon, Aug 26, 2024 at 10:18:44AM +0200, Thomas Huth wrote:
> On 23/08/2024 14.54, Philippe Mathieu-Daudé wrote:
> > On 21/8/24 10:27, Thomas Huth wrote:
> > > Provide a meson.build file for the upcoming python-based functional
> > > tests, and add some wrapper glue targets to the tests/Makefile.include
> > > file. We are going to use two "speed" modes for the functional tests:
> > > The "quick" tests can be run at any time (i.e. also during "make check"),
> > > while the "thorough" tests should only be run when running a
> > > "make check-functional" test run (since these tests might download
> > > additional assets from the internet).
> > >
> > > The changes to the meson.build files are partly based on an earlier
> > > patch by Ani Sinha.
> > >
> > > Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> > > Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> > > Signed-off-by: Thomas Huth <thuth@redhat.com>
> > > ---
> > > tests/Makefile.include | 11 ++++++
> > > tests/functional/meson.build | 66 ++++++++++++++++++++++++++++++++++++
> > > tests/meson.build | 1 +
> > > 3 files changed, 78 insertions(+)
> > > create mode 100644 tests/functional/meson.build
> >
> >
> > > +# Timeouts for individual tests that can be slow e.g. with debugging
> > > enabled
> > > +test_timeouts = {
> > > +}
> >
> >
> > > + foreach test : target_tests
> > > + test('func-@0@/@1@'.format(target_base, test),
> > > + python,
> > > + depends: [test_deps, test_emulator, emulator_modules],
> > > + env: test_env,
> > > + args: [meson.current_source_dir() / 'test_' + test + '.py'],
> > > + protocol: 'tap',
> > > + timeout: test_timeouts.get(test, 60),
> > > + priority: test_timeouts.get(test, 60),
> >
> > IIUC with Avocado the timeout was for each test_func in a TestClass.
> > Now this is only per TestClass. Hopefully I'm wrong...
>
> I think you're right ... we might need to adjust the meson timeouts here and
> there in case they are causing problems, but that's just business as usual
> (we had to do the same when enabling the meson timeouts for the qtests for
> example).
Meson timeouts are around the lifetime of whatever child process
we tell it to execute. So, yes, the timeout is for the .py file
as a whole, not the individual TestClass within it.
This is different from Avocado, but not a big problem. Worst case
we'll adjust some meson level timeouts, or split overly long running
.py test files into multiple test .py files.
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 v4 06/35] tests/avocado/boot_linux_console: Remove the s390x subtest, (continued)
- [PATCH v4 07/35] python: Install pycotap in our venv if necessary, Thomas Huth, 2024/08/21
- [PATCH v4 08/35] tests/functional: Add base classes for the upcoming pytest-based tests, Thomas Huth, 2024/08/21
- [PATCH v4 09/35] tests/functional: Set up logging, Thomas Huth, 2024/08/21
- [PATCH v4 10/35] tests/Makefile.include: Increase the level of indentation in the help text, Thomas Huth, 2024/08/21
- [PATCH v4 11/35] tests/functional: Prepare the meson build system for the functional tests, Thomas Huth, 2024/08/21
- [PATCH v4 12/35] tests/functional: Convert simple avocado tests into standalone python tests, Thomas Huth, 2024/08/21
- [PATCH v4 13/35] tests/functional: Convert avocado tests that just need a small adjustment, Thomas Huth, 2024/08/21
- [PATCH v4 14/35] tests/functional: add a module for handling asset download & caching, Thomas Huth, 2024/08/21
- [PATCH v4 15/35] tests/functional: enable pre-emptive caching of assets, Thomas Huth, 2024/08/21