]> git.notmuchmail.org Git - notmuch/blobdiff - test/T030-config.sh
test: Absolute and relative directory paths.
[notmuch] / test / T030-config.sh
index e91c36597e3c1601fc4c9b2346adb587cc7fbea0..f36695c66d78bccc5d586a1b762e063c4c53cd4d 100755 (executable)
@@ -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