X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FT035-read-config.sh;h=205d1736fd9a4a74786e5c28cc5feb036dc71407;hb=0d3bef312dd624225825e6fe175ea8830c1c9e39;hp=6dc7ccbbacd9fb0ddddb8884f888991600aac0f7;hpb=c56dcea7e2da91ada6b6aa737ec115ef4bc91ba6;p=notmuch diff --git a/test/T035-read-config.sh b/test/T035-read-config.sh index 6dc7ccbb..205d1736 100755 --- a/test/T035-read-config.sh +++ b/test/T035-read-config.sh @@ -447,4 +447,32 @@ 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_begin_subtest "run notmuch-new (xdg)" +xdg_config +generate_message +output=$(NOTMUCH_NEW --debug) +restore_config +test_expect_equal "$output" "Added 1 new message to the database." + +test_begin_subtest "run notmuch-new (xdg + profile)" +xdg_config ${RANDOM} +generate_message +output=$(NOTMUCH_NEW --debug) +restore_config +test_expect_equal "$output" "Added 1 new message to the database." + test_done