diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-20 12:58:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-20 12:58:52 +0100 |
commit | fcbb632de425168941dc33b6d5280f81c7f3ad29 (patch) | |
tree | 12593d266129c1009ec41d6ffa68632e90874352 /test/functional/cases | |
parent | 376bbef869bbf17eda7dd80443ad5251ab3f0a10 (diff) | |
download | rspamd-fcbb632de425168941dc33b6d5280f81c7f3ad29.tar.gz rspamd-fcbb632de425168941dc33b6d5280f81c7f3ad29.zip |
Add reload test case.
Diffstat (limited to 'test/functional/cases')
-rw-r--r-- | test/functional/cases/reload.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/functional/cases/reload.sh b/test/functional/cases/reload.sh new file mode 100644 index 000000000..cb1ce0ba3 --- /dev/null +++ b/test/functional/cases/reload.sh @@ -0,0 +1,23 @@ +# Test rspamd reload + +. ${TEST_DIRNAME}/functions.sh + +sed -e 's|@@LUA_SCRIPT@@|${TESTDIR}/cases/deps.lua|' < \ + "$TEST_DIRNAME/configs/lua_test.conf" > \ + "$TMPDIR/rspamd.conf" +export RSPAMD_CONFIG="$TMPDIR/rspamd.conf" \ + STATSDIR=${TMPDIR} +run_rspamd + +run_rspamc symbols \ + "$TEST_DIRNAME/messages/spam_message.eml" +check_output 'DEP10' + +kill -HUP `cat ${TMPDIR}/rspamd.pid` +sleep 0.5 +kill -HUP `cat ${TMPDIR}/rspamd.pid` +sleep 0.5 + +run_rspamc symbols \ + "$TEST_DIRNAME/messages/spam_message.eml" +check_output 'DEP10'
\ No newline at end of file |