diff options
author | Thomas Huth <thuth@redhat.com> | 2025-08-19 13:23:41 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2025-08-27 09:46:55 +0200 |
commit | 9c9efb1e36ddb2e636c7f6aafda49cddaee88a0c (patch) | |
tree | 3d4061c2b87825593b8433ae0b65796b3a8bf7be | |
parent | b8103f56d97c2e6554af2c365b366989005a666c (diff) | |
download | qemu-9c9efb1e36ddb2e636c7f6aafda49cddaee88a0c.zip qemu-9c9efb1e36ddb2e636c7f6aafda49cddaee88a0c.tar.gz qemu-9c9efb1e36ddb2e636c7f6aafda49cddaee88a0c.tar.bz2 |
tests/functional/meson.build: Allow tests to reside in subfolders
We are going to move target-specific tests to subfolders that are
named after the target (and generic tests will be put into a "generic"
folder), so prepare the meson.build file to allow such locations, too.
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20250819112403.432587-5-thuth@redhat.com>
-rw-r--r-- | tests/functional/meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/functional/meson.build b/tests/functional/meson.build index 356aad1..8c24ac1 100644 --- a/tests/functional/meson.build +++ b/tests/functional/meson.build @@ -423,7 +423,13 @@ foreach speed : ['quick', 'thorough'] foreach test : target_tests testname = '@0@-@1@'.format(target_base, test) - testfile = 'test_' + test + '.py' + if fs.exists('test_' + test + '.py') + testfile = 'test_' + test + '.py' + elif fs.exists('generic' / 'test_' + test + '.py') + testfile = 'generic' / 'test_' + test + '.py' + else + testfile = target_base / 'test_' + test + '.py' + endif testpath = meson.current_source_dir() / testfile teststamp = testname + '.tstamp' test_precache_env = environment() |