Received: from eggs.gnu.org ([2001:4830:134:3::10]:50145) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGm0R-0008MD-CX for qemu-devel@nongnu.org; Tue, 13 Dec 2016 07:16:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGm0N-0000IR-Dk for qemu-devel@nongnu.org; Tue, 13 Dec 2016 07:16:27 -0500 Received: from 3.mo1.mail-out.ovh.net ([46.105.60.232]:58294) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cGm0N-0000Gr-7F for qemu-devel@nongnu.org; Tue, 13 Dec 2016 07:16:23 -0500 Received: from player795.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo1.mail-out.ovh.net (Postfix) with ESMTP id 75B5F282CF for ; Tue, 13 Dec 2016 13:16:21 +0100 (CET) Date: Tue, 13 Dec 2016 13:16:17 +0100 From: Greg Kurz Message-ID: <20161213131617.10949210@bahia.lan> In-Reply-To: <1481585316-31612-3-git-send-email-lvivier@redhat.com> References: <1481585316-31612-1-git-send-email-lvivier@redhat.com> <1481585316-31612-3-git-send-email-lvivier@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/4] qtest: add display-vga-test to ppc64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: qemu-devel@nongnu.org, David Gibson , qemu-ppc@nongnu.org On Tue, 13 Dec 2016 00:28:34 +0100 Laurent Vivier wrote: > Only enable for ppc64 in the Makefile, but added > code in the file to check cirrus card only on architectures > supporting it (alpha, mips, i386, x86_64). > > Signed-off-by: Laurent Vivier > --- > tests/Makefile.include | 1 + > tests/display-vga-test.c | 7 ++++++- > 2 files changed, 7 insertions(+), 1 deletion(-) > > diff --git a/tests/Makefile.include b/tests/Makefile.include > index be6209d..b574964 100644 > --- a/tests/Makefile.include > +++ b/tests/Makefile.include > @@ -286,6 +286,7 @@ check-qtest-ppc64-y += $(check-qtest-virtio-y) > check-qtest-ppc64-y += tests/test-netfilter$(EXESUF) > check-qtest-ppc64-y += tests/test-filter-mirror$(EXESUF) > check-qtest-ppc64-y += tests/test-filter-redirector$(EXESUF) > +check-qtest-ppc64-y += tests/display-vga-test$(EXESUF) > > check-qtest-sh4-y = tests/endianness-test$(EXESUF) > > diff --git a/tests/display-vga-test.c b/tests/display-vga-test.c > index 9146021..2d7d24e 100644 > --- a/tests/display-vga-test.c > +++ b/tests/display-vga-test.c > @@ -50,9 +50,14 @@ static void pci_virtio_vga(void) > > int main(int argc, char **argv) > { > + const char *arch = qtest_get_arch(); > + > g_test_init(&argc, &argv, NULL); > > - qtest_add_func("/display/pci/cirrus", pci_cirrus); > + if (strcmp(arch, "alpha") == 0 || strcmp(arch, "i386") == 0 || > + strcmp(arch, "mips") == 0 || strcmp(arch, "x86_64") == 0) { > + qtest_add_func("/display/pci/cirrus", pci_cirrus); > + } > qtest_add_func("/display/pci/stdvga", pci_stdvga); > qtest_add_func("/display/pci/secondary", pci_secondary); > qtest_add_func("/display/pci/multihead", pci_multihead); Reviewed-by: Greg Kurz TEST: tests/display-vga-test... (pid=1462) /ppc64/display/pci/stdvga: OK /ppc64/display/pci/secondary: OK /ppc64/display/pci/multihead: OK /ppc64/display/pci/virtio-gpu: OK PASS: tests/display-vga-test Tested-by: Greg Kurz