From: Auger Eric <eric.auger@redhat.com>
To: Thomas Huth <thuth@redhat.com>,
Igor Mammedov <imammedo@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
qemu-devel@nongnu.org
Cc: "Laurent Vivier" <lvivier@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: Re: [PATCH] tests/qtest/bios-tables: Only run the TPM test with CONFIG_TPM enabled
Date: Mon, 15 Jun 2020 17:03:58 +0200 [thread overview]
Message-ID: <647f57b4-b25b-7c90-4324-267f254804bb@redhat.com> (raw)
In-Reply-To: <20200615125402.12898-1-thuth@redhat.com>
Hi Thomas,
On 6/15/20 2:54 PM, Thomas Huth wrote:
> "make check-qtest" currently fails if configure has been run with
> "--disable-tpm" - the TPM-related tests can only work if the TPM is
> enabled in the build. So let's use the CONFIG_TPM switch to disable
> the test if TPM is not available.
Please forgive me, I did not notice your patch and sent another one :-(
Either fix is fine for me.
Thanks
Eric
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
> tests/qtest/bios-tables-test.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
> index 53f104a9c5..d170a617d8 100644
> --- a/tests/qtest/bios-tables-test.c
> +++ b/tests/qtest/bios-tables-test.c
> @@ -877,6 +877,8 @@ static void test_acpi_piix4_tcg_numamem(void)
> free_test_data(&data);
> }
>
> +#ifdef CONFIG_TPM
> +
> uint64_t tpm_tis_base_addr;
>
> static void test_acpi_tcg_tpm(const char *machine, const char *tpm_if,
> @@ -931,6 +933,8 @@ static void test_acpi_q35_tcg_tpm_tis(void)
> test_acpi_tcg_tpm("q35", "tis", 0xFED40000);
> }
>
> +#endif /* CONFIG_TPM */
> +
> static void test_acpi_tcg_dimm_pxm(const char *machine)
> {
> test_data data;
> @@ -1094,7 +1098,9 @@ int main(int argc, char *argv[])
> return ret;
> }
>
> +#ifdef CONFIG_TPM
> qtest_add_func("acpi/q35/tpm-tis", test_acpi_q35_tcg_tpm_tis);
> +#endif
> qtest_add_func("acpi/piix4", test_acpi_piix4_tcg);
> qtest_add_func("acpi/piix4/bridge", test_acpi_piix4_tcg_bridge);
> qtest_add_func("acpi/q35", test_acpi_q35_tcg);
>
prev parent reply other threads:[~2020-06-15 15:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-15 12:54 [PATCH] tests/qtest/bios-tables: Only run the TPM test with CONFIG_TPM enabled Thomas Huth
2020-06-15 14:56 ` Philippe Mathieu-Daudé
2020-06-15 15:03 ` Auger Eric [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=647f57b4-b25b-7c90-4324-267f254804bb@redhat.com \
--to=eric.auger@redhat.com \
--cc=imammedo@redhat.com \
--cc=lvivier@redhat.com \
--cc=mst@redhat.com \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--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).