aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Edmondson <dme@dme.org>2018-09-08 12:49:41 +0100
committerDavid Bremner <david@tethera.net>2018-09-08 20:19:42 -0300
commit4cd5a0a3d5416fd4601f2c14da0845fee5d9ede1 (patch)
treed49b306eb4ba37bacda4f3ef8fd42a45b9f7a946 /test
parent95a9c73c72ff61d5514010a1b9bc11f94cbe988c (diff)
test: Absolute and relative directory paths.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T030-config.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/T030-config.sh b/test/T030-config.sh
index e91c3659..f36695c6 100755
--- a/test/T030-config.sh
+++ b/test/T030-config.sh
@@ -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