diff options
| author | David Bremner <david@tethera.net> | 2016-03-22 07:54:51 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2016-05-25 07:40:44 -0300 |
| commit | c6fcc555dde2a50ac779d5871720a4f074322457 (patch) | |
| tree | fd038b6b22bc2f746c8bffeb7d585d12607d6dbf /test | |
| parent | e042a25a3fd8706b6e1ee7bdf527bb17ecb74c6a (diff) | |
CLI: optionally restore config data.
The default to restore config data seems safest, especially since
currently we have no config data to mess up.
Diffstat (limited to 'test')
| -rwxr-xr-x | test/T590-libconfig.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/T590-libconfig.sh b/test/T590-libconfig.sh index 5ea53003..9c1e566d 100755 --- a/test/T590-libconfig.sh +++ b/test/T590-libconfig.sh @@ -132,4 +132,15 @@ cat <<'EOF' >EXPECTED EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "restore config" +notmuch dump --include=config >EXPECTED +cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} +{ + RUN(notmuch_database_set_config (db, "testkey1", "mutatedvalue")); +} +EOF +notmuch restore --include=config <EXPECTED +notmuch dump --include=config >OUTPUT +test_expect_equal_file EXPECTED OUTPUT + test_done |
