Radius functionality and memleak test.

This commit is contained in:
Vlad Grigorescu 2014-05-15 11:49:03 -04:00
parent a3e00322a2
commit 9ab4744072
4 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,10 @@
#separator \x09
#set_separator ,
#empty_field (empty)
#unset_field -
#path radius
#open 2014-05-15-15-24-25
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p username mac remote_ip connect_info result
#types time string addr port addr port string string addr string string
1217631137.916736 CXWv6p3arKYeMETxOg 10.0.0.1 1645 10.0.0.100 1812 John.McGuirk 00:14:22:e9:54:5e - - success
#close 2014-05-15-15-24-25

Binary file not shown.

View file

@ -0,0 +1,10 @@
# Needs perftools support.
#
# @TEST-REQUIRES: bro --help 2>&1 | grep -q mem-leaks
#
# @TEST-GROUP: leaks
#
# @TEST-EXEC: HEAP_CHECK_DUMP_DIRECTORY=. HEAPCHECK=local btest-bg-run bro bro -b -m -r $TRACES/radius/radius.trace %INPUT
# @TEST-EXEC: btest-bg-wait 30
@load base/protocols/radius

View file

@ -0,0 +1,6 @@
# This tests that a RADIUS authentication gets logged correctly
# @TEST-EXEC: bro -b -r $TRACES/radius/radius.trace %INPUT
# @TEST-EXEC: btest-diff radius.log
@load base/protocols/radius