--- /dev/null
+[**] 10/06/2015-15:16:43.136335
+SCFlowStats is
+Packet count to server: 6
+Byte count to server: 504
+Packet count to client: 4
+Byte count to client: 635
+[**]
\ No newline at end of file
--- /dev/null
+-- lua_pushinteger output test for SCFlowStats and ...
+name = "lua-scflowstats.log"
+
+function init(args)
+ local needs = {}
+ needs["type"] = "flow"
+ return needs
+end
+
+function setup(args)
+ filename = SCLogPath() .. "/" .. name
+ file = assert(io.open(filename, "a"))
+ SCLogInfo("lua SCFlowStats Log Filename " .. filename)
+end
+
+function log(args)
+ timestring = SCFlowTimeString()
+ tscnt, tsbytes, tccnt, tcbytes = SCFlowStats()
+
+ file:write ("[**] " .. timestring .. "\nSCFlowStats is\nPacket count to server: " .. tscnt .. "\nByte count to server: " .. tsbytes .. "\nPacket count to client: " .. tccnt .. "\nByte count to client: " .. tcbytes .. "\n[**]")
+ file:flush()
+end
+
+function deinit(args)
+ file:close(file)
+end
--- /dev/null
+requires:
+ features:
+ - HAVE_LUA
+
+checks:
+
+ - file-compare:
+ # A check that compares two files
+ filename: lua-scflowstats.log
+ expected: expected/lua-scflowstats.log