From: Fabiano Rosas <farosas@suse.de>
To: qemu-devel@nongnu.org
Cc: Richard Henderson <richard.henderson@linaro.org>,
Steve Sistare <steven.sistare@oracle.com>
Subject: [PULL 04/13] tests/qtest: export qtest_qemu_binary
Date: Wed, 1 Oct 2025 18:52:45 -0300 [thread overview]
Message-ID: <20251001215254.2863-5-farosas@suse.de> (raw)
In-Reply-To: <20251001215254.2863-1-farosas@suse.de>
From: Steve Sistare <steven.sistare@oracle.com>
Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/qemu-devel/1759332851-370353-10-git-send-email-steven.sistare@oracle.com
Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
tests/qtest/libqtest.c | 2 +-
tests/qtest/libqtest.h | 9 +++++++++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c
index f3d4e0829a..6f76be12a4 100644
--- a/tests/qtest/libqtest.c
+++ b/tests/qtest/libqtest.c
@@ -357,7 +357,7 @@ void qtest_remove_abrt_handler(void *data)
}
}
-static const char *qtest_qemu_binary(const char *var)
+const char *qtest_qemu_binary(const char *var)
{
const char *qemu_bin;
diff --git a/tests/qtest/libqtest.h b/tests/qtest/libqtest.h
index fd27521a9c..dc2cdd0b60 100644
--- a/tests/qtest/libqtest.h
+++ b/tests/qtest/libqtest.h
@@ -47,6 +47,15 @@ QTestState *qtest_initf(const char *fmt, ...) G_GNUC_PRINTF(1, 2);
*/
QTestState *qtest_vinitf(const char *fmt, va_list ap) G_GNUC_PRINTF(1, 0);
+/**
+ * qtest_qemu_binary:
+ * @var: environment variable name
+ *
+ * Look up @var and return its value as the qemu binary path.
+ * If @var is NULL, look up the default var name.
+ */
+const char *qtest_qemu_binary(const char *var);
+
/**
* qtest_init:
* @extra_args: other arguments to pass to QEMU. CAUTION: these
--
2.35.3
next prev parent reply other threads:[~2025-10-01 21:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-01 21:52 [PULL 00/13] QTest patches for 2025-10-01 Fabiano Rosas
2025-10-01 21:52 ` [PULL 01/13] tests/qtest: Add missing checks for the availability of machines Fabiano Rosas
2025-10-01 21:52 ` [PULL 02/13] tests/qtest/migration: Fix cpr-tests in case the machine is not available Fabiano Rosas
2025-10-01 21:52 ` [PULL 03/13] tests/qtest: optimize qtest_get_machines Fabiano Rosas
2025-10-01 21:52 ` Fabiano Rosas [this message]
2025-10-01 21:52 ` [PULL 05/13] tests/qtest: qtest_qemu_args Fabiano Rosas
2025-10-01 21:52 ` [PULL 06/13] tests/qtest: qtest_create_test_state Fabiano Rosas
2025-10-01 21:52 ` [PULL 07/13] tests/qtest: qtest_qemu_spawn_func Fabiano Rosas
2025-10-01 21:52 ` [PULL 08/13] tests/qtest: qtest_init_after_exec Fabiano Rosas
2025-10-01 21:52 ` [PULL 09/13] migration-test: only_source option Fabiano Rosas
2025-10-01 21:52 ` [PULL 10/13] migration-test: shm path accessor Fabiano Rosas
2025-10-01 21:52 ` [PULL 11/13] migration-test: misc exports Fabiano Rosas
2025-10-01 21:52 ` [PULL 12/13] migration-test: migrate_args Fabiano Rosas
2025-10-01 21:52 ` [PULL 13/13] migration-test: strv parameter Fabiano Rosas
2025-10-03 11:55 ` [PULL 00/13] QTest patches for 2025-10-01 Richard Henderson
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=20251001215254.2863-5-farosas@suse.de \
--to=farosas@suse.de \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=steven.sistare@oracle.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).