[PATCH v2 6/9] test/basic: use portable args for find
authorMike Kelly <pioto@pioto.org>
Wed, 30 May 2012 07:02:01 +0000 (03:02 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:47:31 +0000 (09:47 -0800)
b7/1dc79313515e27d1c883c33cea8c21be804408 [new file with mode: 0644]

diff --git a/b7/1dc79313515e27d1c883c33cea8c21be804408 b/b7/1dc79313515e27d1c883c33cea8c21be804408
new file mode 100644 (file)
index 0000000..c259f1a
--- /dev/null
@@ -0,0 +1,91 @@
+Return-Path: <pioto@pioto.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 71F10431FD2\r
+       for <notmuch@notmuchmail.org>; Wed, 30 May 2012 00:02:57 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id iIvUuWd7H9F2 for <notmuch@notmuchmail.org>;\r
+       Wed, 30 May 2012 00:02:56 -0700 (PDT)\r
+Received: from mail-vb0-f53.google.com (mail-vb0-f53.google.com\r
+       [209.85.212.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id A0010431FB6\r
+       for <notmuch@notmuchmail.org>; Wed, 30 May 2012 00:02:55 -0700 (PDT)\r
+Received: by mail-vb0-f53.google.com with SMTP id fc26so4786696vbb.26\r
+       for <notmuch@notmuchmail.org>; Wed, 30 May 2012 00:02:55 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references\r
+       :x-gm-message-state;\r
+       bh=2a8MXT7BpIEEWNOpxV4k0odz/6TgNyIf2zZ4PfhdVZ0=;\r
+       b=N3Ko6XjwbW4ZoglyyvDr/thBHGEC1hYXjMWNH4QpMu/GUY0m+wd1RQILlbcoPbQPqA\r
+       SXtXTubO8sH6peOB5ef1kGPNGUYbY/8/wNs/I3GyRlVx5GuZRRVfu0SfJNASWg61KmAA\r
+       9c70+Lm0QbxrtLFBzqWPNFQQnGhMGI/WPWb4hOaa2LLafizAut6v8Hd6ls4JeCwZ3WkO\r
+       uAR+uHwTrwOaRKk98SCUwrnx79xtRrZbH5+eGoS3FPRFA5H5XRPOfkPH5n7n9dZBQd8J\r
+       ddcXnBoGwPVqyQ4muRzSsiwsjSIKHsp0JnMDQeiHr6jHQ9h6er+MsclFbz5k+p9cDafT\r
+       aBwA==\r
+Received: by 10.220.153.75 with SMTP id j11mr15993103vcw.32.1338361375265;\r
+       Wed, 30 May 2012 00:02:55 -0700 (PDT)\r
+Received: from nas.home.pioto.org (pool-71-182-155-97.pitbpa.fios.verizon.net.\r
+       [71.182.155.97])\r
+       by mx.google.com with ESMTPS id c17sm28321669vdj.11.2012.05.30.00.02.54\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Wed, 30 May 2012 00:02:54 -0700 (PDT)\r
+Received: by nas.home.pioto.org (Postfix, from userid 1001)\r
+       id BBBA0287D2; Wed, 30 May 2012 03:02:53 -0400 (EDT)\r
+From: Mike Kelly <pioto@pioto.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 6/9] test/basic: use portable args for find\r
+Date: Wed, 30 May 2012 03:02:01 -0400\r
+Message-Id: <1338361324-57289-7-git-send-email-pioto@pioto.org>\r
+X-Mailer: git-send-email 1.7.10.2\r
+In-Reply-To: <1338361324-57289-1-git-send-email-pioto@pioto.org>\r
+References: <1338361324-57289-1-git-send-email-pioto@pioto.org>\r
+X-Gm-Message-State:\r
+ ALoCoQlRegRYb89fmAgTDr/pCHb7V7P1C4M/cL7IlS1J2SJiiNeL8qvo6BjiSy2TZESAzmPrBbP8\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 30 May 2012 07:02:57 -0000\r
+\r
+`-executable` isn't available in FreeBSD's version of find, so use a\r
+more portable version, `-perm +111`.\r
+---\r
+ test/basic |    4 ++--\r
+ 1 file changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/test/basic b/test/basic\r
+index d6aed24..3b635c8 100755\r
+--- a/test/basic\r
++++ b/test/basic\r
+@@ -53,8 +53,8 @@ test_expect_code 2 'failure to clean up causes the test to fail' '\r
+ test_begin_subtest 'Ensure that all available tests will be run by notmuch-test'\r
+ eval $(sed -n -e '/^TESTS="$/,/^"$/p' $TEST_DIRECTORY/notmuch-test)\r
+ tests_in_suite=$(for i in $TESTS; do echo $i; done | sort)\r
+-available=$(find "$TEST_DIRECTORY" -maxdepth 1 -type f -executable -printf '%f\n' | \\r
+-    sed -r -e "/^(aggregate-results.sh|notmuch-test|smtp-dummy|test-verbose|symbol-test|arg-test)$/d" | \\r
++available=$(find "$TEST_DIRECTORY" -maxdepth 1 -type f -perm +111 | \\r
++    sed -r -e "s,.*/,," -e "/^(aggregate-results.sh|notmuch-test|smtp-dummy|test-verbose|symbol-test|arg-test)$/d" | \\r
+     sort)\r
+ test_expect_equal "$tests_in_suite" "$available"\r
+ \r
+-- \r
+1.7.10.2\r
+\r