]> git.notmuchmail.org Git - notmuch/commitdiff
test: Absolute and relative directory paths.
authorDavid Edmondson <dme@dme.org>
Sat, 8 Sep 2018 11:49:41 +0000 (12:49 +0100)
committerDavid Bremner <david@tethera.net>
Sat, 8 Sep 2018 23:19:42 +0000 (20:19 -0300)
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