From: Fabiano Rosas <farosas@suse.de>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, Laurent Vivier <lvivier@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Subject: Re: [PATCH v1 3/3] docs/devel/qtest: Mention environment variables usage
Date: Thu, 30 Apr 2026 10:25:09 -0300 [thread overview]
Message-ID: <871pfwr362.fsf@suse.de> (raw)
In-Reply-To: <CAFEAcA_bpXeKpjKU30=DFRCuoi4ubqhNxq9RO8mfUwmwwChGVQ@mail.gmail.com>
Peter Maydell <peter.maydell@linaro.org> writes:
> On Wed, 29 Apr 2026 at 01:31, Fabiano Rosas <farosas@suse.de> wrote:
>>
>> Document the QTEST_ environment variables. Only include the ones used
>> by QTest itself, don't document test-specific variables as they are
>> more prone to change.
>>
>> Suggested-by: Peter Maydell <peter.maydell@linaro.org>
>> Signed-off-by: Fabiano Rosas <farosas@suse.de>
>> ---
>> docs/devel/testing/qtest.rst | 33 +++++++++++++++++++++++++++++++++
>> 1 file changed, 33 insertions(+)
>>
>> diff --git a/docs/devel/testing/qtest.rst b/docs/devel/testing/qtest.rst
>> index 73ef7702b7..0aac0f0aaf 100644
>> --- a/docs/devel/testing/qtest.rst
>> +++ b/docs/devel/testing/qtest.rst
>> @@ -91,3 +91,36 @@ libqtest API reference
>> ----------------------
>>
>> .. kernel-doc:: tests/qtest/libqtest.h
>> +
>> +
>> +QTest valid environment variables
>> +---------------------------------
>> +
>> +A few environment variables are used to point QTest at artifacts to be
>> +used in the tests, mostly QEMU binaries or to control the behavior of
>> +the tests. Environment variables are set automatically by the build
>> +system, but it can be useful to alter them when running tests
>> +manually. The following are the environment variables recognized by
>> +QTest, not including test-specific ones:
>> +
>> +QTEST_QEMU_BINARY - The QEMU binary itself
>> +
>> +QTEST_QEMU_ARGS - Extra arguments for the QEMU command line
>> +
>> +QTEST_QEMU_IMG - The qemu-img binary
>> +
>> +QTEST_QEMU_STORAGE_DAEMON_BINARY - The qemu-storage-daemon binary
>> +
>> +QTEST_STOP - Instruct QTest to stop the QEMU process with SIGSTOP before continuing execution.
>> +
>> +QTEST_LOG - Comma-separated list of log domains to allow verbose logging. Basic log domains include:
>> +
>> + qmp - controls verbose output of QMP command invocations.
>> +
>> + qtest - controls verbose ouput of qtest operations.
>
> "output"
>
>> +
>> + test - controls verbose output of tests.
>> +
>> + A dash '-' used in front of a log domain has the effect of
>> + enabling verbose logging for all other domains while
>> + keeping it disabled for the specified domain.
>
> We could write this using rST definition-lists, which I think
> makes the generated HTML look a little nicer. Here's a version
> which is basically the same text but with a little more rST
> markup sprinkled over it:
>
> ===begin===
> +
> +
> +QTest valid environment variables
> +---------------------------------
> +
> +A few environment variables are used to point QTest at artifacts to be
> +used in the tests, mostly QEMU binaries or to control the behavior of
> +the tests. Environment variables are set automatically by the build
> +system, but it can be useful to alter them when running tests
> +manually. The following are the environment variables recognized by
> +QTest, not including test-specific ones:
> +
> +``QTEST_QEMU_BINARY``
> + The QEMU binary itself (generally a ``qemu-system-<arch>`` binary).
> +
> +``QTEST_QEMU_ARGS``
> + Extra arguments for the QEMU command line.
> +
> +``QTEST_QEMU_IMG``
> + The ``qemu-img`` binary.
> +
> +``QTEST_QEMU_STORAGE_DAEMON_BINARY``
> + The ``qemu-storage-daemon`` binary.
> +
> +``QTEST_STOP``
> + Instruct QTest to stop the QEMU process with SIGSTOP before continuing
> + execution.
> +
> +``QTEST_LOG``
> + Comma-separated list of log domains to allow verbose logging.
> + The currently-defined log domains are:
> +
> + ``qmp``
> + controls verbose output of QMP command invocations.
> +
> + ``qtest``
> + controls verbose output of QTest operations.
> +
> + ``test``
> + controls verbose output of tests.
> +
> + A dash ``-`` used in front of a log domain name has the effect
> + of enabling verbose logging for all other domains while
> + keeping it disabled for the specified domain.
> ===endit===
>
Excellent, thank you for this.
> Either way,
> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
>
> thanks
> -- PMM
prev parent reply other threads:[~2026-04-30 14:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-29 0:31 [PATCH v1 0/3] tests/qtest: Tweak env variables Fabiano Rosas
2026-04-29 0:31 ` [PATCH v1 1/3] tests/qtest/libqtest: Replace QTEST_TRACE with QTEST_QEMU_ARGS Fabiano Rosas
2026-04-30 13:28 ` Peter Maydell
2026-04-30 14:35 ` Fabiano Rosas
2026-04-29 0:31 ` [PATCH v1 2/3] tests/qtest: Individual verbose switches Fabiano Rosas
2026-04-29 21:24 ` Peter Xu
2026-04-29 23:08 ` Fabiano Rosas
2026-04-29 0:31 ` [PATCH v1 3/3] docs/devel/qtest: Mention environment variables usage Fabiano Rosas
2026-04-29 22:28 ` Pierrick Bouvier
2026-04-30 13:21 ` Peter Maydell
2026-04-30 13:25 ` Fabiano Rosas [this message]
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=871pfwr362.fsf@suse.de \
--to=farosas@suse.de \
--cc=lvivier@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=pierrick.bouvier@oss.qualcomm.com \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.