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