Received: from eggs.gnu.org ([2001:4830:134:3::10]:37345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XM8OK-00072K-C7 for qemu-devel@nongnu.org; Tue, 26 Aug 2014 00:29:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XM8OI-0002l1-Uj for qemu-devel@nongnu.org; Tue, 26 Aug 2014 00:29:56 -0400 Received: from ozlabs.org ([2401:3900:2:1::2]:38030) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XM8OI-0002kT-Je for qemu-devel@nongnu.org; Tue, 26 Aug 2014 00:29:54 -0400 From: David Gibson Date: Tue, 26 Aug 2014 14:30:16 +1000 Message-Id: <1409027418-4453-2-git-send-email-david@gibson.dropbear.id.au> In-Reply-To: <1409027418-4453-1-git-send-email-david@gibson.dropbear.id.au> References: <1409027418-4453-1-git-send-email-david@gibson.dropbear.id.au> Subject: [Qemu-devel] [PATCH 1/3] target-ppc: Disable PReP testcases with !CONFIG_PREP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: agraf@suse.de Cc: qemu-devel@nongnu.org, David Gibson The test suites contain several tests which require the "prep" machine type, which will fail if that is configured out. Signed-off-by: David Gibson --- tests/boot-order-test.c | 4 ++++ tests/endianness-test.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tests/boot-order-test.c b/tests/boot-order-test.c index 360a691..bff16b5 100644 --- a/tests/boot-order-test.c +++ b/tests/boot-order-test.c @@ -112,6 +112,7 @@ static void test_pc_boot_order(void) test_boot_orders(NULL, read_boot_order_pc, test_cases_pc); } +#ifdef CONFIG_PREP static uint8_t read_m48t59(uint64_t addr, uint16_t reg) { writeb(addr, reg & 0xff); @@ -135,6 +136,7 @@ static void test_prep_boot_order(void) { test_boot_orders("prep", read_boot_order_prep, test_cases_prep); } +#endif /* CONFIG_PREP */ static uint64_t read_boot_order_pmac(void) { @@ -194,7 +196,9 @@ int main(int argc, char *argv[]) if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) { qtest_add_func("boot-order/pc", test_pc_boot_order); } else if (strcmp(arch, "ppc") == 0 || strcmp(arch, "ppc64") == 0) { +#ifdef CONFIG_PREP qtest_add_func("boot-order/prep", test_prep_boot_order); +#endif /* CONFIG_PREP */ qtest_add_func("boot-order/pmac_oldworld", test_pmac_oldworld_boot_order); qtest_add_func("boot-order/pmac_newworld", diff --git a/tests/endianness-test.c b/tests/endianness-test.c index 92e17d2..0857784 100644 --- a/tests/endianness-test.c +++ b/tests/endianness-test.c @@ -41,7 +41,9 @@ static const TestCase test_cases[] = { { "mips64", "malta", 0x10000000, .bswap = true }, { "mips64el", "fulong2e", 0x1fd00000 }, { "ppc", "g3beige", 0xfe000000, .bswap = true, .superio = "i82378" }, +#ifdef CONFIG_PREP { "ppc", "prep", 0x80000000, .bswap = true }, +#endif /* CONFIG_PREP */ { "ppc", "bamboo", 0xe8000000, .bswap = true, .superio = "i82378" }, { "ppc64", "mac99", 0xf2000000, .bswap = true, .superio = "i82378" }, { "ppc64", "pseries", 0x10080000000ULL, -- 1.9.3