unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 73c58ff482be3b219a6ca42e7e707e1a66d1ad36 959 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
 
#!/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_expect_success "Set string value" \
  'notmuch config set foo.bar baz'

test_expect_success "Set list value" \
  'notmuch config set foo.list xxx "yyy yyy" "zzz zzz"'

test_begin_subtest "List all items"
test_subtest_known_broken
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 73c58ff ...
found 73c58ff in https://yhetil.org/notmuch/1333149350-22616-4-git-send-email-novalazy@gmail.com/
found d3e574c in https://yhetil.org/notmuch/1333149350-22616-3-git-send-email-novalazy@gmail.com/

applying [1/2] https://yhetil.org/notmuch/1333149350-22616-3-git-send-email-novalazy@gmail.com/
diff --git a/test/config b/test/config
new file mode 100755
index 0000000..d3e574c


applying [2/2] https://yhetil.org/notmuch/1333149350-22616-4-git-send-email-novalazy@gmail.com/
diff --git a/test/config b/test/config
index d3e574c..73c58ff 100755

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

index at:
100755 73c58ff482be3b219a6ca42e7e707e1a66d1ad36	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).