test:
override:
- mkdir ../build ; mkdir ../install ; cd ../build
- - cmake ../rspamd -DENABLE_COVERAGE=ON -DCMAKE_INSTALL_PREFIX=../install
+ - cmake ../rspamd -DDBDIR=/nana -DENABLE_COVERAGE=ON -DCMAKE_INSTALL_PREFIX=../install
- make install
- RSPAMADM=../install/bin/rspamadm RSPAMC=../install/bin/rspamc RSPAMD=../install/bin/rspamd sudo -E robot ../rspamd/test/functional/cases
- lcov --no-external -b ../rspamd -d ../rspamd -c --output-file coverage.info
bind_socket = "${LOCAL_ADDR}:${PORT_CONTROLLER}";
count = 1
secure_ip = ["${LOCAL_ADDR}"];
+ stats_path = "${TMPDIR}/stats.ucl";
}
worker {
bind_socket = ${LOCAL_ADDR}:${PORT_CONTROLLER}
count = 1
secure_ip = ["127.0.0.1", "::1"];
+ stats_path = "${TMPDIR}/stats.ucl"
}
lua = ${LUA_SCRIPT};
}
password = ${PASSWORD};
enable_password = ${ENABLE_PASSWORD};
-}
\ No newline at end of file
+ stats_path = "${TMPDIR}/stats.ucl";
+}
privkey = "${KEY_PVT1}";
}
secure_ip = ["127.0.0.1", "::1"];
+ stats_path = "${TMPDIR}/stats.ucl";
}
classifier {
Log ${config}
Create File ${tmpdir}/rspamd.conf ${config}
${result} = Run Process ${RSPAMD} -u ${RSPAMD_USER} -g ${RSPAMD_GROUP}
- ... -c ${tmpdir}/rspamd.conf DBDIR\=${tmpdir} env:TMPDIR=${tmpdir} env:LD_LIBRARY_PATH=${TESTDIR}/../../contrib/aho-corasick
+ ... -c ${tmpdir}/rspamd.conf env:TMPDIR=${tmpdir} env:LD_LIBRARY_PATH=${TESTDIR}/../../contrib/aho-corasick
Run Keyword If ${result.rc} != 0 Log ${result.stderr}
${rspamd_logpos} = Log Logs ${tmpdir}/rspamd.log 0
Should Be Equal As Integers ${result.rc} 0