aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-05-21 12:54:10 -0300
committerDavid Bremner <david@tethera.net>2021-06-27 13:59:42 -0300
commit2f608d2a9400f666ec0aca1f76b59f6640104e4e (patch)
tree8934d09f08ecf2cfe7cbaef1136db6911a86d447 /test
parent65f923219e08193d590bec35e2c3995dc6a19395 (diff)
lib/config: add NOTMUCH_CONFIG_AUTOCOMMIT
This will be used to control how often atomic transactions are committed.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T030-config.sh1
-rwxr-xr-xtest/T055-path-config.sh1
-rwxr-xr-xtest/T590-libconfig.sh4
3 files changed, 6 insertions, 0 deletions
diff --git a/test/T030-config.sh b/test/T030-config.sh
index 7a1660e9..751feaf3 100755
--- a/test/T030-config.sh
+++ b/test/T030-config.sh
@@ -51,6 +51,7 @@ cat <<EOF > EXPECTED
built_with.compact=something
built_with.field_processor=something
built_with.retry_lock=something
+database.autocommit=8000
database.mail_root=MAIL_DIR
database.path=MAIL_DIR
foo.list=this;is another;list value;
diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh
index 8ef76aed..bb3bf665 100755
--- a/test/T055-path-config.sh
+++ b/test/T055-path-config.sh
@@ -259,6 +259,7 @@ EOF
built_with.compact=true
built_with.field_processor=true
built_with.retry_lock=true
+database.autocommit=8000
database.backup_dir
database.hook_dir
database.mail_root=MAIL_DIR
diff --git a/test/T590-libconfig.sh b/test/T590-libconfig.sh
index 189381f7..41f67bae 100755
--- a/test/T590-libconfig.sh
+++ b/test/T590-libconfig.sh
@@ -419,6 +419,7 @@ cat <<'EOF' >EXPECTED
08: 'USERNAME@FQDN'
09: 'NULL'
10: 'USER_FULL_NAME'
+11: '8000'
== stderr ==
EOF
unset MAILDIR
@@ -730,6 +731,7 @@ cat <<'EOF' >EXPECTED
08: 'test_suite@notmuchmail.org'
09: 'test_suite_other@notmuchmail.org;test_suite@otherdomain.org'
10: 'Notmuch Test Suite'
+11: '8000'
== stderr ==
EOF
test_expect_equal_file EXPECTED OUTPUT
@@ -762,6 +764,7 @@ cat <<'EOF' >EXPECTED
08: 'USERNAME@FQDN'
09: 'NULL'
10: 'USER_FULL_NAME'
+11: '8000'
== stderr ==
EOF
test_expect_equal_file EXPECTED OUTPUT.clean
@@ -828,6 +831,7 @@ EOF
cat <<'EOF' >EXPECTED
== stdout ==
aaabefore beforeval
+database.autocommit 8000
database.backup_dir MAIL_DIR/.notmuch/backups
database.hook_dir MAIL_DIR/.notmuch/hooks
database.mail_root MAIL_DIR