3 test_description='notmuch show --format=raw'
6 test_begin_subtest "Generate some messages"
10 test_expect_equal "$output" "Added 2 new messages to the database."
12 test_begin_subtest "Attempt to show multiple raw messages"
13 output=$(notmuch show --format=raw "*" 2>&1)
14 test_expect_equal "$output" "Error: search term did not match precisely one message."
16 test_begin_subtest "Show a raw message"
17 output=$(notmuch show --format=raw id:msg-001@notmuch-test-suite)
18 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
19 To: Notmuch Test Suite <test_suite@notmuchmail.org>
20 Message-Id: <msg-001@notmuch-test-suite>
21 Subject: Test message #1
22 Date: Tue, 05 Jan 2001 15:43:57 -0000
24 This is just a test message (#1)"
26 test_begin_subtest "Show another raw message"
27 output=$(notmuch show --format=raw id:msg-002@notmuch-test-suite)
28 test_expect_equal "$output" "From: Notmuch Test Suite <test_suite@notmuchmail.org>
29 To: Notmuch Test Suite <test_suite@notmuchmail.org>
30 Message-Id: <msg-002@notmuch-test-suite>
31 Subject: Test message #2
32 Date: Tue, 05 Jan 2001 15:43:57 -0000
34 This is just a test message (#2)"