Test updates.

Includes splitting up one test which's output now depends on wether
we've compiled with IPv6 support or not.
This commit is contained in:
Robin Sommer 2011-05-10 19:33:37 -07:00
parent 1b76b76bb0
commit b16bb7fff4
7 changed files with 18 additions and 2 deletions

View file

@ -0,0 +1,4 @@
not ip6
not ip6
(not ip6) and (tcp[13] & 7 != 0)
port 42

View file

@ -0,0 +1 @@
1128727435.450898 1.733303 141.42.64.125 125.190.109.199 http 56730 80 tcp 98 9417 SF X

View file

@ -28,7 +28,6 @@
2nd test2-11-03-07_12.00.05.log test2.log 11-03-07_12.00.05 11-03-07_12.59.55 0 2nd test2-11-03-07_12.00.05.log test2.log 11-03-07_12.00.05 11-03-07_12.59.55 0
1st test-11-03-07_12.00.05.log test.log 11-03-07_12.00.05 11-03-07_12.59.55 1 1st test-11-03-07_12.00.05.log test.log 11-03-07_12.00.05 11-03-07_12.59.55 1
2nd test2-11-03-07_12.59.55.log test2.log 11-03-07_12.59.55 11-03-07_12.59.55 1 2nd test2-11-03-07_12.59.55.log test2.log 11-03-07_12.59.55 11-03-07_12.59.55 1
# t id.orig_h id.orig_p id.resp_h id.resp_p
1299466805.0 10.0.0.1 20 10.0.0.2 1024 1299466805.0 10.0.0.1 20 10.0.0.2 1024
1299470395.0 10.0.0.2 20 10.0.0.3 0 1299470395.0 10.0.0.2 20 10.0.0.3 0
1299470405.0 10.0.0.1 20 10.0.0.2 1025 1299470405.0 10.0.0.1 20 10.0.0.2 1025
@ -59,7 +58,6 @@
> test-11-03-07_10.00.05.log > test-11-03-07_10.00.05.log
> test-11-03-07_11.00.05.log > test-11-03-07_11.00.05.log
> test-11-03-07_12.00.05.log > test-11-03-07_12.00.05.log
> test.log
> test2-11-03-07_03.00.05.log > test2-11-03-07_03.00.05.log
> test2-11-03-07_03.59.55.log > test2-11-03-07_03.59.55.log
> test2-11-03-07_04.00.05.log > test2-11-03-07_04.00.05.log
@ -81,3 +79,5 @@
> test2-11-03-07_12.00.05.log > test2-11-03-07_12.00.05.log
> test2-11-03-07_12.59.55.log > test2-11-03-07_12.59.55.log
> test2.log > test2.log
> test.log
# t id.orig_h id.orig_p id.resp_h id.resp_p

View file

@ -1,3 +1,5 @@
# @TEST-REQUIRES: bro -e 'print bro_has_ipv6()' | grep -q F
#
# @TEST-EXEC: bro print-filter >output 2>&1 # @TEST-EXEC: bro print-filter >output 2>&1
# @TEST-EXEC: bro tcp print-filter >>output # @TEST-EXEC: bro tcp print-filter >>output
# @TEST-EXEC: bro tcp print-filter all_packets=F >>output # @TEST-EXEC: bro tcp print-filter all_packets=F >>output

View file

@ -0,0 +1,9 @@
# @TEST-REQUIRES: bro -e 'print bro_has_ipv6()' | grep -q T
#
# @TEST-EXEC: bro print-filter >output 2>&1
# @TEST-EXEC: bro tcp print-filter >>output
# @TEST-EXEC: bro tcp print-filter all_packets=F >>output
# @TEST-EXEC: bro -f "port 42" print-filter >>output
# @TEST-EXEC: bro -C -f "port 50343" -r $TRACES/mixed-vlan-mpls.trace tcp
# @TEST-EXEC: btest-diff output
# @TEST-EXEC: btest-diff conn.log