unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/2] test: basic: drop 'ensure all available tests are run'
@ 2014-01-09 15:18 Tomi Ollila
  2014-01-09 15:18 ` [PATCH 2/2] test: renamed test scripts to format T\d\d\d-name.sh Tomi Ollila
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Tomi Ollila @ 2014-01-09 15:18 UTC (permalink / raw)
  To: notmuch; +Cc: tomi.ollila

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

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-01-19  0:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-09 15:18 [PATCH 1/2] test: basic: drop 'ensure all available tests are run' Tomi Ollila
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

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).