Skip to content
Permalink
Browse files

Merge pull request #1 from jswaro/bugfix/add-testing-back

Added the testing infrastructure back
  • Loading branch information...
jswaro committed Feb 20, 2017
2 parents 75a0f68 + 47f6f2c commit a6f744daf64b4acf97193097bba16f1a59a6ff3c
Showing with 10 additions and 5 deletions.
  1. +1 −1 Makefile
  2. +3 −1 bro-pkg.meta
  3. +3 −0 scripts/__load__.bro
  4. +1 −1 scripts/__preload__.bro
  5. +1 −1 tests/Baseline/tcprs.show-plugin/output
  6. +1 −1 tests/tcprs/show-plugin.bro
@@ -26,4 +26,4 @@ distclean:
rm -rf $(cmake_build_dir)

test:
if [ -f build/lib/Bro-* ]; then make -C tests; else echo "Plugin not built."; fi
if [ -f build/lib/jswaro-* ]; then make -C tests; else echo "Plugin not built."; fi
@@ -1,5 +1,7 @@
[package]
description = TCP Retransmission and State Analyzer plugin for Bro.
tags = bro plugin, TCP, retransmission, connection state
tags = bro plugin, TCP, retransmission, connection state, conn, input reader, protocol analyzer
build_command = ( ./configure --bro-dist=%(bro_dist)s && make )
plugin_dir = build
script_dir = scripts
test_command = cd tests btest -d tcprs
@@ -0,0 +1,3 @@
#
# This is loaded unconditionally at Bro startup
#
@@ -4,7 +4,7 @@
#
# This is primarily for defining types that BiFs already depend on. If you need
# to do any other unconditional initialization (usually that's just for other BiF
# elemets), that should go into __load__.bro instead.
# elements), that should go into __load__.bro instead.
#

@load ./types.bro
@@ -1,4 +1,4 @@
Bro::TCPRS - A TCP retransmission and network reordering detection and classification analyzer (dynamic, version 0.1)
jswaro::TCPRS - A TCP retransmission and network reordering detection and classification analyzer (dynamic, version 0.2)
[Analyzer] TCPRS (ANALYZER_TCPRS, enabled)
[Function] TCPRS::EnableTCPRSAnalyzer
[Event] TCPRS::conn_spurious_dsack
@@ -1,2 +1,2 @@
# @TEST-EXEC: bro -NN Bro::TCPRS >output
# @TEST-EXEC: bro -NN jswaro::TCPRS >output
# @TEST-EXEC: btest-diff output

0 comments on commit a6f744d

Please sign in to comment.
You can’t perform that action at this time.