[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/8] tests: Only run intel-hda-tests if machine type is compiled
From: |
Juan Quintela |
Subject: |
[PATCH 4/8] tests: Only run intel-hda-tests if machine type is compiled in |
Date: |
Fri, 2 Sep 2022 19:34:48 +0200 |
Signed-off-by: Juan Quintela <quintela@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.37.2
- [PATCH 0/8] RFC: Pass tests for x86_64 machine types compiled individually, Juan Quintela, 2022/09/02
- [PATCH 1/8] bios-tables-test: Make oem-fields tests be consistent, Juan Quintela, 2022/09/02
- [PATCH 2/8] bios-tables-test: Sort all x86_64 tests by machine type, Juan Quintela, 2022/09/02
- [PATCH 3/8] bios-tables-test: Only run test for machine types compiled in, Juan Quintela, 2022/09/02
- [PATCH 7/8] tests: Unfold qtest_pci, Juan Quintela, 2022/09/02
- [PATCH 8/8] tests: Make all tests that depend on I440FX state that, Juan Quintela, 2022/09/02
- [PATCH 4/8] tests: Only run intel-hda-tests if machine type is compiled in,
Juan Quintela <=
- [PATCH 5/8] tests: sb16 has both pc and q35 tests, Juan Quintela, 2022/09/02
- [PATCH 6/8] tests: Make all tests that use q35 depend on it being compiled in, Juan Quintela, 2022/09/02
- Re: [PATCH 0/8] RFC: Pass tests for x86_64 machine types compiled individually, Thomas Huth, 2022/09/20