]> git.cworth.org Git - notmuch/blobdiff - test/T035-read-config.sh
cli/new: convert to new config framework
[notmuch] / test / T035-read-config.sh
index 102aea60e86aa6c4ef3d19cce409547696e61b8d..205d1736fd9a4a74786e5c28cc5feb036dc71407 100755 (executable)
@@ -461,4 +461,18 @@ 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