blob 54e85ab87a8a07f621ec7af63024b34800d43a52 1160 bytes (raw)
name: test/compact # 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
| | #!/usr/bin/env bash
test_description='"notmuch compact"'
. ./test-lib.sh
add_message '[subject]=One'
add_message '[subject]=Two'
add_message '[subject]=Three'
notmuch tag +tag1 \*
notmuch tag +tag2 subject:Two
notmuch tag -tag1 +tag3 subject:Three
test_begin_subtest "Compacting"
notmuch compact
test_expect_success "compact" "notmuch compact"
notmuch search \*
output=$(notmuch search \* | notmuch_search_sanitize)
test_expect_equal "$output" "\
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag1 unread)
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 tag2 unread)
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Three (inbox tag3 unread)"
test_begin_subtest "Restoring backup"
rm -Rf ${TEST_TMPDIR}/mail/xapian
mv ${TEST_TMPDIR}/mail/xapian.old ${TEST_TMPDIR}/mail/xapian
notmuch search \*
output=$(notmuch search \* | notmuch_search_sanitize)
test_expect_equal "$output" "\
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag1 unread)
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 tag2 unread)
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Three (inbox tag3 unread)"
test_done
|
debug log:
solving 54e85ab ...
found 54e85ab in https://yhetil.org/notmuch/1382998997-9938-1-git-send-email-bgamari.foss@gmail.com/ ||
https://yhetil.org/notmuch/1382905807-22220-1-git-send-email-bgamari.foss@gmail.com/ ||
https://yhetil.org/notmuch/1381799585-16274-2-git-send-email-bgamari.foss@gmail.com/
applying [1/1] https://yhetil.org/notmuch/1382998997-9938-1-git-send-email-bgamari.foss@gmail.com/
diff --git a/test/compact b/test/compact
new file mode 100755
index 0000000..54e85ab
Checking patch test/compact...
Applied patch test/compact cleanly.
skipping https://yhetil.org/notmuch/1382905807-22220-1-git-send-email-bgamari.foss@gmail.com/ for 54e85ab
skipping https://yhetil.org/notmuch/1381799585-16274-2-git-send-email-bgamari.foss@gmail.com/ for 54e85ab
index at:
100755 54e85ab87a8a07f621ec7af63024b34800d43a52 test/compact
(*) 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).