unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 19bb23386a50177537722776eeade8bc3018019f 769 bytes (raw)
name: test/T720-emacs-attachment-warnings.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 
#!/usr/bin/env bash

test_description="emacs attachment warnings"
. $(dirname "$0")/test-lib.sh || exit 1

declare -a okays=(
    "nothing to see"
    "attachment\n<#part filename=foo />"
    "<#part filename=foo/>"
)

declare -a not_okays=(
    "attachment"
)

echo "okay" > EXPECTED
for okay in "${okays[@]}"; do
    test_begin_subtest "Check okay"
    test_emacs '
(load-library "emacs-attachment-test.el")
(single-test "'"$okay"'")
(test-output)'
    test_expect_equal_file EXPECTED OUTPUT
done

echo "not okay!" > EXPECTED
for not_okay in "${not_okays[@]}"; do
    test_begin_subtest "Check not_okay"
    test_emacs '
(load-library "emacs-attachment-test.el")
(single-test "'"$not_okay"'")
(test-output)'
    test_expect_equal_file EXPECTED OUTPUT
done

test_done

debug log:

solving 19bb2338 ...
found 19bb2338 in https://yhetil.org/notmuch/20180906181456.21719-3-dme@dme.org/

applying [1/1] https://yhetil.org/notmuch/20180906181456.21719-3-dme@dme.org/
diff --git a/test/T720-emacs-attachment-warnings.sh b/test/T720-emacs-attachment-warnings.sh
new file mode 100755
index 00000000..19bb2338

Checking patch test/T720-emacs-attachment-warnings.sh...
Applied patch test/T720-emacs-attachment-warnings.sh cleanly.

index at:
100755 19bb23386a50177537722776eeade8bc3018019f	test/T720-emacs-attachment-warnings.sh

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).