qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, "Daniel P. Berrangé" <berrange@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Kyle Evans" <kevans@freebsd.org>,
	"Eduardo Habkost" <eduardo@habkost.net>,
	"Alexandre Iooss" <erdnaxe@crans.org>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Laurent Vivier" <laurent@vivier.eu>,
	"Mahmoud Mandour" <ma.mandourr@gmail.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Li-Wen Hsu" <lwhsu@freebsd.org>,
	"Riku Voipio" <riku.voipio@iki.fi>,
	"Alex Bennée" <alex.bennee@linaro.org>,
	"Warner Losh" <imp@bsdimp.com>,
	"Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Ed Maste" <emaste@freebsd.org>, "Thomas Huth" <thuth@redhat.com>
Subject: [PATCH 06/25] tests/functional: Introduce the dso_suffix() helper
Date: Wed, 26 Feb 2025 14:03:24 +0000	[thread overview]
Message-ID: <20250226140343.3907080-7-alex.bennee@linaro.org> (raw)
In-Reply-To: <20250226140343.3907080-1-alex.bennee@linaro.org>

From: Philippe Mathieu-Daudé <philmd@linaro.org>

Introduce a helper to get the default shared library
suffix used on the host.

Suggested-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20250220080215.49165-3-philmd@linaro.org>
[AJB: dropped whitespace cmd.py damage]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 tests/functional/qemu_test/__init__.py | 2 +-
 tests/functional/qemu_test/config.py   | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/tests/functional/qemu_test/__init__.py b/tests/functional/qemu_test/__init__.py
index 5c972843a6..45f7befa37 100644
--- a/tests/functional/qemu_test/__init__.py
+++ b/tests/functional/qemu_test/__init__.py
@@ -7,7 +7,7 @@
 
 
 from .asset import Asset
-from .config import BUILD_DIR
+from .config import BUILD_DIR, dso_suffix
 from .cmd import is_readable_executable_file, \
     interrupt_interactive_console_until_pattern, wait_for_console_pattern, \
     exec_command, exec_command_and_wait_for_pattern, get_qemu_img, which
diff --git a/tests/functional/qemu_test/config.py b/tests/functional/qemu_test/config.py
index edd75b7fd0..0eab1baa54 100644
--- a/tests/functional/qemu_test/config.py
+++ b/tests/functional/qemu_test/config.py
@@ -13,6 +13,7 @@
 
 import os
 from pathlib import Path
+import platform
 
 
 def _source_dir():
@@ -34,3 +35,8 @@ def _build_dir():
     raise Exception("Cannot identify build dir, set QEMU_BUILD_ROOT")
 
 BUILD_DIR = _build_dir()
+
+def dso_suffix():
+    '''Return the dynamic libraries suffix for the current platform'''
+    DSO_SUFFIXES = { 'Linux': 'so', 'Darwin': 'dylib', 'Windows': 'dll' }
+    return DSO_SUFFIXES[platform.system()]
-- 
2.39.5



  parent reply	other threads:[~2025-02-26 14:11 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-26 14:03 [PATCH 00/25] maintainer updates for 10.0 softfreeze (gpu/tcg tests, plugins, MAINTAINERS) Alex Bennée
2025-02-26 14:03 ` [PATCH 01/25] tests/functional: move aarch64 GPU test into own file Alex Bennée
2025-02-26 15:27   ` Thomas Huth
2025-02-26 17:19   ` Richard Henderson
2025-02-26 18:08     ` Alex Bennée
2025-02-26 14:03 ` [PATCH 02/25] tests/functional: factor out common code in gpu test Alex Bennée
2025-02-26 15:32   ` Thomas Huth
2025-02-26 14:03 ` [PATCH 03/25] tests/functional: ensure we have a GPU device for tests Alex Bennée
2025-02-26 15:59   ` Thomas Huth
2025-02-26 14:03 ` [PATCH 04/25] tests/functional: expand tests to cover virgl Alex Bennée
2025-02-26 16:03   ` Thomas Huth
2025-02-26 14:03 ` [PATCH 05/25] plugins: add explicit dependency in functional tests Alex Bennée
2025-02-26 14:03 ` Alex Bennée [this message]
2025-02-26 14:03 ` [PATCH 07/25] tests/functional: Allow running TCG plugins tests on non-Linux/BSD hosts Alex Bennée
2025-02-27  9:03   ` Daniel P. Berrangé
2025-02-26 14:03 ` [PATCH 08/25] tests/functional: skip vulkan tests with nVidia Alex Bennée
2025-02-26 16:07   ` Thomas Huth
2025-02-26 14:03 ` [PATCH 09/25] libvirt-ci: bump to latest for vulkan-tools (libvirt MR 525) Alex Bennée
2025-02-26 16:14   ` Thomas Huth
2025-02-26 14:03 ` [PATCH 10/25] tests/vm: bump timeout for shutdown Alex Bennée
2025-02-26 16:15   ` Thomas Huth
2025-02-26 14:03 ` [PATCH 11/25] tests/tcg: mark test-vma as a linux-only test Alex Bennée
2025-02-26 16:16   ` Thomas Huth
2025-02-26 14:03 ` [PATCH 12/25] tests/tcg: add message to _Static_assert in test-avx Alex Bennée
2025-02-26 16:17   ` Thomas Huth
2025-02-26 14:03 ` [PATCH 13/25] tests/tcg: fix constraints in test-i386-adcox Alex Bennée
2025-02-26 17:26   ` Richard Henderson
2025-02-28 11:35     ` Alex Bennée
2025-02-28 17:35       ` Richard Henderson
2025-02-26 14:03 ` [PATCH 14/25] tests/tcg: enable -fwrapv for test-i386-bmi Alex Bennée
2025-02-26 17:27   ` Richard Henderson
2025-02-26 14:03 ` [PATCH 15/25] plugins/api: use qemu_target_page_mask() to get value Alex Bennée
2025-02-26 17:27   ` Richard Henderson
2025-02-26 22:19   ` Philippe Mathieu-Daudé
2025-02-26 14:03 ` [PATCH 16/25] plugins/loader: populate target_name with target_name() Alex Bennée
2025-02-26 14:03 ` [PATCH 17/25] include/qemu: plugin-memory.h doesn't need cpu-defs.h Alex Bennée
2025-02-26 14:03 ` [PATCH 18/25] plugins/api: clean-up the includes Alex Bennée
2025-02-26 14:03 ` [PATCH 19/25] plugins/plugin.h: include queue.h Alex Bennée
2025-02-26 14:03 ` [PATCH 20/25] plugins/loader: compile loader only once Alex Bennée
2025-02-26 14:03 ` [PATCH 21/25] plugins/api: split out binary path/start/end/entry code Alex Bennée
2025-02-26 15:28   ` Warner Losh
2025-02-26 17:29   ` Richard Henderson
2025-02-26 14:03 ` [PATCH 22/25] plugins/api: split out the vaddr/hwaddr helpers Alex Bennée
2025-02-26 14:03 ` [PATCH 23/25] plugins/api: split out time control helpers Alex Bennée
2025-02-26 14:03 ` [PATCH 24/25] plugins/api: build only once Alex Bennée
2025-02-26 14:03 ` [PATCH 25/25] MAINTAINERS: remove widely sanctioned entities Alex Bennée
2025-02-27 15:45   ` Daniel Henrique Barboza
2025-02-28 10:39     ` Alex Bennée

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250226140343.3907080-7-alex.bennee@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=berrange@redhat.com \
    --cc=eduardo@habkost.net \
    --cc=emaste@freebsd.org \
    --cc=erdnaxe@crans.org \
    --cc=imp@bsdimp.com \
    --cc=kevans@freebsd.org \
    --cc=laurent@vivier.eu \
    --cc=lwhsu@freebsd.org \
    --cc=ma.mandourr@gmail.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=riku.voipio@iki.fi \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).