mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
test: always source test-lib.sh as ./test-lib.sh
There are currently 45 TESTS scripts. 36 of those load test-lib.sh using '. ./test-lib.sh' and 9 '. test-lib.sh'. In latter case test-lib.sh is first searched from directories in PATH (posix) and then from current directory (bash feature). Changed the 9 files to execute '. ./test-lib.sh'. The test-lib.sh should never be loaded from directory in PATH.
This commit is contained in:
parent
73a9fcf89b
commit
3bd8494da0
9 changed files with 9 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
test_description='"notmuch config"'
|
||||
. test-lib.sh
|
||||
. ./test-lib.sh
|
||||
|
||||
test_begin_subtest "Get string value"
|
||||
test_expect_equal "$(notmuch config get user.name)" "Notmuch Test Suite"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
test_description="emacs interface"
|
||||
. test-lib.sh
|
||||
. ./test-lib.sh
|
||||
|
||||
EXPECTED=$TEST_DIRECTORY/emacs.expected-output
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
test_description="emacs address cleaning"
|
||||
. test-lib.sh
|
||||
. ./test-lib.sh
|
||||
|
||||
test_begin_subtest "notmuch-test-address-clean part 1"
|
||||
test_emacs_expect_t '(notmuch-test-address-cleaning-1)'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
test_description="emacs notmuch-hello view"
|
||||
. test-lib.sh
|
||||
. ./test-lib.sh
|
||||
|
||||
EXPECTED=$TEST_DIRECTORY/emacs.expected-output
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
test_description="Emacs with large search results buffer"
|
||||
. test-lib.sh
|
||||
. ./test-lib.sh
|
||||
|
||||
x=xxxxxxxxxx # 10
|
||||
x=$x$x$x$x$x$x$x$x$x$x # 100
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
test_description="emacs notmuch-show view"
|
||||
. test-lib.sh
|
||||
. ./test-lib.sh
|
||||
|
||||
EXPECTED=$TEST_DIRECTORY/emacs-show.expected-output
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
test_description="emacs: mail subject to filename"
|
||||
. test-lib.sh
|
||||
. ./test-lib.sh
|
||||
|
||||
# emacs server can't be started in a child process with $(test_emacs ...)
|
||||
test_emacs '(ignore)'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
test_description="emacs test function sanity"
|
||||
. test-lib.sh
|
||||
. ./test-lib.sh
|
||||
|
||||
test_begin_subtest "emacs test function sanity"
|
||||
test_emacs_expect_t 't'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
test_description="online help"
|
||||
. test-lib.sh
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'notmuch --help' 'notmuch --help'
|
||||
test_expect_success 'notmuch --help tag' 'notmuch --help tag'
|
||||
|
|
Loading…
Reference in a new issue