From patchwork Fri Aug 3 08:52:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 143395 Delivered-To: patches@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp222451ljj; Fri, 3 Aug 2018 01:52:40 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc0+GpxLvhNgwBQr1Lm3NtY+LEqnA3mXi1OoLUFftQSyAb10TeUVrIODSX0gPuYSLma6G6X X-Received: by 2002:a63:7252:: with SMTP id c18-v6mr2744691pgn.186.1533286359927; Fri, 03 Aug 2018 01:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533286359; cv=none; d=google.com; s=arc-20160816; b=dvZw6JK1RhkBNW4LaRSw4ZKvofEMVMBBKE6oq+nUNDwz2uDRJL5n5mDM1g/zM2Bp2G 1sq8/TXLkYBVRIlsuPENu3wbYIAnkYWU0uzJWlrvTfW30lPqaH5LrVQil2/NiucpwzOH qKGg8f2mEEjTlcDfZOPOIcxny6RjuPw9w0V9EqMn6Q+45aoDwv/TbvIhFViKSsKGDV93 JU8l0APXQ9yi9Xmy2sndvQkQymx9yk0Jy324CrJBX68A3QMWXUAvhS3KsLRBeZOclR5y MhWE2+6IDPXSRcdFpXV0MHOB/aVLgaANQl4Spulc/hyaeV3afifwECdnNjBzgsH2cPy8 wK7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=vG+2KBKAqpVAXjgu3jXk/qVCv52Izyy3f6ARiujiLxw=; b=wbmfpF2qajc57o5iDCirekmmCE1+CcrTVlQngcASH45oKQBOEyVgjABlY6Yn2fRCcg A81O8EI+pRo4KsQIjreBSmTibMjqxUcvGC3dm1V4+RW2c6PG2rIgenKpV4SBTwPvF9xE 4EUqrwrxrPiyC5d+LIUB5HbRJtIjRI3OtUD9oL3kH+v8B1u4GyrQfyiAp30KLzbpdBMQ Y6e2odJbQBhEuXQUWcMsmQJmkeA81QJ+XR5upvXrMWH+ZNdKx+nspWKrlAYpoUTGUsTf /x8DHhnsNsErRBHgZm7WTgX63X04QJ96ns9gTAwTyc6X0XiSKDmPFoL2lquUPvZDq8oV 2oxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::2 as permitted sender) smtp.mailfrom=pm215@archaic.org.uk; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by mx.google.com with ESMTPS id d26-v6si4426667pgb.571.2018.08.03.01.52.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Aug 2018 01:52:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::2 as permitted sender) client-ip=2001:8b0:1d0::2; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 2001:8b0:1d0::2 as permitted sender) smtp.mailfrom=pm215@archaic.org.uk; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from pm215 by orth.archaic.org.uk with local (Exim 4.89) (envelope-from ) id 1flVp3-0006rC-H2; Fri, 03 Aug 2018 09:52:33 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, =?utf-8?q?Alex_Benn=C3=A9e?= , Fam Zheng , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 0/5] tests/vm: various minor improvements Date: Fri, 3 Aug 2018 09:52:25 +0100 Message-Id: <20180803085230.30574-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.17.1 The setup I had for my BSD VMs broke today, so I thought I'd have a look at using the tests/vm/ support for building QEMU inside BSD VMs rather than re-rolling my own. This patchset fixes some rough edges I ran into along the way: * fixes support for non-KVM accelerators * propagates J=n setting into 'make check' in the VM * propagates V=1 setting into 'make' and 'make check' in the VM * uses --output-sync so that J=n settings don't mangle output * bumps the RAM settings so J=n doesn't cause the guest to run out of memory and kill the compiler Ideally I'd like to be able to separately invoke commands for "build in VM" and "run make check in VM for that build"; for instance I only want V=1 on the make-check, not the make, and in some cases might want to do a build but not check, and so on. But that seemed too complicated for the moment. Is it possible for the VMs to be persistent? Currently it looks like they throw away their contents and start afresh for every invocation. Doing build tests as incremental is faster than doing every one as a from-clean... Also, I notice that the OpenBSD VM setup is using SDL 1.2, which means that configure complains and suggests switching to SDL 2.0. How do we update the base image? thanks -- PMM Peter Maydell (5): tests/vm: Use -cpu max rather than -cpu host tests/vm: Pass the jobs parallelism setting to 'make check' tests/vm: Propagate V=1 down into the make inside the VM tests/vm: Bump guest RAM up from 2G to 4G tests/vm: Use make's --output-sync option tests/vm/Makefile.include | 1 + docs/devel/testing.rst | 1 + tests/vm/basevm.py | 9 ++++++--- tests/vm/freebsd | 4 ++-- tests/vm/netbsd | 4 ++-- tests/vm/openbsd | 4 ++-- tests/vm/ubuntu.i386 | 4 ++-- 7 files changed, 16 insertions(+), 11 deletions(-) -- 2.17.1