From nobody Sat Oct 25 08:49:11 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1520627428051140.17255098458884; Fri, 9 Mar 2018 12:30:28 -0800 (PST) Received: from localhost ([::1]:47941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOep-00014f-4u for importer@patchew.org; Fri, 09 Mar 2018 15:30:27 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOd1-0008C7-AY for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euOd0-0006m1-96 for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:35 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41474) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1euOd0-0006lo-0h for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:34 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 523AC80C36; Fri, 9 Mar 2018 20:28:33 +0000 (UTC) Received: from localhost (ovpn-116-64.gru2.redhat.com [10.97.116.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id 228607E230; Fri, 9 Mar 2018 20:28:30 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Fri, 9 Mar 2018 17:28:20 -0300 Message-Id: <20180309202827.12085-2-ehabkost@redhat.com> In-Reply-To: <20180309202827.12085-1-ehabkost@redhat.com> References: <20180309202827.12085-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 09 Mar 2018 20:28:33 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 1/8] device-crash-test: Refactor loglevel configuration code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Thomas Huth , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Use action=3D'store_const', dest=3D'loglevel' to represent the effect of each option more clearly. This will also make the last option in the command-line override the previous ones (e.g.: "-d -q"). Signed-off-by: Eduardo Habkost --- scripts/device-crash-test | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/scripts/device-crash-test b/scripts/device-crash-test index 7417177ebb..c6a7875357 100755 --- a/scripts/device-crash-test +++ b/scripts/device-crash-test @@ -484,7 +484,7 @@ def casesToTest(args, testcase): if args.random: cases =3D list(cases) cases =3D random.sample(cases, min(args.random, len(cases))) - if args.debug: + if logger.isEnabledFor(logging.DEBUG): cases =3D list(cases) dbg("%d test cases to test", len(cases)) if args.shuffle: @@ -511,11 +511,15 @@ def main(): parser.add_argument('-t', metavar=3D'KEY=3DVALUE', nargs=3D'*', help=3D"Limit test cases to KEY=3DVALUE", action=3D'append', dest=3D'testcases', default=3D[= ]) - parser.add_argument('-d', '--debug', action=3D'store_true', + parser.set_defaults(loglevel=3Dlogging.INFO) + parser.add_argument('-d', '--debug',action=3D'store_const', + dest=3D'loglevel', const=3Dlogging.DEBUG, help=3D'debug output') - parser.add_argument('-v', '--verbose', action=3D'store_true', default= =3DTrue, + parser.add_argument('-v', '--verbose',action=3D'store_const', + dest=3D'loglevel', const=3Dlogging.INFO, help=3D'verbose output') - parser.add_argument('-q', '--quiet', dest=3D'verbose', action=3D'store= _false', + parser.add_argument('-q', '--quiet',action=3D'store_const', + dest=3D'loglevel', const=3Dlogging.WARN, help=3D'non-verbose output') parser.add_argument('-r', '--random', type=3Dint, metavar=3D'COUNT', help=3D'run a random sample of COUNT test cases', @@ -536,13 +540,7 @@ def main(): help=3D'QEMU binary to run') args =3D parser.parse_args() =20 - if args.debug: - lvl =3D logging.DEBUG - elif args.verbose: - lvl =3D logging.INFO - else: - lvl =3D logging.WARN - logging.basicConfig(stream=3Dsys.stdout, level=3Dlvl, format=3D'%(leve= lname)s: %(message)s') + logging.basicConfig(stream=3Dsys.stdout, level=3Dargs.loglevel, format= =3D'%(levelname)s: %(message)s') =20 fatal_failures =3D [] wl_stats =3D {} @@ -599,7 +597,7 @@ def main(): if skipped: logger.info("Skipped %d test cases", skipped) =20 - if args.debug: + if logger.isEnabledFor(logging.DEBUG): stats =3D sorted([(len(wl_stats.get(i, [])), wl) for i, wl in enum= erate(ERROR_WHITELIST)]) for count, wl in stats: dbg("whitelist entry stats: %d: %r", count, wl) --=20 2.14.3 From nobody Sat Oct 25 08:49:11 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 152062762300438.42343368917625; Fri, 9 Mar 2018 12:33:43 -0800 (PST) Received: from localhost ([::1]:47962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOht-0003bQ-J1 for importer@patchew.org; Fri, 09 Mar 2018 15:33:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOd3-0008Ej-PZ for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euOd2-0006mz-Up for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:37 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40652) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1euOd2-0006mm-P4 for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:36 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 17CA1368E6; Fri, 9 Mar 2018 20:28:36 +0000 (UTC) Received: from localhost (ovpn-116-64.gru2.redhat.com [10.97.116.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id BCBA55C54F; Fri, 9 Mar 2018 20:28:34 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Fri, 9 Mar 2018 17:28:21 -0300 Message-Id: <20180309202827.12085-3-ehabkost@redhat.com> In-Reply-To: <20180309202827.12085-1-ehabkost@redhat.com> References: <20180309202827.12085-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 09 Mar 2018 20:28:36 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 2/8] device-crash-test: Add examples to script documentation X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Thomas Huth , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Add simple examples for common use cases. Signed-off-by: Eduardo Habkost --- scripts/device-crash-test | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/device-crash-test b/scripts/device-crash-test index c6a7875357..364c779cdb 100755 --- a/scripts/device-crash-test +++ b/scripts/device-crash-test @@ -22,6 +22,25 @@ """ Run QEMU with all combinations of -machine and -device types, check for crashes and unexpected errors. + +Example usage: + +Test all QEMU binaries found in the current directory, with all +machine-type/device combinations, but skip the combinations that are expec= ted to +fail: + + device-crash-test + +Test all QEMU binaries found in the current directory, with all +machine-type/device combinations, including the combinations that are expe= cted +to fail: + + device-crash-test -F + +Test a single QEMU binary: + + device-crash-test /path/to/qemu/binary + """ =20 import sys --=20 2.14.3 From nobody Sat Oct 25 08:49:11 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1520627805226426.1729572265457; Fri, 9 Mar 2018 12:36:45 -0800 (PST) Received: from localhost ([::1]:47979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOku-0006B0-AS for importer@patchew.org; Fri, 09 Mar 2018 15:36:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOd9-0008L2-W3 for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euOd6-0006nt-Ss for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49742) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1euOd6-0006nj-N8 for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:40 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F264581DF3; Fri, 9 Mar 2018 20:28:39 +0000 (UTC) Received: from localhost (ovpn-116-64.gru2.redhat.com [10.97.116.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8C18D1798B; Fri, 9 Mar 2018 20:28:37 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Fri, 9 Mar 2018 17:28:22 -0300 Message-Id: <20180309202827.12085-4-ehabkost@redhat.com> In-Reply-To: <20180309202827.12085-1-ehabkost@redhat.com> References: <20180309202827.12085-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 09 Mar 2018 20:28:40 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 3/8] device-crash-test: Accept machine=DEFAULT to test the default machine X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Thomas Huth , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This will be useful for running a smaller test set on "make check", instead of testing every single machine-type/device combination. Signed-off-by: Eduardo Habkost --- scripts/device-crash-test | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/scripts/device-crash-test b/scripts/device-crash-test index 364c779cdb..632b128e44 100755 --- a/scripts/device-crash-test +++ b/scripts/device-crash-test @@ -41,6 +41,11 @@ Test a single QEMU binary: =20 device-crash-test /path/to/qemu/binary =20 +Test all QEMU binaries found in the current directory, using only the defa= ult +machine-type: + + device-crash-test -t machine=3DDEFAULT + """ =20 import sys @@ -357,7 +362,7 @@ class QemuBinaryInfo(object): # there's no way to query DeviceClass::user_creatable using QM= P, # so use 'info qdm': self.no_user_devs =3D set([d['name'] for d in infoQDM(vm, ) if= d['no-user']]) - self.machines =3D list(m['name'] for m in vm.command('query-ma= chines')) + self.machines =3D vm.command('query-machines') self.user_devs =3D self.alldevs.difference(self.no_user_devs) self.kvm_available =3D vm.command('query-kvm')['enabled'] finally: @@ -390,6 +395,19 @@ class QemuBinaryInfo(object): self._machine_info[machine] =3D mi return mi =20 + def defaultMachine(self): + """Default machine-type for the QEMU binary + + If no default machine-type is returned by query-machines, return t= he + first machine-type in the list. + """ + machines =3D self.machines + defmachine =3D [m['name'] for m in self.machines if m.get('is-defa= ult')] + if defmachine: + return defmachine[0] + else: + return self.machines[0]['name'] + =20 BINARY_INFO =3D {} =20 @@ -455,7 +473,7 @@ def accelsToTest(args, testcase): =20 =20 def machinesToTest(args, testcase): - return getBinaryInfo(args, testcase['binary']).machines + return [m['name'] for m in getBinaryInfo(args, testcase['binary']).mac= hines] =20 =20 def devicesToTest(args, testcase): @@ -580,6 +598,13 @@ def main(): return 1 =20 for t in casesToTest(args, tc): + + # expand some test case variables to their actual values before + # using them: + # "-t machine=3DDEFAULT" can be used to use the default machine-ty= pe + if t['machine'] =3D=3D 'DEFAULT': + t['machine'] =3D getBinaryInfo(args, t['binary']).defaultMachi= ne() + logger.info("running test case: %s", formatTestCase(t)) total +=3D 1 =20 --=20 2.14.3 From nobody Sat Oct 25 08:49:11 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1520627619481607.3346243123538; Fri, 9 Mar 2018 12:33:39 -0800 (PST) Received: from localhost ([::1]:47961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOhl-0003Sc-7a for importer@patchew.org; Fri, 09 Mar 2018 15:33:29 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOdC-0008Nv-S9 for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euOdB-0006pl-QC for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50306) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1euOdB-0006pR-Ku for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:45 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 81D20C04BE0E; Fri, 9 Mar 2018 20:28:44 +0000 (UTC) Received: from localhost (ovpn-116-64.gru2.redhat.com [10.97.116.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id 70C79782DE; Fri, 9 Mar 2018 20:28:41 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Fri, 9 Mar 2018 17:28:23 -0300 Message-Id: <20180309202827.12085-5-ehabkost@redhat.com> In-Reply-To: <20180309202827.12085-1-ehabkost@redhat.com> References: <20180309202827.12085-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 09 Mar 2018 20:28:44 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 4/8] device-crash-test: New known crashes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Thomas Huth , Pavel Pisa , John Snow , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" We are not running the script on "make check" yet, and additional bugs were introduced recently in the tree. Whitelist the new crashes while we investigate, to allow us to run device-crash-test on "make check" as soon as possible to prevent new bugs. Cc: Pavel Pisa Cc: John Snow Signed-off-by: Eduardo Habkost --- scripts/device-crash-test | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/device-crash-test b/scripts/device-crash-test index 632b128e44..b9a7470efc 100755 --- a/scripts/device-crash-test +++ b/scripts/device-crash-test @@ -241,11 +241,15 @@ ERROR_WHITELIST =3D [ {'exitcode':-6, 'log':r"Object .* is not an instance of type generic-p= c-machine", 'loglevel':logging.ERROR}, {'exitcode':-6, 'log':r"Object .* is not an instance of type e500-ccsr= ", 'loglevel':logging.ERROR}, {'exitcode':-6, 'log':r"vmstate_register_with_alias_id: Assertion `!se= ->compat \|\| se->instance_id =3D=3D 0' failed", 'loglevel':logging.ERROR}, + {'exitcode':-6, 'device':'isa-fdc', 'loglevel':logging.ERROR, 'expecte= d':True}, {'exitcode':-11, 'device':'gus', 'loglevel':logging.ERROR, 'expected':= True}, {'exitcode':-11, 'device':'isa-serial', 'loglevel':logging.ERROR, 'exp= ected':True}, {'exitcode':-11, 'device':'sb16', 'loglevel':logging.ERROR, 'expected'= :True}, {'exitcode':-11, 'device':'cs4231a', 'loglevel':logging.ERROR, 'expect= ed':True}, {'exitcode':-11, 'machine':'isapc', 'device':'.*-iommu', 'loglevel':lo= gging.ERROR, 'expected':True}, + {'exitcode':-11, 'device':'mioe3680_pci', 'loglevel':logging.ERROR, 'e= xpected':True}, + {'exitcode':-11, 'device':'pcm3680_pci', 'loglevel':logging.ERROR, 'ex= pected':True}, + {'exitcode':-11, 'device':'kvaser_pci', 'loglevel':logging.ERROR, 'exp= ected':True}, =20 # everything else (including SIGABRT and SIGSEGV) will be a fatal erro= r: {'exitcode':None, 'fatal':True, 'loglevel':logging.FATAL}, --=20 2.14.3 From nobody Sat Oct 25 08:49:11 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1520627641449307.04096864716416; Fri, 9 Mar 2018 12:34:01 -0800 (PST) Received: from localhost ([::1]:47963 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOiG-0003t8-Lz for importer@patchew.org; Fri, 09 Mar 2018 15:34:00 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOdL-00007F-BU for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euOdI-0006sg-70 for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36586) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1euOdI-0006sU-1O for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:52 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 57F7BC0587E5; Fri, 9 Mar 2018 20:28:51 +0000 (UTC) Received: from localhost (ovpn-116-64.gru2.redhat.com [10.97.116.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id DF8E7183B7; Fri, 9 Mar 2018 20:28:45 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Fri, 9 Mar 2018 17:28:24 -0300 Message-Id: <20180309202827.12085-6-ehabkost@redhat.com> In-Reply-To: <20180309202827.12085-1-ehabkost@redhat.com> References: <20180309202827.12085-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 09 Mar 2018 20:28:51 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 5/8] device-crash-test: Remove runnable-machine check X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Thomas Huth , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This optimization to skip tests if the machine is not runnable is unreliable and makes the script ignore actual QEMU crashes, so we're safer simply removing it. Signed-off-by: Eduardo Habkost --- scripts/device-crash-test | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/scripts/device-crash-test b/scripts/device-crash-test index b9a7470efc..f406890519 100755 --- a/scripts/device-crash-test +++ b/scripts/device-crash-test @@ -372,33 +372,6 @@ class QemuBinaryInfo(object): finally: vm.shutdown() =20 - def machineInfo(self, machine): - """Query for information on a specific machine-type - - Results are cached internally, in case the same machine- - type is queried multiple times. - """ - if machine in self._machine_info: - return self._machine_info[machine] - - mi =3D {} - args =3D ['-S', '-machine', '%s' % (machine)] - dbg("querying machine info for binary=3D%s machine=3D%s", self.bin= ary, machine) - vm =3D QEMUMachine(binary=3Dself.binary, args=3Dargs) - try: - vm.launch() - mi['runnable'] =3D True - except KeyboardInterrupt: - raise - except: - dbg("exception trying to run binary=3D%s machine=3D%s", self.b= inary, machine, exc_info=3Dsys.exc_info()) - dbg("log: %r", vm.get_log()) - mi['runnable'] =3D False - - vm.shutdown() - self._machine_info[machine] =3D mi - return mi - def defaultMachine(self): """Default machine-type for the QEMU binary =20 @@ -613,9 +586,7 @@ def main(): total +=3D 1 =20 expected_match =3D findExpectedResult(t) - if (args.quick and - (expected_match or - not getBinaryInfo(args, t['binary']).machineInfo(t['machi= ne'])['runnable'])): + if args.quick and expected_match: dbg("skipped: %s", formatTestCase(t)) skipped +=3D 1 continue --=20 2.14.3 From nobody Sat Oct 25 08:49:11 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1520627824695362.6957623280007; Fri, 9 Mar 2018 12:37:04 -0800 (PST) Received: from localhost ([::1]:47980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOlD-0006Sn-Ut for importer@patchew.org; Fri, 09 Mar 2018 15:37:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOdL-00007R-Iw for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euOdK-0006tA-Gu for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55556) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1euOdK-0006sv-8m for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:54 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8F77A3DE42; Fri, 9 Mar 2018 20:28:53 +0000 (UTC) Received: from localhost (ovpn-116-64.gru2.redhat.com [10.97.116.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id BFC7F1813D; Fri, 9 Mar 2018 20:28:52 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Fri, 9 Mar 2018 17:28:25 -0300 Message-Id: <20180309202827.12085-7-ehabkost@redhat.com> In-Reply-To: <20180309202827.12085-1-ehabkost@redhat.com> References: <20180309202827.12085-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 09 Mar 2018 20:28:53 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 6/8] device-crash-test: Use WARN for known crashes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Thomas Huth , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" We're going to run device-crash-test on "make check", so it's better to make the script less noisy on known errors. Signed-off-by: Eduardo Habkost --- scripts/device-crash-test | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/scripts/device-crash-test b/scripts/device-crash-test index f406890519..ed9a552fa1 100755 --- a/scripts/device-crash-test +++ b/scripts/device-crash-test @@ -228,28 +228,28 @@ ERROR_WHITELIST =3D [ {'exitcode':1, 'loglevel':logging.INFO}, =20 # KNOWN CRASHES: - # Known crashes will generate error messages, but won't be fatal. - # Those entries must be removed once we fix the crashes. - {'exitcode':-6, 'log':r"Device 'serial0' is in use", 'loglevel':loggin= g.ERROR}, - {'exitcode':-6, 'log':r"qemu_net_client_setup: Assertion `!peer->peer'= failed", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r'RAMBlock "[\w.-]+" already registered', 'logle= vel':logging.ERROR}, - {'exitcode':-6, 'log':r"find_ram_offset: Assertion `size !=3D 0' faile= d.", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"add_cpreg_to_hashtable: code should not be rea= ched", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"qemu_alloc_display: Assertion `surface->image = !=3D NULL' failed", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"Unexpected error in error_set_from_qdev_prop_e= rror", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"Object .* is not an instance of type spapr-mac= hine", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"Object .* is not an instance of type generic-p= c-machine", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"Object .* is not an instance of type e500-ccsr= ", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"vmstate_register_with_alias_id: Assertion `!se= ->compat \|\| se->instance_id =3D=3D 0' failed", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'device':'isa-fdc', 'loglevel':logging.ERROR, 'expecte= d':True}, - {'exitcode':-11, 'device':'gus', 'loglevel':logging.ERROR, 'expected':= True}, - {'exitcode':-11, 'device':'isa-serial', 'loglevel':logging.ERROR, 'exp= ected':True}, - {'exitcode':-11, 'device':'sb16', 'loglevel':logging.ERROR, 'expected'= :True}, - {'exitcode':-11, 'device':'cs4231a', 'loglevel':logging.ERROR, 'expect= ed':True}, - {'exitcode':-11, 'machine':'isapc', 'device':'.*-iommu', 'loglevel':lo= gging.ERROR, 'expected':True}, - {'exitcode':-11, 'device':'mioe3680_pci', 'loglevel':logging.ERROR, 'e= xpected':True}, - {'exitcode':-11, 'device':'pcm3680_pci', 'loglevel':logging.ERROR, 'ex= pected':True}, - {'exitcode':-11, 'device':'kvaser_pci', 'loglevel':logging.ERROR, 'exp= ected':True}, + # Known crashes will generate warn messages + # FIXME: all those crashes MUST be fixed, and all these entries MUST b= e removed + {'exitcode':-6, 'log':r"Device 'serial0' is in use", 'loglevel':loggin= g.WARN}, + {'exitcode':-6, 'log':r"qemu_net_client_setup: Assertion `!peer->peer'= failed", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r'RAMBlock "[\w.-]+" already registered', 'logle= vel':logging.WARN}, + {'exitcode':-6, 'log':r"find_ram_offset: Assertion `size !=3D 0' faile= d.", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"add_cpreg_to_hashtable: code should not be rea= ched", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"qemu_alloc_display: Assertion `surface->image = !=3D NULL' failed", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"Unexpected error in error_set_from_qdev_prop_e= rror", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"Object .* is not an instance of type spapr-mac= hine", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"Object .* is not an instance of type generic-p= c-machine", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"Object .* is not an instance of type e500-ccsr= ", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"vmstate_register_with_alias_id: Assertion `!se= ->compat \|\| se->instance_id =3D=3D 0' failed", 'loglevel':logging.WARN}, + {'exitcode':-6, 'device':'isa-fdc', 'loglevel':logging.WARN, 'expected= ':True}, + {'exitcode':-11, 'device':'gus', 'loglevel':logging.WARN, 'expected':T= rue}, + {'exitcode':-11, 'device':'isa-serial', 'loglevel':logging.WARN, 'expe= cted':True}, + {'exitcode':-11, 'device':'sb16', 'loglevel':logging.WARN, 'expected':= True}, + {'exitcode':-11, 'device':'cs4231a', 'loglevel':logging.WARN, 'expecte= d':True}, + {'exitcode':-11, 'machine':'isapc', 'device':'.*-iommu', 'loglevel':lo= gging.WARN, 'expected':True}, + {'exitcode':-11, 'device':'mioe3680_pci', 'loglevel':logging.WARN, 'ex= pected':True}, + {'exitcode':-11, 'device':'pcm3680_pci', 'loglevel':logging.WARN, 'exp= ected':True}, + {'exitcode':-11, 'device':'kvaser_pci', 'loglevel':logging.WARN, 'expe= cted':True}, =20 # everything else (including SIGABRT and SIGSEGV) will be a fatal erro= r: {'exitcode':None, 'fatal':True, 'loglevel':logging.FATAL}, --=20 2.14.3 From nobody Sat Oct 25 08:49:11 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1520627678761648.1733764669602; Fri, 9 Mar 2018 12:34:38 -0800 (PST) Received: from localhost ([::1]:47964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOil-0004JX-TW for importer@patchew.org; Fri, 09 Mar 2018 15:34:32 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50319) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOdN-00009H-9g for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euOdM-0006tj-Iw for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:36628) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1euOdM-0006tY-Ch for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:56 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AF018C058EA8; Fri, 9 Mar 2018 20:28:55 +0000 (UTC) Received: from localhost (ovpn-116-64.gru2.redhat.com [10.97.116.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0F7016266D; Fri, 9 Mar 2018 20:28:54 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Fri, 9 Mar 2018 17:28:26 -0300 Message-Id: <20180309202827.12085-8-ehabkost@redhat.com> In-Reply-To: <20180309202827.12085-1-ehabkost@redhat.com> References: <20180309202827.12085-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 09 Mar 2018 20:28:55 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 7/8] device-crash-test: Don't print warnings in quiet mode X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Thomas Huth , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" This will be useful for hiding known crashes on "make check". Signed-off-by: Eduardo Habkost --- scripts/device-crash-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/device-crash-test b/scripts/device-crash-test index ed9a552fa1..36194e4347 100755 --- a/scripts/device-crash-test +++ b/scripts/device-crash-test @@ -533,7 +533,7 @@ def main(): dest=3D'loglevel', const=3Dlogging.INFO, help=3D'verbose output') parser.add_argument('-q', '--quiet',action=3D'store_const', - dest=3D'loglevel', const=3Dlogging.WARN, + dest=3D'loglevel', const=3Dlogging.ERROR, help=3D'non-verbose output') parser.add_argument('-r', '--random', type=3Dint, metavar=3D'COUNT', help=3D'run a random sample of COUNT test cases', --=20 2.14.3 From nobody Sat Oct 25 08:49:11 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1520627950130348.63723266785314; Fri, 9 Mar 2018 12:39:10 -0800 (PST) Received: from localhost ([::1]:47990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOn9-0008BN-4E for importer@patchew.org; Fri, 09 Mar 2018 15:39:03 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOdP-0000Bn-8p for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:29:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euOdO-0006ug-Fe for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50548) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1euOdO-0006uR-AW for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:58 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 987BAC049D5C; Fri, 9 Mar 2018 20:28:57 +0000 (UTC) Received: from localhost (ovpn-116-64.gru2.redhat.com [10.97.116.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2B8297E231; Fri, 9 Mar 2018 20:28:56 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Fri, 9 Mar 2018 17:28:27 -0300 Message-Id: <20180309202827.12085-9-ehabkost@redhat.com> In-Reply-To: <20180309202827.12085-1-ehabkost@redhat.com> References: <20180309202827.12085-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 09 Mar 2018 20:28:57 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 8/8] tests: Run device-crash-test on "make check" X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Thomas Huth , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Run a subset of tests using device-crash-test on "make check", to help us catch device crashes earlier. This also add a "check-device-crash-test-full" rule, that will check all machine/device combinations. Signed-off-by: Eduardo Habkost --- tests/Makefile.include | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index ef9b88c369..0ba641b8d4 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -942,6 +942,17 @@ check-decodetree: ./check.sh "$(PYTHON)" "$(SRC_PATH)/scripts/decodetree.py", \ TEST, decodetree.py) =20 +CRASH_TEST =3D $(SRC_PATH)/scripts/device-crash-test +CRASH_TEST_OPTIONS =3D $(if $(V),-v,-q) +CRASH_TEST_BINARIES =3D $(foreach TARGET,$(TARGETS), $(TARGET)-softmmu/qem= u-system-$(TARGET)) + +.PHONY: check-device-crash-quick +check-device-crash-quick: + $(CRASH_TEST) $(CRASH_TEST_OPTIONS) -t machine=3DDEFAULT accel=3Dtcg -- $= (CRASH_TEST_BINARIES) + +check-device-crash-full: + $(CRASH_TEST) $(CRASH_TEST_OPTIONS) -F $(CRASH_TEST_BINARIES) + # Consolidated targets =20 .PHONY: check-qapi-schema check-qtest check-unit check check-clean @@ -950,7 +961,7 @@ check-qtest: $(patsubst %,check-qtest-%, $(QTEST_TARGET= S)) check-unit: $(patsubst %,check-%, $(check-unit-y)) check-speed: $(patsubst %,check-%, $(check-speed-y)) check-block: $(patsubst %,check-%, $(check-block-y)) -check: check-qapi-schema check-unit check-qtest check-decodetree +check: check-qapi-schema check-unit check-qtest check-decodetree check-dev= ice-crash-quick check-clean: $(MAKE) -C tests/tcg clean rm -rf $(check-unit-y) tests/*.o $(QEMU_IOTESTS_HELPERS-y) --=20 2.14.3