Change #!/bin/bash at start of tests to "#!/usr/bin/env bash". That way
systems running on bash < 4 can prepend bash >= 4 to path before
running the tests.
23 files changed:
Writing Tests
-------------
Writing Tests
-------------
-The test script is written as a shell script. It should start
-with the standard "#!/bin/bash" with copyright notices, and an
+The test script is written as a shell script. It should start with
+the standard "#!/usr/bin/env bash" with copyright notices, and an
assignment to variable 'test_description', like this:
assignment to variable 'test_description', like this:
#
# Copyright (c) 2005 Junio C Hamano
#
#
# Copyright (c) 2005 Junio C Hamano
#
test_description="author reordering;"
. ./test-lib.sh
test_description="author reordering;"
. ./test-lib.sh
#
# Copyright (c) 2005 Junio C Hamano
#
#
# Copyright (c) 2005 Junio C Hamano
#
test_description="\"notmuch dump\" and \"notmuch restore\""
. ./test-lib.sh
test_description="\"notmuch dump\" and \"notmuch restore\""
. ./test-lib.sh
test_description="emacs interface"
. test-lib.sh
test_description="emacs interface"
. test-lib.sh
test_description="encoding issues"
. ./test-lib.sh
test_description="encoding issues"
. ./test-lib.sh
test_description="From line heuristics (with multiple configured addresses)"
. ./test-lib.sh
test_description="From line heuristics (with multiple configured addresses)"
. ./test-lib.sh
test_description="--format=json output"
. ./test-lib.sh
test_description="--format=json output"
. ./test-lib.sh
test_description="messages with ridiculously-long message IDs"
. ./test-lib.sh
test_description="messages with ridiculously-long message IDs"
. ./test-lib.sh
test_description="maildir synchronization"
test_description="maildir synchronization"
test_description='"notmuch new" in several variations'
. ./test-lib.sh
test_description='"notmuch new" in several variations'
. ./test-lib.sh
test_description='notmuch show --format=raw'
. ./test-lib.sh
test_description='notmuch show --format=raw'
. ./test-lib.sh
test_description="\"notmuch reply\" in several variations"
. ./test-lib.sh
test_description="\"notmuch reply\" in several variations"
. ./test-lib.sh
test_description='"notmuch search" in several variations'
. ./test-lib.sh
test_description='"notmuch search" in several variations'
. ./test-lib.sh
test_description='various settings for "notmuch search --output="'
. ./test-lib.sh
test_description='various settings for "notmuch search --output="'
. ./test-lib.sh
#
# Copyright (c) 2005 Junio C Hamano
#
#
# Copyright (c) 2005 Junio C Hamano
#
test_description='the verbosity options of the test framework itself.'
test_description='the verbosity options of the test framework itself.'
test_description="naming of threads with changing subject"
. ./test-lib.sh
test_description="naming of threads with changing subject"
. ./test-lib.sh
test_description="threading when messages received out of order"
. ./test-lib.sh
test_description="threading when messages received out of order"
. ./test-lib.sh
test_description="handling of uuencoded data"
. ./test-lib.sh
test_description="handling of uuencoded data"
. ./test-lib.sh