From: Jani Nikula Date: Tue, 4 Dec 2012 21:26:30 +0000 (+0200) Subject: [PATCH 0/3] test fixes, portability X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a09b921f22da9f323a624d3503da55c3f8ae5c8c;p=notmuch-archives.git [PATCH 0/3] test fixes, portability --- diff --git a/7c/09b5a9ee06cb6aada88ac44a3f07da1dd41263 b/7c/09b5a9ee06cb6aada88ac44a3f07da1dd41263 new file mode 100644 index 000000000..09f018ad5 --- /dev/null +++ b/7c/09b5a9ee06cb6aada88ac44a3f07da1dd41263 @@ -0,0 +1,83 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id A3085429E27 + for ; Tue, 4 Dec 2012 13:26:45 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id QevnacHkbUlL for ; + Tue, 4 Dec 2012 13:26:41 -0800 (PST) +Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com + [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id E13BB431FAE + for ; Tue, 4 Dec 2012 13:26:40 -0800 (PST) +Received: by mail-lb0-f181.google.com with SMTP id ge1so3919540lbb.26 + for ; Tue, 04 Dec 2012 13:26:39 -0800 (PST) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; + bh=AfMH5vP9MbcHMw99R+MTxwdY4BaOFPktoyX4Oj15AKM=; + b=coX12wrSnF7g1vCfGQyI4QdM600ZwG0UeeMcRQV3YuKqQ+yaqErsETkUYAbma1oUml + CkyDf9lN6U0NHjATCJPJwuQp5uxG8HUAw8fWt7u+cemaovHziX0tNGubWRmjBkzVre5j + xgfsuEzXuEvXkIeieFJa7BfJjR9mX5x+0txVqe6usIeHHaWimWt4Fvk4zr+sw/heXWdg + onHmn5Hc40cIzz1SoJbpzODHTuZzGGWywH/hkUBncFkMEiKYMTOIdCScF9zCHJZK6H92 + RkXF88/E25warEcFK+PlKBaHZ8zoKq6B1s5fDzlijZLFdX+3YEY+MrAOGRoypbLdWMv7 + c5Mw== +Received: by 10.112.40.3 with SMTP id t3mr3257635lbk.48.1354656398067; + Tue, 04 Dec 2012 13:26:38 -0800 (PST) +Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi. + [80.223.81.27]) + by mx.google.com with ESMTPS id z9sm1275417lby.8.2012.12.04.13.26.34 + (version=SSLv3 cipher=OTHER); Tue, 04 Dec 2012 13:26:36 -0800 (PST) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH 0/3] test fixes, portability +Date: Tue, 4 Dec 2012 23:26:30 +0200 +Message-Id: +X-Mailer: git-send-email 1.7.10.4 +X-Gm-Message-State: + ALoCoQnvTmaHkbLyim8fYfN2MhLO0e2X4G+URVoEpZKNOrs+nsa3alecmQns1YCLhOD4J2rPMFp7 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Tue, 04 Dec 2012 21:26:45 -0000 + +I had a glance at a 'make test' report on OS X [1], and tried to fix a +few things from there. While at it, noticed that count test is horribly +broken. + +BR, +Jani. + +[1] https://spod.gy/p/u9j3zxg96vu6k3wy + +Jani Nikula (3): + test: fix count test + test: wrap 'wc -l' results in arithmetic evaluation to strip + whitespace + test: use perl instead of sed -r for portability + + test/count | 25 +++++++++++++------------ + test/test-lib.sh | 2 +- + 2 files changed, 14 insertions(+), 13 deletions(-) + +-- +1.7.10.4 +