[PATCH 1/2] test: basic: drop 'ensure all available tests are run'
authorTomi Ollila <tomi.ollila@iki.fi>
Thu, 9 Jan 2014 15:18:58 +0000 (17:18 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:58:54 +0000 (09:58 -0800)
85/4e91e0e1d4360924641c67ea09eb930aeb4cbb [new file with mode: 0644]

diff --git a/85/4e91e0e1d4360924641c67ea09eb930aeb4cbb b/85/4e91e0e1d4360924641c67ea09eb930aeb4cbb
new file mode 100644 (file)
index 0000000..fe2c64f
--- /dev/null
@@ -0,0 +1,84 @@
+Return-Path: <too@guru-group.fi>\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 342CC431FC3\r
+       for <notmuch@notmuchmail.org>; Thu,  9 Jan 2014 07:19:13 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       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 zu3F4gChjmSk for <notmuch@notmuchmail.org>;\r
+       Thu,  9 Jan 2014 07:19:07 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 97877431FBF\r
+       for <notmuch@notmuchmail.org>; Thu,  9 Jan 2014 07:19:07 -0800 (PST)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+       id 55AEB100063; Thu,  9 Jan 2014 17:19:00 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/2] test: basic: drop 'ensure all available tests are run'\r
+Date: Thu,  9 Jan 2014 17:18:58 +0200\r
+Message-Id: <1389280739-31930-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 1.8.0\r
+Cc: tomi.ollila@iki.fi\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: Thu, 09 Jan 2014 15:19:13 -0000\r
+\r
+When naming test scripts in format 'T\d\d\d-name.sh' the list of\r
+tests to run are created dynamically. This makes test\r
+\r
+'Ensure that all available tests will be run by notmuch-test'\r
+\r
+in test/basic obsolete.\r
+---\r
+ test/basic | 18 ------------------\r
+ 1 file changed, 18 deletions(-)\r
+\r
+diff --git a/test/basic b/test/basic\r
+index f7eed32..9c94b62 100755\r
+--- a/test/basic\r
++++ b/test/basic\r
+@@ -49,24 +49,6 @@ test_expect_code 2 'failure to clean up causes the test to fail' '\r
+     test_when_finished "(exit 2)"\r
+ '\r
\r
+-# Ensure that all tests are being run\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 \\r
+-   '(' -perm -100 -o -perm -10 -o -perm -1 ')' \\r
+-    ! -name aggregate-results.sh      \\r
+-    ! -name arg-test                  \\r
+-    ! -name hex-xcode                 \\r
+-    ! -name notmuch-test              \\r
+-    ! -name parse-time                        \\r
+-    ! -name random-corpus             \\r
+-    ! -name smtp-dummy                        \\r
+-    ! -name symbol-test                       \\r
+-    ! -name test-verbose              \\r
+-    | sed 's,.*/,,' | sort)\r
+-test_expect_equal "$tests_in_suite" "$available"\r
+-\r
+ EXPECTED=$TEST_DIRECTORY/test.expected-output\r
+ suppress_diff_date() {\r
+     sed -e 's/\(.*\-\-\- test-verbose\.4\.\expected\).*/\1/' \\r
+-- \r
+1.8.4.2\r
+\r