mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-26 21:10:42 +00:00
tests: Only run intel-hda-tests if machine type is compiled in
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>
This commit is contained in:
parent
34b1f2c620
commit
08ed0988d6
@ -18,7 +18,7 @@
|
|||||||
/* Tests only initialization so far. TODO: Replace with functional tests */
|
/* Tests only initialization so far. TODO: Replace with functional tests */
|
||||||
static void ich6_test(void)
|
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();
|
qtest_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,9 +65,12 @@ static void test_issue542_ich6(void)
|
|||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
g_test_init(&argc, &argv, NULL);
|
g_test_init(&argc, &argv, NULL);
|
||||||
qtest_add_func("/intel-hda/ich6", ich6_test);
|
if (qtest_has_machine("pc")) {
|
||||||
qtest_add_func("/intel-hda/ich9", ich9_test);
|
qtest_add_func("/intel-hda/ich6", ich6_test);
|
||||||
qtest_add_func("/intel-hda/fuzz/issue542", test_issue542_ich6);
|
}
|
||||||
|
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();
|
return g_test_run();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user