aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-02 19:08:01 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-02 19:08:01 +0100
commit98a46bf694fba3a9130d5d6ce4a2399083423a15 (patch)
treec0dccd5603893edffc699134fb6e6c4c453c9e5d /test
parent67bb533e8927bcc1e7de6f4b3b26e1a027a7e8f8 (diff)
downloadrspamd-98a46bf694fba3a9130d5d6ce4a2399083423a15.tar.gz
rspamd-98a46bf694fba3a9130d5d6ce4a2399083423a15.zip
Store rspamd log permanently for functional tests.
Diffstat (limited to 'test')
-rw-r--r--test/functional/configs/trivial.conf7
-rw-r--r--test/functional/test_helper.bash1
2 files changed, 7 insertions, 1 deletions
diff --git a/test/functional/configs/trivial.conf b/test/functional/configs/trivial.conf
index 0750d5834..896f2b4ff 100644
--- a/test/functional/configs/trivial.conf
+++ b/test/functional/configs/trivial.conf
@@ -7,8 +7,9 @@ options = {
pidfile = "/tmp/rspamd-bats.pid"
}
logging = {
- type = "console",
+ type = "file",
level = "debug"
+ filename = "/tmp/rspamd-bats.log"
}
metric = {
name = "default",
@@ -22,4 +23,8 @@ worker {
type = normal
bind_socket = localhost:56789
count = 1
+ keypair {
+ pubkey = "y3ms1knmetxf8gdeixkf74b6tbpxqugmxzqksnjodiqei7tksyty";
+ privkey = "oswsyqndpj3swqa4yqm4yzoyih83otqkeoxpo9km95o46ixh6quy";
+ }
}
diff --git a/test/functional/test_helper.bash b/test/functional/test_helper.bash
index bccacf057..b8ff9a557 100644
--- a/test/functional/test_helper.bash
+++ b/test/functional/test_helper.bash
@@ -3,6 +3,7 @@ function run_rspamd() {
RSPAMD_GROUP=${RSPAMD_GROUP:-"nogroup"}
RSPAMD=${RSPAMD:-"$BATS_TEST_DIRNAME/../../src/rspamd"}
+ if [ -f /tmp/rspamd-bats.log ] ; then rm -f /tmp/rspamd-bats.log ; fi
${RSPAMD} -c ${RSPAMD_CONFIG} -u ${RSPAMD_USER} -g ${RSPAMD_GROUP}
}