unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 0fbc79b248486626d120fda4876c1e738f48f864 1050 bytes (raw)
name: test/config 	 # 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
37
38
39
40
 
#!/usr/bin/env bash

test_description='"notmuch config"'
. test-lib.sh

test_begin_subtest "Get string value"
test_expect_equal "$(notmuch config get user.name)" "Notmuch Test Suite"

test_begin_subtest "Get list value"
test_expect_equal "$(notmuch config get new.tags)" "\
unread
inbox"

test_begin_subtest "Set string value"
notmuch config set foo.bar baz
test_expect_equal "$(notmuch config get foo.bar)" "baz"

test_begin_subtest "Set list value"
notmuch config set foo.list xxx "yyy yyy" "zzz zzz"
test_expect_equal "$(notmuch config get foo.list)" "\
xxx
yyy yyy
zzz zzz"

test_begin_subtest "List all items"
notmuch config set database.path "/canonical/path"
output=$(notmuch config list)
test_expect_equal "$output" "\
database.path=/canonical/path
user.name=Notmuch Test Suite
user.primary_email=test_suite@notmuchmail.org
user.other_email=test_suite_other@notmuchmail.org;test_suite@otherdomain.org
new.tags=unread;inbox;
new.ignore=
search.exclude_tags=
maildir.synchronize_flags=true
foo.bar=baz
foo.list=xxx;yyy yyy;zzz zzz;"

test_done

debug log:

solving 0fbc79b ...
found 0fbc79b in https://yhetil.org/notmuch/1333676886-9835-5-git-send-email-novalazy@gmail.com/
found cce2abc in https://yhetil.org/notmuch/1333676886-9835-4-git-send-email-novalazy@gmail.com/
found 75f662d in https://yhetil.org/notmuch/1333676886-9835-3-git-send-email-novalazy@gmail.com/

applying [1/3] https://yhetil.org/notmuch/1333676886-9835-3-git-send-email-novalazy@gmail.com/
diff --git a/test/config b/test/config
new file mode 100755
index 0000000..75f662d


applying [2/3] https://yhetil.org/notmuch/1333676886-9835-4-git-send-email-novalazy@gmail.com/
diff --git a/test/config b/test/config
index 75f662d..cce2abc 100755


applying [3/3] https://yhetil.org/notmuch/1333676886-9835-5-git-send-email-novalazy@gmail.com/
diff --git a/test/config b/test/config
index cce2abc..0fbc79b 100755

Checking patch test/config...
Applied patch test/config cleanly.
Checking patch test/config...
Applied patch test/config cleanly.
Checking patch test/config...
Applied patch test/config cleanly.

index at:
100755 0fbc79b248486626d120fda4876c1e738f48f864	test/config

(*) 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).