test: change "#!/bin/bash" to "#!/usr/bin/env bash" enhances portability

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.
This commit is contained in:
Joel Borggrén-Franck 2010-12-01 21:27:52 +01:00 committed by Carl Worth
parent 3185df17eb
commit 3fa843216c
23 changed files with 25 additions and 25 deletions

View file

@ -68,11 +68,11 @@ remaining tests to be unaffected.
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:
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (c) 2005 Junio C Hamano
#

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
fixed=0
success=0

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description="author reordering;"
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (c) 2005 Junio C Hamano
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description="\"notmuch dump\" and \"notmuch restore\""
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description="emacs interface"
. test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description="encoding issues"
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description="From line heuristics (with multiple configured addresses)"
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description="--format=json output"
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description="messages with ridiculously-long message IDs"
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description="maildir synchronization"

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description='"notmuch new" in several variations'
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Run tests
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr//bin/env bash
test_description='notmuch show --format=raw'
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description="\"notmuch reply\" in several variations"
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description='"notmuch search" in several variations'
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description='various settings for "notmuch search --output="'
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Copyright (c) 2005 Junio C Hamano
#

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description='the verbosity options of the test framework itself.'

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description="naming of threads with changing subject"
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description="threading when messages received out of order"
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
test_description="handling of uuencoded data"
. ./test-lib.sh

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
base=$(basename "$0")