Skip to content

Commit

Permalink
correcting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaulon committed Aug 28, 2015
1 parent fb9ab09 commit b02d728
Show file tree
Hide file tree
Showing 19 changed files with 76 additions and 41 deletions.
Expand Up @@ -3,7 +3,7 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-28-06-36-51
#open 2015-08-28-06-49-44
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1427875084.281072 CXWv6p3arKYeMETxOg 192.168.1.250 38955 192.168.1.10 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
Expand Down Expand Up @@ -412,4 +412,4 @@
1427875085.563788 CXWv6p3arKYeMETxOg 192.168.1.250 38955 192.168.1.10 44818 SEND_RR_DATA 20 8323075 SUCCESS 0,0,0,0,0,0,0,0 0
1427875085.566061 CXWv6p3arKYeMETxOg 192.168.1.250 38955 192.168.1.10 44818 SEND_RR_DATA 26 8323075 SUCCESS 0,0,0,0,0,0,0,0 0
1427875085.568654 CXWv6p3arKYeMETxOg 192.168.1.250 38955 192.168.1.10 44818 SEND_RR_DATA 20 8323075 SUCCESS 0,0,0,0,0,0,0,0 0
#close 2015-08-28-06-36-51
#close 2015-08-28-06-49-44
Expand Up @@ -3,7 +3,7 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-28-06-36-51
#open 2015-08-28-06-49-45
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1431680166.817730 CXWv6p3arKYeMETxOg 192.168.1.250 38801 192.168.1.10 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
Expand Down Expand Up @@ -4260,4 +4260,4 @@
1431682106.897624 CzA03V1VcgagLjnO92 192.168.1.250 38819 192.168.1.10 44818 REGISTER_SESSION 4 3801089 SUCCESS 0,0,0,0,0,0,0,0 0
1431682106.901097 CzA03V1VcgagLjnO92 192.168.1.250 38819 192.168.1.10 44818 SEND_RR_DATA 50 3801089 SUCCESS 0,0,0,0,0,0,0,0 0
1431682106.903976 CzA03V1VcgagLjnO92 192.168.1.250 38819 192.168.1.10 44818 SEND_RR_DATA 364 3801089 SUCCESS 0,0,0,0,0,0,0,0 0
#close 2015-08-28-06-36-51
#close 2015-08-28-06-49-45
Expand Up @@ -3,7 +3,7 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-28-06-36-52
#open 2015-08-28-06-49-46
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1435826930.287080 CCvvfg3TEfuqmmG4bh 192.168.1.100 49186 192.168.1.10 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
Expand Down Expand Up @@ -386,4 +386,4 @@
1435826967.347178 CCvvfg3TEfuqmmG4bh 192.168.1.100 49186 192.168.1.10 44818 SEND_UNIT_DATA 100 2359298 SUCCESS 0,0,0,0,0,0,0,0 0
1435826967.690114 CCvvfg3TEfuqmmG4bh 192.168.1.100 49186 192.168.1.10 44818 SEND_UNIT_DATA 30 2359298 SUCCESS 0,0,0,0,0,0,0,0 0
1435826967.695771 CCvvfg3TEfuqmmG4bh 192.168.1.100 49186 192.168.1.10 44818 SEND_UNIT_DATA 100 2359298 SUCCESS 0,0,0,0,0,0,0,0 0
#close 2015-08-28-06-36-52
#close 2015-08-28-06-49-46
Expand Up @@ -3,11 +3,11 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-28-06-36-54
#open 2015-08-28-06-49-47
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1427784031.191467 CJ3xTn1c4Zw9TmAE05 192.168.1.234 54416 192.168.1.10 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
1427784031.195169 CJ3xTn1c4Zw9TmAE05 192.168.1.234 54416 192.168.1.10 44818 REGISTER_SESSION 4 2031617 SUCCESS 0,0,0,0,0,0,0,0 0
1427784031.198905 CJ3xTn1c4Zw9TmAE05 192.168.1.234 54416 192.168.1.10 44818 SEND_RR_DATA 50 2031617 SUCCESS 48,0,0,0,0,0,0,0 0
1427784031.202125 CJ3xTn1c4Zw9TmAE05 192.168.1.234 54416 192.168.1.10 44818 SEND_RR_DATA 23 2031617 SUCCESS 48,0,0,0,0,0,0,0 0
#close 2015-08-28-06-36-54
#close 2015-08-28-06-49-47
Expand Up @@ -3,11 +3,11 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-28-06-36-54
#open 2015-08-28-06-49-48
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1427784213.856407 C7XEbhP654jzLoe3a 192.168.1.234 54418 192.168.1.10 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
1427784213.859802 C7XEbhP654jzLoe3a 192.168.1.234 54418 192.168.1.10 44818 REGISTER_SESSION 4 2162689 SUCCESS 0,0,0,0,0,0,0,0 0
1427784213.863274 C7XEbhP654jzLoe3a 192.168.1.234 54418 192.168.1.10 44818 SEND_RR_DATA 50 2162689 SUCCESS 48,0,0,0,0,0,0,0 0
1427784213.869012 C7XEbhP654jzLoe3a 192.168.1.234 54418 192.168.1.10 44818 SEND_RR_DATA 23 2162689 SUCCESS 48,0,0,0,0,0,0,0 0
#close 2015-08-28-06-36-54
#close 2015-08-28-06-49-48
Expand Up @@ -3,11 +3,11 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-28-06-36-55
#open 2015-08-28-06-49-48
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1427784281.471351 CIPOse170MGiRM1Qf4 192.168.1.234 54419 192.168.1.10 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
1427784281.472463 CIPOse170MGiRM1Qf4 192.168.1.234 54419 192.168.1.10 44818 REGISTER_SESSION 4 2228225 SUCCESS 0,0,0,0,0,0,0,0 0
1427784281.478609 CIPOse170MGiRM1Qf4 192.168.1.234 54419 192.168.1.10 44818 SEND_RR_DATA 50 2228225 SUCCESS 48,0,0,0,0,0,0,0 0
1427784281.482485 CIPOse170MGiRM1Qf4 192.168.1.234 54419 192.168.1.10 44818 SEND_RR_DATA 23 2228225 SUCCESS 48,0,0,0,0,0,0,0 0
#close 2015-08-28-06-36-55
#close 2015-08-28-06-49-48
Expand Up @@ -3,11 +3,11 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-28-06-36-55
#open 2015-08-28-06-49-49
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1428998298.187384 CXWv6p3arKYeMETxOg 192.168.1.250 42139 192.168.1.20 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
1428998298.190921 CXWv6p3arKYeMETxOg 192.168.1.250 42139 192.168.1.20 44818 REGISTER_SESSION 4 3866629 SUCCESS 0,0,0,0,0,0,0,0 0
1428998298.194188 CXWv6p3arKYeMETxOg 192.168.1.250 42139 192.168.1.20 44818 SEND_RR_DATA 52 3866629 SUCCESS 0,0,0,0,0,0,0,0 0
1428998298.205689 CXWv6p3arKYeMETxOg 192.168.1.250 42139 192.168.1.20 44818 SEND_RR_DATA 23 3866629 SUCCESS 0,0,0,0,0,0,0,0 0
#close 2015-08-28-06-36-55
#close 2015-08-28-06-49-49
@@ -1 +1 @@
0 of 8 events triggered by trace
5 of 8 events triggered by trace
Expand Up @@ -3,17 +3,15 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-18-07-53-32
#open 2015-08-28-06-49-50
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1428652937.264478 CXWv6p3arKYeMETxOg 192.168.1.250 41414 192.168.1.50 44818 REGISTER_SESSION 1024 0 SUCCESS 0,0,0,0,0,0,0,0 0
1428652937.266834 CXWv6p3arKYeMETxOg 192.168.1.250 41414 192.168.1.50 44818 REGISTER_SESSION 1024 16781056 SUCCESS 0,0,0,0,0,0,0,0 0
1428652937.271712 CXWv6p3arKYeMETxOg 192.168.1.250 41414 192.168.1.50 44818 SEND_RR_DATA 14336 16781056 SUCCESS 0,0,0,0,0,0,0,0 0
1428652937.279997 CXWv6p3arKYeMETxOg 192.168.1.250 41414 192.168.1.50 44818 SEND_RR_DATA 7168 16781056 SUCCESS 0,0,0,0,0,0,0,0 0
1428652937.279997 CXWv6p3arKYeMETxOg 192.168.1.250 41414 192.168.1.50 44818 SEND_RR_DATA 7168 16781056 SUCCESS 0,0,0,0,0,0,0,0 0
1428652991.677063 CjhGID4nQcgTWjvg4c 192.168.1.250 37627 192.168.1.20 44818 REGISTER_SESSION 1024 0 SUCCESS 0,0,0,0,0,0,0,0 0
1428652991.682702 CjhGID4nQcgTWjvg4c 192.168.1.250 37627 192.168.1.20 44818 REGISTER_SESSION 1024 83899136 SUCCESS 0,0,0,0,0,0,0,0 0
1428652991.686276 CjhGID4nQcgTWjvg4c 192.168.1.250 37627 192.168.1.20 44818 SEND_RR_DATA 12800 83899136 SUCCESS 0,0,0,0,0,0,0,0 0
1428652991.745151 CjhGID4nQcgTWjvg4c 192.168.1.250 37627 192.168.1.20 44818 SEND_RR_DATA 5888 83899136 SUCCESS 0,0,0,0,0,0,0,0 0
1428652991.745151 CjhGID4nQcgTWjvg4c 192.168.1.250 37627 192.168.1.20 44818 SEND_RR_DATA 5888 83899136 SUCCESS 0,0,0,0,0,0,0,0 0
#close 2015-08-18-07-53-32
1428652937.264478 CXWv6p3arKYeMETxOg 192.168.1.250 41414 192.168.1.50 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
1428652937.266834 CXWv6p3arKYeMETxOg 192.168.1.250 41414 192.168.1.50 44818 REGISTER_SESSION 4 983041 SUCCESS 0,0,0,0,0,0,0,0 0
1428652937.271712 CXWv6p3arKYeMETxOg 192.168.1.250 41414 192.168.1.50 44818 SEND_RR_DATA 56 983041 SUCCESS 0,0,0,0,0,0,0,0 0
1428652937.279997 CXWv6p3arKYeMETxOg 192.168.1.250 41414 192.168.1.50 44818 SEND_RR_DATA 28 983041 SUCCESS 0,0,0,0,0,0,0,0 0
1428652991.677063 CjhGID4nQcgTWjvg4c 192.168.1.250 37627 192.168.1.20 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
1428652991.682702 CjhGID4nQcgTWjvg4c 192.168.1.250 37627 192.168.1.20 44818 REGISTER_SESSION 4 3342341 SUCCESS 0,0,0,0,0,0,0,0 0
1428652991.686276 CjhGID4nQcgTWjvg4c 192.168.1.250 37627 192.168.1.20 44818 SEND_RR_DATA 50 3342341 SUCCESS 0,0,0,0,0,0,0,0 0
1428652991.745151 CjhGID4nQcgTWjvg4c 192.168.1.250 37627 192.168.1.20 44818 SEND_RR_DATA 23 3342341 SUCCESS 0,0,0,0,0,0,0,0 0
#close 2015-08-28-06-49-50
@@ -0,0 +1,28 @@
enip_header, T, 101, 4, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0], 0
enip_register, T, 1, 0
enip_header, F, 101, 4, 983041, 0, [0, 0, 0, 0, 0, 0, 0, 0], 0
enip_register, F, 1, 0
enip_header, T, 111, 56, 983041, 0, [0, 0, 0, 0, 0, 0, 0, 0], 0
enip_data_address, T, 0, 0, []
enip_data_address, T, 178, 40, [82, 3, 32, 6, 37, 0, 1, 0, 5, 157, 24, 0, 76, 10, 145, 17, 72, 77, 73, 95, 80, 53, 95, 80, 69, 82, 77, 73, 83, 83, 73, 86, 69, 0, 1, 0, 1, 0, 1, 0]
enip_common_packet_format, T, 2
enip_rr_unit, T, 0, 0
enip_header, F, 111, 28, 983041, 0, [0, 0, 0, 0, 0, 0, 0, 0], 0
enip_data_address, F, 0, 0, []
enip_data_address, F, 178, 12, [204, 0, 0, 0, 160, 2, 177, 100, 1, 0, 0, 0]
enip_common_packet_format, F, 2
enip_rr_unit, F, 0, 0
enip_header, T, 101, 4, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0], 0
enip_register, T, 1, 0
enip_header, F, 101, 4, 3342341, 0, [0, 0, 0, 0, 0, 0, 0, 0], 0
enip_register, F, 1, 0
enip_header, T, 111, 50, 3342341, 0, [0, 0, 0, 0, 0, 0, 0, 0], 0
enip_data_address, T, 0, 0, []
enip_data_address, T, 178, 34, [82, 3, 32, 6, 37, 0, 1, 0, 5, 157, 18, 0, 76, 7, 145, 12, 68, 73, 95, 80, 95, 50, 48, 49, 95, 82, 85, 78, 1, 0, 1, 0, 1, 0]
enip_common_packet_format, T, 2
enip_rr_unit, T, 0, 0
enip_header, F, 111, 23, 3342341, 0, [0, 0, 0, 0, 0, 0, 0, 0], 0
enip_data_address, F, 0, 0, []
enip_data_address, F, 178, 7, [204, 0, 0, 0, 193, 0, 0]
enip_common_packet_format, F, 2
enip_rr_unit, F, 0, 0
Expand Up @@ -3,11 +3,11 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-28-06-36-56
#open 2015-08-28-06-49-50
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1428653285.140528 CPbrpk1qSsw6ESzHV4 192.168.1.250 37631 192.168.1.20 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
1428653285.146837 CPbrpk1qSsw6ESzHV4 192.168.1.250 37631 192.168.1.20 44818 REGISTER_SESSION 4 2752517 SUCCESS 0,0,0,0,0,0,0,0 0
1428653285.150547 CPbrpk1qSsw6ESzHV4 192.168.1.250 37631 192.168.1.20 44818 SEND_RR_DATA 50 2752517 SUCCESS 0,0,0,0,0,0,0,0 0
1428653285.178744 CPbrpk1qSsw6ESzHV4 192.168.1.250 37631 192.168.1.20 44818 SEND_RR_DATA 23 2752517 SUCCESS 0,0,0,0,0,0,0,0 0
#close 2015-08-28-06-36-56
#close 2015-08-28-06-49-50
Expand Up @@ -3,7 +3,7 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-28-06-36-56
#open 2015-08-28-06-49-51
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1432105989.940197 CXWv6p3arKYeMETxOg 192.168.1.250 34248 192.168.1.10 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
Expand All @@ -16,4 +16,4 @@
1432105989.986206 CXWv6p3arKYeMETxOg 192.168.1.250 34248 192.168.1.10 44818 SEND_UNIT_DATA 26 7536641 SUCCESS 0,0,0,0,0,0,0,0 0
1432105989.988938 CXWv6p3arKYeMETxOg 192.168.1.250 34248 192.168.1.10 44818 SEND_UNIT_DATA 34 7536641 SUCCESS 0,0,0,0,0,0,0,0 0
1432105989.994391 CXWv6p3arKYeMETxOg 192.168.1.250 34248 192.168.1.10 44818 SEND_UNIT_DATA 33 7536641 SUCCESS 0,0,0,0,0,0,0,0 0
#close 2015-08-28-06-36-56
#close 2015-08-28-06-49-51
Expand Up @@ -3,7 +3,7 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-28-06-36-57
#open 2015-08-28-06-49-51
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1429520046.780140 CXWv6p3arKYeMETxOg 192.168.1.250 52299 192.168.1.10 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
Expand All @@ -22,4 +22,4 @@
1429520068.928581 CjhGID4nQcgTWjvg4c 192.168.1.250 52300 192.168.1.10 44818 SEND_RR_DATA 20 1638401 SUCCESS 0,0,0,0,0,0,0,0 0
1429520068.932493 CjhGID4nQcgTWjvg4c 192.168.1.250 52300 192.168.1.10 44818 SEND_RR_DATA 44 1638401 SUCCESS 0,0,0,0,0,0,0,0 0
1429520070.015489 CjhGID4nQcgTWjvg4c 192.168.1.250 52300 192.168.1.10 44818 SEND_RR_DATA 23 1638401 SUCCESS 0,0,0,0,0,0,0,0 0
#close 2015-08-28-06-36-57
#close 2015-08-28-06-49-51
Expand Up @@ -3,7 +3,7 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-28-06-36-58
#open 2015-08-28-06-49-52
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1429521512.746878 CXWv6p3arKYeMETxOg 192.168.1.250 52313 192.168.1.10 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
Expand Down Expand Up @@ -54,4 +54,4 @@
1429521681.615398 CPbrpk1qSsw6ESzHV4 192.168.1.250 52318 192.168.1.10 44818 SEND_RR_DATA 22 2818049 SUCCESS 0,0,0,0,0,0,0,0 0
1429521681.619419 CPbrpk1qSsw6ESzHV4 192.168.1.250 52318 192.168.1.10 44818 SEND_RR_DATA 44 2818049 SUCCESS 0,0,0,0,0,0,0,0 0
1429521681.624904 CPbrpk1qSsw6ESzHV4 192.168.1.250 52318 192.168.1.10 44818 SEND_RR_DATA 23 2818049 SUCCESS 0,0,0,0,0,0,0,0 0
#close 2015-08-28-06-36-58
#close 2015-08-28-06-49-52
Expand Up @@ -3,7 +3,7 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-28-06-36-59
#open 2015-08-28-06-49-53
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1428999698.508983 CXWv6p3arKYeMETxOg 192.168.1.233 45472 192.168.1.20 44818 REGISTER_SESSION 4 0 SUCCESS 95,112,121,99,111,109,109,95 0
Expand All @@ -16,4 +16,4 @@
1428999698.593524 CjhGID4nQcgTWjvg4c 192.168.1.233 45473 192.168.1.20 44818 SEND_RR_DATA 64 2818053 SUCCESS 95,112,121,99,111,109,109,95 0
1428999698.607862 CjhGID4nQcgTWjvg4c 192.168.1.233 45473 192.168.1.20 44818 SEND_RR_DATA 46 2818053 SUCCESS 95,112,121,99,111,109,109,95 0
1428999698.609254 CjhGID4nQcgTWjvg4c 192.168.1.233 45473 192.168.1.20 44818 SEND_UNIT_DATA 42 2818053 SUCCESS 95,112,121,99,111,109,109,95 0
#close 2015-08-28-06-36-59
#close 2015-08-28-06-49-53
Expand Up @@ -3,7 +3,7 @@
#empty_field (empty)
#unset_field -
#path enip
#open 2015-08-28-06-36-59
#open 2015-08-28-06-49-54
#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p command length session_handler status sender_context options
#types time string addr port addr port string count count string vector[count] count
1428652937.264478 CXWv6p3arKYeMETxOg 192.168.1.250 41414 192.168.1.50 44818 REGISTER_SESSION 4 0 SUCCESS 0,0,0,0,0,0,0,0 0
Expand All @@ -14,4 +14,4 @@
1428652991.682702 CjhGID4nQcgTWjvg4c 192.168.1.250 37627 192.168.1.20 44818 REGISTER_SESSION 4 3342341 SUCCESS 0,0,0,0,0,0,0,0 0
1428652991.686276 CjhGID4nQcgTWjvg4c 192.168.1.250 37627 192.168.1.20 44818 SEND_RR_DATA 50 3342341 SUCCESS 0,0,0,0,0,0,0,0 0
1428652991.745151 CjhGID4nQcgTWjvg4c 192.168.1.250 37627 192.168.1.20 44818 SEND_RR_DATA 23 3342341 SUCCESS 0,0,0,0,0,0,0,0 0
#close 2015-08-28-06-36-59
#close 2015-08-28-06-49-54
2 changes: 1 addition & 1 deletion testing/btest/Traces/enip/script.sh
Expand Up @@ -8,7 +8,7 @@ test="# @TEST-EXEC: btest-diff output\n# @TEST-EXEC: cat output | awk '{print \$
for i in $( ls ); do
if [[ $i = *."$extension" ]]; then
file=`echo $i| cut -d'.' -f 1`
test0="#\n# @TEST-EXEC: bro -r \$TRACES/$protocol/$file.pcapng \%DIR/events.bro > output\n$test"
test0="#\n# @TEST-EXEC: bro -r \$TRACES/$protocol/$file.pcapng %DIR/events.bro > output\n$test"
echo -e $test0 > ../../scripts/base/protocols/enip/$file.bro
fi
done
9 changes: 9 additions & 0 deletions testing/btest/scripts/base/protocols/enip/enip_read_tags.bro
@@ -0,0 +1,9 @@
#
# @TEST-EXEC: bro -r $TRACES/enip/enip_read_tags.pcapng %DIR/events.bro > output
# @TEST-EXEC: btest-diff output
# @TEST-EXEC: cat output | awk '{print $1}' | sort | uniq | wc -l > covered
# @TEST-EXEC: cat ${DIST}/src/analyzer/protocol/enip/events.bif | grep "^event enip_" | wc -l > total
# @TEST-EXEC: echo `cat covered` of `cat total` events triggered by trace > coverage
# @TEST-EXEC: btest-diff coverage
# @TEST-EXEC: btest-diff enip.log
#
@@ -1,7 +1,7 @@
#
# @TEST-EXEC: bro -r $TRACES/enip/enip_rw_attr_plc1_priv_violation.pcapng %DIR/events.bro > output
# @TEST-EXEC: btest-diff output
# @TEST-EXEC: cat output | awk '{print $1x}' | sort | uniq | wc -l > covered
# @TEST-EXEC: cat output | awk '{print $1}' | sort | uniq | wc -l > covered
# @TEST-EXEC: cat ${DIST}/src/analyzer/protocol/enip/events.bif | grep "^event enip_" | wc -l > total
# @TEST-EXEC: echo `cat covered` of `cat total` events triggered by trace > coverage
# @TEST-EXEC: btest-diff coverage
Expand Down

0 comments on commit b02d728

Please sign in to comment.