]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Store rspamd log permanently for functional tests.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 Jul 2015 18:08:01 +0000 (19:08 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 2 Jul 2015 18:08:01 +0000 (19:08 +0100)
test/functional/configs/trivial.conf
test/functional/test_helper.bash

index 0750d58341bec8f69ee6676ea2db03358bb03284..896f2b4ff8e12b288ce6c7661255cc43ba855f1a 100644 (file)
@@ -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";
+       }
 }
index bccacf057bb8ec250134cd302775ea389776b12b..b8ff9a557024b59c5036bbf3bee86782e5654e38 100644 (file)
@@ -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}
 }