[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 11/15] tests: Only run intel-hda-tests if machine type is compiled
From: |
Thomas Huth |
Subject: |
[PULL 11/15] tests: Only run intel-hda-tests if machine type is compiled in |
Date: |
Tue, 20 Sep 2022 17:35:08 +0200 |
From: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20220902173452.1904-5-quintela@redhat.com>
Reviewed-by: Ani Sinha <ani@anisinha.ca>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
tests/qtest/intel-hda-test.c | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/tests/qtest/intel-hda-test.c b/tests/qtest/intel-hda-test.c
index a58c98e4d1..d4a8db6fd6 100644
--- a/tests/qtest/intel-hda-test.c
+++ b/tests/qtest/intel-hda-test.c
@@ -18,7 +18,7 @@
/* Tests only initialization so far. TODO: Replace with functional tests */
static void ich6_test(void)
{
- qtest_start("-device intel-hda,id=" HDA_ID CODEC_DEVICES);
+ qtest_start("-machine pc -device intel-hda,id=" HDA_ID CODEC_DEVICES);
qtest_end();
}
@@ -65,9 +65,12 @@ static void test_issue542_ich6(void)
int main(int argc, char **argv)
{
g_test_init(&argc, &argv, NULL);
- qtest_add_func("/intel-hda/ich6", ich6_test);
- qtest_add_func("/intel-hda/ich9", ich9_test);
- qtest_add_func("/intel-hda/fuzz/issue542", test_issue542_ich6);
-
+ if (qtest_has_machine("pc")) {
+ qtest_add_func("/intel-hda/ich6", ich6_test);
+ }
+ if (qtest_has_machine("q35")) {
+ qtest_add_func("/intel-hda/ich9", ich9_test);
+ qtest_add_func("/intel-hda/fuzz/issue542", test_issue542_ich6);
+ }
return g_test_run();
}
--
2.31.1
- [PULL 05/15] qtest/fuzz-lsi53c895a-test: set guest RAM to 2G, (continued)
- [PULL 05/15] qtest/fuzz-lsi53c895a-test: set guest RAM to 2G, Thomas Huth, 2022/09/20
- [PULL 03/15] .gitlab-ci.d/windows.yml: Drop the sed processing in the 64-bit build, Thomas Huth, 2022/09/20
- [PULL 06/15] tests: Fix error strings, Thomas Huth, 2022/09/20
- [PULL 04/15] tests/qtest: npcm7xx-emc-test: Skip checking MAC, Thomas Huth, 2022/09/20
- [PULL 07/15] meson-build: Enable CONFIG_REPLICATION only when replication is set, Thomas Huth, 2022/09/20
- [PULL 10/15] bios-tables-test: Only run test for machine types compiled in, Thomas Huth, 2022/09/20
- [PULL 15/15] qga: Replace 'blacklist' and 'whitelist' in the guest agent sources, Thomas Huth, 2022/09/20
- [PULL 12/15] tests: sb16 has both pc and q35 tests, Thomas Huth, 2022/09/20
- [PULL 14/15] qga: Replace 'blacklist' command line and config file options by 'block-rpcs', Thomas Huth, 2022/09/20
- [PULL 13/15] gitlab-ci: Update the FreeBSD 13 job from 13.0 to 13.1, Thomas Huth, 2022/09/20
- [PULL 11/15] tests: Only run intel-hda-tests if machine type is compiled in,
Thomas Huth <=
- [PULL 09/15] bios-tables-test: Sort all x86_64 tests by machine type, Thomas Huth, 2022/09/20
- [PULL 08/15] bios-tables-test: Make oem-fields tests be consistent, Thomas Huth, 2022/09/20
- Re: [PULL 00/15] Testing, qga and misc patches, Stefan Hajnoczi, 2022/09/21