]> git.cworth.org Git - notmuch/blobdiff - test/T035-read-config.sh
cli/compact: convert to new configuration framework
[notmuch] / test / T035-read-config.sh
index 6dc7ccbbacd9fb0ddddb8884f888991600aac0f7..102aea60e86aa6c4ef3d19cce409547696e61b8d 100755 (executable)
@@ -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