unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob e718a18ce485d6c58a955f230ad2f97dd587927d 528 bytes (raw)
name: test/T520-show.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
 
#!/usr/bin/env bash
test_description='"notmuch show"'

. $(dirname "$0")/test-lib.sh || exit 1

add_email_corpus

test_begin_subtest "exit code for show invalid query"
notmuch show foo..
exit_code=$?
test_expect_equal 1 $exit_code

backup_database
test_begin_subtest "show with alternate config"
cp notmuch-config alt-config
notmuch --config=alt-config config set search.exclude_tags foobar17
notmuch tag -- +foobar17 '*'
output=$(notmuch --config=alt-config show '*')
test_expect_equal "$output" ""
restore_database

test_done

debug log:

solving e718a18c ...
found e718a18c in https://yhetil.org/notmuch/20210116170406.842014-22-david@tethera.net/ ||
	https://yhetil.org/notmuch/20210103233547.122707-23-david@tethera.net/ ||
	https://yhetil.org/notmuch/20201225004228.647328-21-david@tethera.net/
found 16222650 in https://yhetil.org/notmuch.git/
preparing index
index prepared:
100755 16222650eafc68b1d1f816a8cdda96bc3b0ce23a	test/T520-show.sh

applying [1/1] https://yhetil.org/notmuch/20210116170406.842014-22-david@tethera.net/
diff --git a/test/T520-show.sh b/test/T520-show.sh
index 16222650..e718a18c 100755

Checking patch test/T520-show.sh...
Applied patch test/T520-show.sh cleanly.

skipping https://yhetil.org/notmuch/20210103233547.122707-23-david@tethera.net/ for e718a18c
skipping https://yhetil.org/notmuch/20201225004228.647328-21-david@tethera.net/ for e718a18c
index at:
100755 e718a18ce485d6c58a955f230ad2f97dd587927d	test/T520-show.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).