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

. ./test-lib.sh

tar zxf $TEST_DIRECTORY/test-databases/database-v1.tar.gz -C ${MAIL_DIR} --strip-components=1

# XXX: Test new notmuch with old database in read-only mode

test_begin_subtest "database upgrade from format version 1"
output=$(notmuch new)
test_expect_equal "$output" "\
Welcome to a new version of notmuch! Your database will now be upgraded.
Your notmuch database has now been upgraded to database format version 2.
No new mail."

# XXX: Add some meaningful tests on the upgraded database, testing the
# things that have been upgraded. For folder search, this means
# actually having folders in the corpus.

test_begin_subtest "Top level folder"
output=$(notmuch search folder:'""' | notmuch_search_sanitize)
test_expect_equal "$output" ""

test_done

debug log:

solving edee35d ...
found edee35d in https://yhetil.org/notmuch/33ae92e21bfeea0e21ad818d011fa4f000aa837c.1389304779.git.jani@nikula.org/

applying [1/1] https://yhetil.org/notmuch/33ae92e21bfeea0e21ad818d011fa4f000aa837c.1389304779.git.jani@nikula.org/
diff --git a/test/upgrade b/test/upgrade
new file mode 100755
index 0000000..edee35d

Checking patch test/upgrade...
Applied patch test/upgrade cleanly.

index at:
100755 edee35d2a648f6b0ce5ba12c538b86e574ab31a8	test/upgrade

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