mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
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:
parent
3185df17eb
commit
3fa843216c
23 changed files with 25 additions and 25 deletions
|
@ -68,11 +68,11 @@ remaining tests to be unaffected.
|
||||||
|
|
||||||
Writing Tests
|
Writing Tests
|
||||||
-------------
|
-------------
|
||||||
The test script is written as a shell script. It should start
|
The test script is written as a shell script. It should start with
|
||||||
with the standard "#!/bin/bash" with copyright notices, and an
|
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:
|
||||||
|
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2005 Junio C Hamano
|
# Copyright (c) 2005 Junio C Hamano
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
fixed=0
|
fixed=0
|
||||||
success=0
|
success=0
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description="author reordering;"
|
test_description="author reordering;"
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2005 Junio C Hamano
|
# Copyright (c) 2005 Junio C Hamano
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description="\"notmuch dump\" and \"notmuch restore\""
|
test_description="\"notmuch dump\" and \"notmuch restore\""
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description="emacs interface"
|
test_description="emacs interface"
|
||||||
. test-lib.sh
|
. test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description="encoding issues"
|
test_description="encoding issues"
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description="From line heuristics (with multiple configured addresses)"
|
test_description="From line heuristics (with multiple configured addresses)"
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description="--format=json output"
|
test_description="--format=json output"
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description="messages with ridiculously-long message IDs"
|
test_description="messages with ridiculously-long message IDs"
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
test_description="maildir synchronization"
|
test_description="maildir synchronization"
|
||||||
|
|
||||||
|
|
2
test/new
2
test/new
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description='"notmuch new" in several variations'
|
test_description='"notmuch new" in several variations'
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
#
|
#
|
||||||
|
|
2
test/raw
2
test/raw
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr//bin/env bash
|
||||||
|
|
||||||
test_description='notmuch show --format=raw'
|
test_description='notmuch show --format=raw'
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description="\"notmuch reply\" in several variations"
|
test_description="\"notmuch reply\" in several variations"
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description='"notmuch search" in several variations'
|
test_description='"notmuch search" in several variations'
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description='various settings for "notmuch search --output="'
|
test_description='various settings for "notmuch search --output="'
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2005 Junio C Hamano
|
# Copyright (c) 2005 Junio C Hamano
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
test_description='the verbosity options of the test framework itself.'
|
test_description='the verbosity options of the test framework itself.'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description="naming of threads with changing subject"
|
test_description="naming of threads with changing subject"
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description="threading when messages received out of order"
|
test_description="threading when messages received out of order"
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
test_description="handling of uuencoded data"
|
test_description="handling of uuencoded data"
|
||||||
. ./test-lib.sh
|
. ./test-lib.sh
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
base=$(basename "$0")
|
base=$(basename "$0")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue