From nobody Tue Feb 10 05:39:39 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1571772972; cv=none; d=zoho.com; s=zohoarc; b=QxmDUIUPKQfqc3rCUl2JrstvpdrApHElJ37vNhlyIAOJovRqO0L+JPQV3cvwPcZLfJMYgGWPjSWQFeOHwJZRI7zcD+VuzmuWNi/NqOayiVqc66Zab1Lh4odsuv2vxhJSPAmtb+M44kasGB/rfITnyowzRJEmfueTJJsdkLRpLng= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1571772972; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=LpJXKQKkVgScovOu0Bd6ZFI8XIdqfOawG4aSS/zoE0s=; b=Wne1N8R2bygP03eVkJUldW9wFuekULrgF6uMoN4b50zqiKoVGSgdYK+l+VPpQO/gvqGQMHY5AzHBxTi/sSi54eCPGUoPISxSXN4+5JPYeYG36TQ39Eygpn1skzmEkoGnEHOwJwXx/C1WeIGIh66sye4o2ZlrG9msd5WmpgFvtuE= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1571772972665857.6835688873465; Tue, 22 Oct 2019 12:36:12 -0700 (PDT) Received: from localhost ([::1]:42560 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMzwx-0006gX-H5 for importer@patchew.org; Tue, 22 Oct 2019 15:36:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37543) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iMznV-0004xp-HA for qemu-devel@nongnu.org; Tue, 22 Oct 2019 15:26:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iMznU-00027E-8f for qemu-devel@nongnu.org; Tue, 22 Oct 2019 15:26:25 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:42496) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iMznU-00026b-25 for qemu-devel@nongnu.org; Tue, 22 Oct 2019 15:26:24 -0400 Received: by mail-wr1-x441.google.com with SMTP id r1so9556404wrs.9 for ; Tue, 22 Oct 2019 12:26:24 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id v20sm15804359wml.26.2019.10.22.12.26.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2019 12:26:22 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C64A11FFA5; Tue, 22 Oct 2019 20:17:05 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LpJXKQKkVgScovOu0Bd6ZFI8XIdqfOawG4aSS/zoE0s=; b=iYQDLutPJOnZIZm9HXBfzFWbYMMwMfh+V76yE/CiZawGqnveccxCJD0TBxpJP65OEX tj1VQH5X8JlMIeHUgNzx0s1SwhUFRDtMjgfLn3h2ICrpd+svQAWl4sy11S8qkWrT/ZSz vlSqxlrVnEMNBh9x05Fc7Mn/BzWbd9x1Z9dVZPt9gtvxwvCoOmUhJnGbK8NceijqMFlD g9U13z4VYC8/HLt8SKiQG9hObJ9cpD8/JipCc5XEaqHXV8MbVw5PmRk1usjxXic0BLj1 sEaWa29Cx+xJL9odLeBjpAGwFhNfkNBaastV4sUbeMEThNdLPbus4tedW7hzOLXAwm7a RMxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LpJXKQKkVgScovOu0Bd6ZFI8XIdqfOawG4aSS/zoE0s=; b=kCXigkhJjLX1saxU7c01LDzAGMNF1V7kk58fyw0ID21B2uxx7VoKhVf+lAnd1YfXY6 m7dvkT5KWm6Jn4XmDNo5LwiEEnHT2Zm+we5fpD9bsLW++S+fyXSO3NVQfZrrFstkBlL/ ULBC2N0/hKENZGTOoYdfVQphGllzx+jGDLyvnOB3egmEbwhbVqvIBG6G6f5DL+jLM3nz H+R4LzHINw0fSJqZXs9UACLUZPtEONG159eER7Na4X/gPXODW7Qphhuq/dE0syjqC8zQ yzwJMM80HgRygohXOVvwARXdpw92dTcgQH8hcC69siMjQOjK/hbETja4ekKoTEQ/+tQq Jy+A== X-Gm-Message-State: APjAAAVWNENvLFhLxtERHLbLUwOMxzUdG3En0WPlO6vjMeHgXuJX0h7B NeB//fk4FTeDWzOIgRglkgJbcQ== X-Google-Smtp-Source: APXvYqxKqbIf15Q0Q1WnyyrmTJpMzgsMla4XdJw7x1+97ttj1Woi7Bt1E2cWKUq/h50wDHCJGHiQKA== X-Received: by 2002:a05:6000:10d:: with SMTP id o13mr4737511wrx.321.1571772382945; Tue, 22 Oct 2019 12:26:22 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 17/19] iotests: Skip "make check-block" if QEMU does not support virtio-blk Date: Tue, 22 Oct 2019 20:17:02 +0100 Message-Id: <20191022191704.6134-18-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191022191704.6134-1-alex.bennee@linaro.org> References: <20191022191704.6134-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fam@euphon.net, Thomas Huth , berrange@redhat.com, stefanb@linux.vnet.ibm.com, richard.henderson@linaro.org, f4bug@amsat.org, Max Reitz , cota@braap.org, stefanha@redhat.com, marcandre.lureau@redhat.com, pbonzini@redhat.com, aurelien@aurel32.net Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Thomas Huth The next patch is going to add some python-based tests to the "auto" group, and these tests require virtio-blk to work properly. Running iotests without virtio-blk likely does not make too much sense anyway, so instead of adding a check for the availability of virtio-blk to each and every test (which does not sound very appealing), let's rather add a check for this at the top level in the check-block.sh script instead (so that it is possible to run "make check" without the "check-block" part for qemu-system-tricore for example). Reviewed-by: Max Reitz Signed-off-by: Thomas Huth Message-Id: <20191022072135.11188-5-thuth@redhat.com> --- tests/check-block.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tests/check-block.sh b/tests/check-block.sh index 679aedec50c..e9e2978818a 100755 --- a/tests/check-block.sh +++ b/tests/check-block.sh @@ -26,10 +26,24 @@ if grep -q "CFLAGS.*-fsanitize" config-host.mak 2>/dev/= null ; then exit 0 fi =20 -if [ -z "$(find . -name 'qemu-system-*' -print)" ]; then +if [ -n "$QEMU_PROG" ]; then + qemu_prog=3D"$QEMU_PROG" +else + for binary in *-softmmu/qemu-system-* ; do + if [ -x "$binary" ]; then + qemu_prog=3D"$binary" + break + fi + done +fi +if [ -z "$qemu_prog" ]; then echo "No qemu-system binary available =3D=3D> Not running the qemu-iot= ests." exit 0 fi +if ! "$qemu_prog" -M none -device help | grep -q virtio-blk >/dev/null 2>&= 1 ; then + echo "$qemu_prog does not support virtio-blk =3D=3D> Not running the q= emu-iotests." + exit 0 +fi =20 if ! command -v bash >/dev/null 2>&1 ; then echo "bash not available =3D=3D> Not running the qemu-iotests." --=20 2.20.1