From nobody Mon Feb 9 12:11:06 2026 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; 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1528896364304827.0760870748472; Wed, 13 Jun 2018 06:26:04 -0700 (PDT) Received: from localhost ([::1]:34310 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT5ml-0001OG-Kb for importer@patchew.org; Wed, 13 Jun 2018 09:26:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fT5SO-0001ek-Dt for qemu-devel@nongnu.org; Wed, 13 Jun 2018 09:05:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fT5SI-0005cO-CO for qemu-devel@nongnu.org; Wed, 13 Jun 2018 09:05:00 -0400 Received: from mail-wr0-x22a.google.com ([2a00:1450:400c:c0c::22a]:45607) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fT5SI-0005ZI-2Z for qemu-devel@nongnu.org; Wed, 13 Jun 2018 09:04:54 -0400 Received: by mail-wr0-x22a.google.com with SMTP id o12-v6so2668941wrm.12 for ; Wed, 13 Jun 2018 06:04:53 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id f133-v6sm3354572wme.42.2018.06.13.06.04.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Jun 2018 06:04:49 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id C41C83E1270; Wed, 13 Jun 2018 13:56:01 +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=/IZQ4p0hwe86+xUxCaKvDsHzWjVNlBH8FOK7w9lXmkc=; b=BVkbTQwidzsyjj7x4Roa+LY9ie1GpdFj67kCW66yHo46HYmU55eMl9q/1reUe3g0GY IIlA6tMT3i2djKBF7Hs+0IqtaI3Z5fNcI2fpmtMG87Zcx+iEO1CIgr+EfaHpc8Xt99wf wP/+rm3DC7gofcR8zz/8q4wpaq5yd3PdgoGjQ= 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=/IZQ4p0hwe86+xUxCaKvDsHzWjVNlBH8FOK7w9lXmkc=; b=B1jCvJwLZPSqIQwV+xMOI8sMxGuR3SqRQJgdGxA2dikBuWeYAkuxktXvnfvyS6TDY/ TE+6PfcdeumaTwIEN8X/cIltkJHcYE19wdDZvokd50QVVoUo3pc1GszZadz10RSCa050 Pj6BUYIoTNwCR6ghg8pXBn4Bb7h36kmhANzjrgEAqXwARybbZ0Y47eZHjFvj3MB7xB6x NidxDbOAl/H208HyrTF35ypjBOlVzluN/7+YWoG7hesyrfZ3ZPMCGpSF+U+419G6x8Id /sNRD5O3a3Ulb8nmuNEN9uBfIaJ49//LYr1cA0nHGgPwDSGoCvuOIemEAjdjkaBHGxgL sZNA== X-Gm-Message-State: APt69E2sHq1YOcIO4J3fZnqlfXfXWiBjl8iWm+VBsTjAc7InA09smbK/ eU4m+mYypAFcA2eLl138m4FPow== X-Google-Smtp-Source: ADUXVKKfZpBBjEsxYK66AqWoQh/wMQkowNApxv360DabPjV7LMSMcD/YUtAQX/vJUi7qqGVkcM8gyg== X-Received: by 2002:adf:bd89:: with SMTP id l9-v6mr4189640wrh.266.1528895092977; Wed, 13 Jun 2018 06:04:52 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Wed, 13 Jun 2018 13:55:51 +0100 Message-Id: <20180613125601.14371-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180613125601.14371-1-alex.bennee@linaro.org> References: <20180613125601.14371-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:c0c::22a Subject: [Qemu-devel] [RISU PATCH v3 12/22] contrib/generate_all.sh: allow passing of arguments to risugen 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-arm@nongnu.org, richard.henderson@linaro.org, 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 This allows us to use any new risugen options when generating all our test patterns. Signed-off-by: Alex Benn=C3=A9e --- contrib/generate_all.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/contrib/generate_all.sh b/contrib/generate_all.sh index 1e6b847..651cb23 100755 --- a/contrib/generate_all.sh +++ b/contrib/generate_all.sh @@ -12,11 +12,11 @@ # Alex Benn=C3=A9e - initial implementation # # Usage: -# ./contrib/generate_all.sh +# ./contrib/generate_all.sh -- risugen ar= gs =20 set -e =20 -USAGE=3D"Usage: `basename $0` [-h] [-n x] " +USAGE=3D"Usage: `basename $0` [-h] [-n x] -- [risu= gen args]" SPLIT=3D4 RISUGEN=3D$(CDPATH=3D cd -- "$(dirname -- "$0")/.." && pwd -P)/risugen =20 @@ -41,18 +41,24 @@ done # Remove the switches we parsed above. shift `expr $OPTIND - 1` =20 -while [ $# -ne 0 ]; do +# Parse up to and including any -- +RISUGEN_ARGS=3D"" +while [ $# -ne 0 ] && [ -z "$RISUGEN_ARGS" ]; do =20 if [ -f $1 ]; then RISU_FILE=3D$1; elif [ -d $1 ]; then TARGET_DIR=3D$1; + elif [ "$1" =3D "--" ]; then + RISUGEN_ARGS=3D$1 elif [ ! -e $1 ]; then TARGET_DIR=3D$1 fi =20 shift done +# anything left is for RISUGEN +RISUGEN_ARGS=3D$@ =20 if test -z "${RISUGEN}" || test ! -x "${RISUGEN}"; then echo "Couldn't find risugen (${RISUGEN})" @@ -90,7 +96,7 @@ while test $# -gt 0 ; do fi done I_FILE=3D"${I_FILE}_INC.risu.bin" - CMD=3D"${RISUGEN} ${INSN_PATTERNS} ${RISU_FILE} ${I_FILE}" + CMD=3D"${RISUGEN} ${RISUGEN_ARGS} ${INSN_PATTERNS} ${RISU_FILE} ${I_FI= LE}" echo "Running: $CMD" $CMD done --=20 2.17.1