[PATCH 05/10] test: Sanity tests for --use-schema argument

Austin Clements amdragon at MIT.EDU
Sat Dec 1 18:39:57 PST 2012


---
 test/json |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/json b/test/json
index bfafd55..65e007c 100755
--- a/test/json
+++ b/test/json
@@ -60,4 +60,10 @@ test_expect_equal_json "$output" "[{\"thread\": \"XXX\",
  \"tags\": [\"inbox\",
  \"unread\"]}]"
 
+test_expect_code 20 "Schema version: too low" \
+    "notmuch search --use-schema=0 *"
+
+test_expect_code 21 "Schema version: too high" \
+    "notmuch search --use-schema=999 *"
+
 test_done
-- 
1.7.10.4



More information about the notmuch mailing list