From nobody Wed Nov 5 18:01:39 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.zoho.com; dkim=fail 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; Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1496420508852375.942163997844; Fri, 2 Jun 2017 09:21:48 -0700 (PDT) Received: from localhost ([::1]:50639 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGpKd-00013L-C8 for importer@patchew.org; Fri, 02 Jun 2017 12:21:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGp84-000671-RD for qemu-devel@nongnu.org; Fri, 02 Jun 2017 12:08:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGp82-00054t-NB for qemu-devel@nongnu.org; Fri, 02 Jun 2017 12:08:48 -0400 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:37139) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dGp82-00054A-Gs for qemu-devel@nongnu.org; Fri, 02 Jun 2017 12:08:46 -0400 Received: by mail-wm0-x232.google.com with SMTP id d127so30559941wmf.0 for ; Fri, 02 Jun 2017 09:08:46 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id a9sm43284977wrc.22.2017.06.02.09.08.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Jun 2017 09:08:41 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id C9ABC3E0488; Fri, 2 Jun 2017 17:08:54 +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=kVUVMW/AsmLeYm1c7h4wJg2rsGFgMmHVI2Sldv2IKGY=; b=C5YKLzKQQKnisbuJhTP9Dw8NKMdFEdxxzq+Rs3+WRjbKtVNh5IyNssO/zspHYbzHE8 fpPX6bFd4GtRwya/JKayLyoSp76PGuYgqNTqLFKrbyaQsA3QRMsyhRxsnfwWtKfMXQi6 yAZ4z4ObMRnzdlq0vs9k7XtA/N7H3l1bciVBw= 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=kVUVMW/AsmLeYm1c7h4wJg2rsGFgMmHVI2Sldv2IKGY=; b=sp4X5qKLknunkleOzKXGrVCeoGlsg6JvfX/J0x4DtPGoK+EV5viOH9+QkDUSHG2Dkl Nv2rH6+j/BGmO6VnUz3ZJNAi660dBe9ihkCawqvUYSbNT21s/GQLEzJpGGgbJzUiMGKy RY/BSfAJXbfuBDCuIm4zpcwJbxvXym3NtJAXFTC0n/HKIIh5wI6BMLpe0+HcqAAyTqHZ kUOneCJCOuI6ZhU54FNXWPGeYo3qgt/j3h1Mo4tbnPEoIlb1pgpEy8av47jBq6LtzSQj Pd1e0GodOZfxda56Jyg1nebQVgln4y++d2BHu5ccD4h6oBTD1n4/q/gA8aG2GBnGmn+u RMhg== X-Gm-Message-State: AODbwcCHiyX3POJcvK3EtVlrhev7xaAxvvEYyXTEVJT8w1A+AUNHg11s CtBQ7j3dVT7/KvW8 X-Received: by 10.28.14.205 with SMTP id 196mr41789wmo.13.1496419725444; Fri, 02 Jun 2017 09:08:45 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Fri, 2 Jun 2017 17:08:48 +0100 Message-Id: <20170602160848.4913-11-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170602160848.4913-1-alex.bennee@linaro.org> References: <20170602160848.4913-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::232 Subject: [Qemu-devel] [RISU PATCH v4 10/10] new: run_risu.sh script 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: =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 A simple script to work through running all of a bunch of files with record/playback traces. Dumps a summary and the number of failed tests at the end. Signed-off-by: Alex Benn=C3=A9e --- v3 - tweak to allow specifying RISU binary --- run_risu.sh | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100755 run_risu.sh diff --git a/run_risu.sh b/run_risu.sh new file mode 100755 index 0000000..7740d6f --- /dev/null +++ b/run_risu.sh @@ -0,0 +1,53 @@ +#!/bin/bash +# +# Run risu against a set of binaries + trace files +# +# +#set -e + +passed=3D() +failed=3D() +missing=3D() + +if test -z "$RISU"; then + script_dir=3D$(CDPATH=3D cd -- "$(dirname -- "$0")" && pwd -P) + RISU=3D${script_dir}/risu +fi + +for f in $@; do + t=3D"$f.trace" + echo "Running $f against $t" + if [ -e $t ]; then + ${QEMU} ${RISU} $f -t $t + if [ $? =3D=3D 0 ]; then + passed=3D( "${passed[@]}" $f ) + else + failed=3D( "${failed[@]}" $f ) + fi + else + missing=3D( "${missing[@]}" $f ) + fi +done + +if test ${#missing[@]} -gt 0; then + echo "Tests missing ${#missing[@]} trace files:" + for m in "${missing[@]}"; do + echo "$m" + done +fi + +if test ${#passed[@]} -gt 0; then + echo "Passed ${#passed[@]} tests:" + for p in "${passed[@]}"; do + echo "$p" + done +fi + +if test ${#failed[@]} -gt 0; then + echo "Failed ${#failed[@]} tests:" + for f in "${failed[@]}"; do + echo "$f" + done +fi + +exit ${#failed[@]} --=20 2.13.0