unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: notmuch@notmuchmail.org
Cc: tomi.ollila@iki.fi
Subject: [PATCH 1/2] test: basic: drop 'ensure all available tests are run'
Date: Thu,  9 Jan 2014 17:18:58 +0200	[thread overview]
Message-ID: <1389280739-31930-1-git-send-email-tomi.ollila@iki.fi> (raw)

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

             reply	other threads:[~2014-01-09 15:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-09 15:18 Tomi Ollila [this message]
2014-01-09 15:18 ` [PATCH 2/2] test: renamed test scripts to format T\d\d\d-name.sh Tomi Ollila
2014-01-12  0:28 ` [PATCH 1/2] test: basic: drop 'ensure all available tests are run' David Bremner
2014-01-13 18:37 ` David Bremner
2014-01-13 19:25 ` [PATCH 1/1] test: check that expected results file exists when test script exits != 0 Tomi Ollila
2014-01-13 20:38 ` [PATCH 1/1] test: leave T\d\d\d- in variable $this_test and introduce $this_test_bare Tomi Ollila
2014-01-15  0:29   ` David Bremner
2014-01-15 18:58     ` [PATCH 1/1] test: check that expected results file exists when test script exits != 0 Tomi Ollila
2014-01-15 19:02     ` [PATCH v2] test: leave T\d\d\d- in variable $this_test and introduce $this_test_bare Tomi Ollila
2014-01-19  0:06       ` David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1389280739-31930-1-git-send-email-tomi.ollila@iki.fi \
    --to=tomi.ollila@iki.fi \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).