Lua batch mode
${result} = Run Process ${RSPAMADM} lua -b ${RSPAMD_TESTDIR}/lua/rspamadm/test_batch.lua
- Should Match Regexp ${result.stderr} ^$
+ Should Be Equal ${result.stderr} hello world
+ Should Match Regexp ${result.stdout} ^$
Should Be Equal As Integers ${result.rc} 0
- Should Be Equal ${result.stdout} hello world
+Verbose mode
+ ${result} = Run Process ${RSPAMADM} -v lua ${RSPAMD_TESTDIR}/lua/rspamadm/test_verbose.lua
+ Should Match Regexp ${result.stderr} ^$
+ Should Match Regexp ${result.stdout} hello world\n
+ Should Be Equal As Integers ${result.rc} 0
-print("hello world")
\ No newline at end of file
+local rspamd_logger = require "rspamd_logger"
+
+rspamd_logger.info(rspamd_config, "nope")
+rspamd_logger.err(rspamd_config, "hello world")