From 4cd5a0a3d5416fd4601f2c14da0845fee5d9ede1 Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Sat, 8 Sep 2018 12:49:41 +0100 Subject: [PATCH] test: Absolute and relative directory paths. --- test/T030-config.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) 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