aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2020-12-23 23:45:23 -0400
committerDavid Bremner <david@tethera.net>2021-02-06 19:36:06 -0400
commitf118ef3c3db0a01479a505ba85a34879d8e0dede (patch)
tree76f7396cd2fb33e2f0a0f1529b1d96bf144fe6f6 /test
parent5232462dcfe77e6af475c9dd1a25513c43af53f3 (diff)
cli/compact: convert to new configuration framework
Switch to the newly created API function notmuch_database_compact_db, which takes the database opened in main().
Diffstat (limited to 'test')
-rwxr-xr-xtest/T035-read-config.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/T035-read-config.sh b/test/T035-read-config.sh
index 6dc7ccbb..102aea60 100755
--- a/test/T035-read-config.sh
+++ b/test/T035-read-config.sh
@@ -447,4 +447,18 @@ EOF
restore_config
test_expect_equal_file EXPECTED OUTPUT
+test_begin_subtest "running compact (xdg)"
+xdg_config
+notmuch compact
+output=$(notmuch count '*')
+restore_config
+test_expect_equal "52" "$output"
+
+test_begin_subtest "running compact (xdg + profile)"
+xdg_config ${RANDOM}
+notmuch compact
+output=$(notmuch count '*')
+restore_config
+test_expect_equal "52" "$output"
+
test_done