mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-17 23:53:15 +01:00
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.
This commit is contained in:
parent
a3b46fa8bb
commit
687866111a
1 changed files with 6 additions and 0 deletions
|
@ -313,6 +313,12 @@ user.other_email
|
||||||
user.primary_email
|
user.primary_email
|
||||||
EOF
|
EOF
|
||||||
test_expect_equal_file EXPECTED OUTPUT
|
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
|
case $config in
|
||||||
XDG*)
|
XDG*)
|
||||||
test_begin_subtest "Set shadowed config value in database ($config)"
|
test_begin_subtest "Set shadowed config value in database ($config)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue