aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2020-10-05 20:28:29 -0300
committerDavid Bremner <david@tethera.net>2021-02-06 19:15:53 -0400
commit66adcd4f538d426205fd09b0f97b63c74e9e82d7 (patch)
treebe7d2376f6fd6b7533d4760c35b2c239c8574110 /test
parenta4af7a2a1b56efb11f2ed0c365202a8f234b4438 (diff)
CLI/restore: convert to new config framework
Switch one configuration check to new n_c_get_bool function, and switch use of config as talloc context to notmuch.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T035-read-config.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/T035-read-config.sh b/test/T035-read-config.sh
index 9e506dfa..35fbd600 100755
--- a/test/T035-read-config.sh
+++ b/test/T035-read-config.sh
@@ -122,4 +122,24 @@ notmuch dump --include=tags query:$query_name | sort >> OUTPUT
restore_config
test_expect_equal_file EXPECTED OUTPUT
+test_begin_subtest "restore with xdg config"
+backup_config
+notmuch dump '*' > EXPECTED
+notmuch tag -inbox '*'
+xdg_config
+notmuch restore --input=EXPECTED
+notmuch dump > OUTPUT
+restore_config
+test_expect_equal_file EXPECTED OUTPUT
+
+test_begin_subtest "restore with xdg+profile config"
+backup_config
+notmuch dump '*' > EXPECTED
+notmuch tag -inbox '*'
+xdg_config work
+notmuch restore --input=EXPECTED
+notmuch dump > OUTPUT
+restore_config
+test_expect_equal_file EXPECTED OUTPUT
+
test_done