X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FT030-config.sh;h=f36695c66d78bccc5d586a1b762e063c4c53cd4d;hb=4cd5a0a3d5416fd4601f2c14da0845fee5d9ede1;hp=35d757f6b227fc96bab7b32e203d4c0aac925baf;hpb=e142de643d3bb4354f70e1490a97b491d1116e95;p=notmuch diff --git a/test/T030-config.sh b/test/T030-config.sh index 35d757f6..f36695c6 100755 --- a/test/T030-config.sh +++ b/test/T030-config.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash test_description='"notmuch config"' -. ./test-lib.sh || exit 1 +. $(dirname "$0")/test-lib.sh || exit 1 test_begin_subtest "Get string value" test_expect_equal "$(notmuch config get user.name)" "Notmuch Test Suite" @@ -99,4 +99,14 @@ test_expect_equal "$(notmuch --config=alt-config-link config get user.name)" \ test_begin_subtest "Writing config file through symlink follows symlink" test_expect_equal "$(readlink alt-config-link)" "alt-config" +test_begin_subtest "Absolute database path returned" +notmuch config set database.path ${HOME}/Maildir +test_expect_equal "$(notmuch config get database.path)" \ + "${HOME}/Maildir" + +test_begin_subtest "Relative database path properly expanded" +notmuch config set database.path Maildir +test_expect_equal "$(notmuch config get database.path)" \ + "${HOME}/Maildir" + test_done