[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/8] tests: sb16 has both pc and q35 tests
From: |
Juan Quintela |
Subject: |
[PATCH 5/8] tests: sb16 has both pc and q35 tests |
Date: |
Fri, 2 Sep 2022 19:34:49 +0200 |
Check that the machines are compiled in before calling it
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
tests/qtest/fuzz-sb16-test.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/tests/qtest/fuzz-sb16-test.c b/tests/qtest/fuzz-sb16-test.c
index dd1b4b307f..fc445b1871 100644
--- a/tests/qtest/fuzz-sb16-test.c
+++ b/tests/qtest/fuzz-sb16-test.c
@@ -57,9 +57,13 @@ int main(int argc, char **argv)
{
g_test_init(&argc, &argv, NULL);
- qtest_add_func("fuzz/test_fuzz_sb16/1c", test_fuzz_sb16_0x1c);
- qtest_add_func("fuzz/test_fuzz_sb16/91", test_fuzz_sb16_0x91);
- qtest_add_func("fuzz/test_fuzz_sb16/d4", test_fuzz_sb16_0xd4);
+ if (qtest_has_machine("q35")) {
+ qtest_add_func("fuzz/test_fuzz_sb16/1c", test_fuzz_sb16_0x1c);
+ }
+ if (qtest_has_machine("pc")) {
+ qtest_add_func("fuzz/test_fuzz_sb16/91", test_fuzz_sb16_0x91);
+ qtest_add_func("fuzz/test_fuzz_sb16/d4", test_fuzz_sb16_0xd4);
+ }
return g_test_run();
}
--
2.37.2
- Re: [PATCH 1/8] bios-tables-test: Make oem-fields tests be consistent, (continued)
- [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, 2022/09/02
- [PATCH 5/8] tests: sb16 has both pc and q35 tests,
Juan Quintela <=
- [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