From nobody Tue Feb 10 00:39:47 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.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 1497629899046629.5366729914567; Fri, 16 Jun 2017 09:18:19 -0700 (PDT) Received: from localhost ([::1]:59781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLtwu-0007lr-IJ for importer@patchew.org; Fri, 16 Jun 2017 12:18:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dLtsn-00048h-BN for qemu-devel@nongnu.org; Fri, 16 Jun 2017 12:14:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dLtsl-0002gw-Mj for qemu-devel@nongnu.org; Fri, 16 Jun 2017 12:14:01 -0400 Received: from mail-qt0-x22c.google.com ([2607:f8b0:400d:c0d::22c]:34658) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dLtsl-0002gk-If for qemu-devel@nongnu.org; Fri, 16 Jun 2017 12:13:59 -0400 Received: by mail-qt0-x22c.google.com with SMTP id c10so69221555qtd.1 for ; Fri, 16 Jun 2017 09:13:59 -0700 (PDT) Received: from localhost.localdomain ([138.117.48.226]) by smtp.gmail.com with ESMTPSA id a62sm1691420qkd.14.2017.06.16.09.13.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jun 2017 09:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TIkVylAo8/dDWHf/FswETyz2XtruMO/u2iGVhCUMBFw=; b=tzLasOIu3qV3qY73UEc31GkVTgyU0ICbYt9G2b+yOnlZwmhM/+acPLNi6F14anb9vL DuH4Ynd8LJ0CHqk6qP5mBhPORz60ayKgfj12d/98Dw5PorKB6A1hka1tls+glEA4SePZ diivW+ei5478IptRe/NtSsS8Es30LmdiFdzm/ufl/XARJK8M1SDpJNy2NuPOtGHXRsOF NR/QP0vOkspRVjw6nKydyt7vXeyay/Fo1jwPx/w8mp0OP3ehW+Zdb55h2z8xlwinE5Id ZVh+8sdgsjKjpyDw7sj6HBtQjMOrc05TVk/IMb0p5WJ70IEUJvYbEdmWSldfFmDJu7SU C4dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=TIkVylAo8/dDWHf/FswETyz2XtruMO/u2iGVhCUMBFw=; b=U4QyETeHzyEIL5CBLy2KccTRgBuRlTYNf0HyGz56WAtrw/WctESAuh/sJHKzPIrX3U tm5V71UJfL+1IONCZxnfHSOWNLiMDJEpnh+t9fm6AxJi8paMDUZYiF/4oU1cBnr+uMp2 EanVCQNBtcuPzdK6xhIga7gifNc+AcDJw8OekDJy4PcVHe1VBtrRB1y4Ke+mAfSaWy+N QAMscclfCs5nwifDPRN0NTzBVWpJMJSGfi39RA4t9TvPwNL7mBGsvBWWxDlAJblKJLLx B/vz6VBuCBl0a3K642ZgCGfjlFfdRLe2iu3j6Xdgw1LLzPPw6VC4bqVbvudr1V4y0aBy E5TA== X-Gm-Message-State: AKS2vOwIcMZHA4rPLjsY7F7kytI1HjoUnp0E9E6a4B7ItZd3x4W+2qA4 4JlmVLMZcuMchCPo7xg= X-Received: by 10.55.102.214 with SMTP id a205mr13470299qkc.154.1497629638189; Fri, 16 Jun 2017 09:13:58 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng , Peter Maydell Date: Fri, 16 Jun 2017 13:13:26 -0300 Message-Id: <20170616161334.7492-4-f4bug@amsat.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170616161334.7492-1-f4bug@amsat.org> References: <20170616161334.7492-1-f4bug@amsat.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: 2607:f8b0:400d:c0d::22c Subject: [Qemu-devel] [PATCH 03/11] travis: use yes/no variable to enable/disable tests 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?Philippe=20Mathieu-Daud=C3=A9?= 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 having the command to run in the variable make scripts harder to manage. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- using 0/1 or no/yes is pretty much the same. .travis.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index b2c69fdd59..c9ac741afc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,7 +46,7 @@ notifications: env: global: - PARALLEL_JOBS=3D"$(($(getconf _NPROCESSORS_ONLN) + 1))" - - TEST_CMD=3D"make check" + - RUN_TESTS=3D"yes" matrix: - CONFIG=3D"" - CONFIG=3D"--enable-debug --enable-debug-tcg --enable-trace-backends= =3Dlog" @@ -66,7 +66,7 @@ before_script: - ./configure ${CONFIG} script: - make -j${PARALLEL_JOBS} - - test -z "${TEST_CMD}" || ${TEST_CMD} + - if [ "${RUN_TESTS}" =3D=3D "yes" ]; then make check; fi matrix: include: # Test with CLang for compile portability @@ -77,16 +77,16 @@ matrix: compiler: gcc # We manually include builds which we disable "make check" for - env: CONFIG=3D"--enable-debug --enable-tcg-interpreter" - TEST_CMD=3D"" + RUN_TESTS=3D"no" compiler: gcc - env: CONFIG=3D"--enable-trace-backends=3Dsimple" - TEST_CMD=3D"" + RUN_TESTS=3D"no" compiler: gcc - env: CONFIG=3D"--enable-trace-backends=3Dftrace" - TEST_CMD=3D"" + RUN_TESTS=3D"no" compiler: gcc - env: CONFIG=3D"--enable-trace-backends=3Dust" - TEST_CMD=3D"" + RUN_TESTS=3D"no" compiler: gcc - env: CONFIG=3D"" os: osx @@ -191,6 +191,6 @@ matrix: env: - COMPILER_NAME=3Dgcc CXX=3Dg++-5 CC=3Dgcc-5 - CONFIG=3D"--cc=3Dgcc-5 --cxx=3Dg++-5 --disable-pie --disable-lin= ux-user" - - TEST_CMD=3D"" + - RUN_TESTS=3D"no" before_script: - ./configure ${CONFIG} --extra-cflags=3D"-g3 -O0 -fsanitize=3Dthr= ead -fuse-ld=3Dgold" || cat config.log --=20 2.11.0