aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2022-07-25 20:37:41 -0400
committerDavid Bremner <david@tethera.net>2022-09-03 08:24:43 -0300
commit687866111a0e1df1a365d07f629c4768281ec00d (patch)
tree75fa6ffac1da2cef306a373ae0eac09632d5920c /test
parenta3b46fa8bbfaf6651f5055bb27aa52a0ef0d3ba2 (diff)
test: add test for creating database in various configurations.
The existing database creation (via add_email_corpus) was always done in the traditional configuration. The use of xapian-metadata is just to portably ensure that there is a database created where we expect there to be.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T055-path-config.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh
index 58c824a2..45545d88 100755
--- a/test/T055-path-config.sh
+++ b/test/T055-path-config.sh
@@ -313,6 +313,12 @@ user.other_email
user.primary_email
EOF
test_expect_equal_file EXPECTED OUTPUT
+
+ test_begin_subtest "create database ($config)"
+ rm -r ${XAPIAN_PATH}
+ notmuch new
+ test_expect_equal "$(xapian-metadata get ${XAPIAN_PATH} version)" 3
+
case $config in
XDG*)
test_begin_subtest "Set shadowed config value in database ($config)"