]> git.notmuchmail.org Git - notmuch/blobdiff - test/T610-message-property.sh
test: only accept short and long options, not silly in-betweens
[notmuch] / test / T610-message-property.sh
index c92b99ba32981d19a3e038b291d9f0c8721240f1..65ff19dc17d9401b38611986420794d8537c52d8 100755 (executable)
@@ -237,4 +237,15 @@ notmuch restore < BEFORE2
 notmuch dump | grep '^#=' > OUTPUT
 test_expect_equal_file PROPERTIES OUTPUT
 
+test_begin_subtest "test 'property:' queries: empty"
+notmuch search property:testkey1=charles > OUTPUT
+test_expect_equal_file /dev/null OUTPUT
+
+test_begin_subtest "test 'property:' queries: single message"
+notmuch search --output=messages property:testkey1=alice > OUTPUT
+cat <<EOF >EXPECTED
+id:4EFC743A.3060609@april.org
+EOF
+test_expect_equal_file EXPECTED OUTPUT
+
 test_done