aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-07-20 09:29:05 +0100
committerAndrew Lewis <nerf@judo.za.org>2016-07-20 09:29:05 +0100
commit749e79a8cd1aa26e55ac596e68dd1708a7cf344d (patch)
treeb141f9455e07ed3cccb184a41fd8fbc13f98f317 /test/functional
parent5d97485bd98bec9fefcc4fba73bd97e961e551f6 (diff)
downloadrspamd-749e79a8cd1aa26e55ac596e68dd1708a7cf344d.tar.gz
rspamd-749e79a8cd1aa26e55ac596e68dd1708a7cf344d.zip
[Fix] Partial fix for mmap'd statistics tests
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/cases/statistics/compat-keyed.robot1
-rw-r--r--test/functional/cases/statistics/compat-plain.robot1
-rw-r--r--test/functional/configs/stats.conf2
3 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/cases/statistics/compat-keyed.robot b/test/functional/cases/statistics/compat-keyed.robot
index 054978745..1242df12c 100644
--- a/test/functional/cases/statistics/compat-keyed.robot
+++ b/test/functional/cases/statistics/compat-keyed.robot
@@ -7,6 +7,7 @@ Resource lib.robot
${STATS_BACKEND} mmap
${STATS_HASH} hash = "compat";
${STATS_KEY} key = "${KEY_PVT1}";
+${STATS_PATH_CACHE} name = "sqlite3"; path = "\${TMPDIR}/learn_cache.db";
*** Test Cases ***
Learn
diff --git a/test/functional/cases/statistics/compat-plain.robot b/test/functional/cases/statistics/compat-plain.robot
index 246d5a5d5..12bbaedcd 100644
--- a/test/functional/cases/statistics/compat-plain.robot
+++ b/test/functional/cases/statistics/compat-plain.robot
@@ -6,6 +6,7 @@ Resource lib.robot
*** Variables ***
${STATS_BACKEND} mmap
${STATS_HASH} hash = "compat";
+${STATS_PATH_CACHE} name = "sqlite3"; path = "\${TMPDIR}/learn_cache.db";
*** Test Cases ***
Learn
diff --git a/test/functional/configs/stats.conf b/test/functional/configs/stats.conf
index 216d7d8f3..6c2893022 100644
--- a/test/functional/configs/stats.conf
+++ b/test/functional/configs/stats.conf
@@ -45,12 +45,14 @@ classifier {
}
backend = ${STATS_BACKEND}
statfile {
+ spam = true;
symbol = BAYES_SPAM;
${STATS_PATH_SPAM}
size = 1M;
${REDIS_SERVER}
}
statfile {
+ spam = false;
symbol = BAYES_HAM;
${STATS_PATH_HAM}
size = 1M;