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:
Tomi Ollila 2012-11-21 17:16:14 +02:00 committed by David Bremner
parent 73a9fcf89b
commit 3bd8494da0
9 changed files with 9 additions and 9 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
test_description='"notmuch config"' test_description='"notmuch config"'
. test-lib.sh . ./test-lib.sh
test_begin_subtest "Get string value" test_begin_subtest "Get string value"
test_expect_equal "$(notmuch config get user.name)" "Notmuch Test Suite" test_expect_equal "$(notmuch config get user.name)" "Notmuch Test Suite"

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
test_description="emacs interface" test_description="emacs interface"
. test-lib.sh . ./test-lib.sh
EXPECTED=$TEST_DIRECTORY/emacs.expected-output EXPECTED=$TEST_DIRECTORY/emacs.expected-output

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
test_description="emacs address cleaning" test_description="emacs address cleaning"
. test-lib.sh . ./test-lib.sh
test_begin_subtest "notmuch-test-address-clean part 1" test_begin_subtest "notmuch-test-address-clean part 1"
test_emacs_expect_t '(notmuch-test-address-cleaning-1)' test_emacs_expect_t '(notmuch-test-address-cleaning-1)'

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
test_description="emacs notmuch-hello view" test_description="emacs notmuch-hello view"
. test-lib.sh . ./test-lib.sh
EXPECTED=$TEST_DIRECTORY/emacs.expected-output EXPECTED=$TEST_DIRECTORY/emacs.expected-output

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
test_description="Emacs with large search results buffer" test_description="Emacs with large search results buffer"
. test-lib.sh . ./test-lib.sh
x=xxxxxxxxxx # 10 x=xxxxxxxxxx # 10
x=$x$x$x$x$x$x$x$x$x$x # 100 x=$x$x$x$x$x$x$x$x$x$x # 100

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
test_description="emacs notmuch-show view" test_description="emacs notmuch-show view"
. test-lib.sh . ./test-lib.sh
EXPECTED=$TEST_DIRECTORY/emacs-show.expected-output EXPECTED=$TEST_DIRECTORY/emacs-show.expected-output

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
test_description="emacs: mail subject to filename" 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 ...) # emacs server can't be started in a child process with $(test_emacs ...)
test_emacs '(ignore)' test_emacs '(ignore)'

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
test_description="emacs test function sanity" test_description="emacs test function sanity"
. test-lib.sh . ./test-lib.sh
test_begin_subtest "emacs test function sanity" test_begin_subtest "emacs test function sanity"
test_emacs_expect_t 't' test_emacs_expect_t 't'

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
test_description="online help" test_description="online help"
. test-lib.sh . ./test-lib.sh
test_expect_success 'notmuch --help' 'notmuch --help' test_expect_success 'notmuch --help' 'notmuch --help'
test_expect_success 'notmuch --help tag' 'notmuch --help tag' test_expect_success 'notmuch --help tag' 'notmuch --help tag'