test_expect_equal "$output" "OK"
test_begin_subtest "show with alternate config (xdg)"
-test_subtest_known_broken
backup_database
notmuch tag -- +foobar17 '*'
xdg_config
test_expect_equal "$output" "OK"
test_begin_subtest "show with alternate config (xdg+profile)"
-test_subtest_known_broken
backup_database
notmuch tag -- +foobar17 '*'
xdg_config foobar17
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