Initial drop of known-hosts unit test, with tracefile and directory structure, as well as c ouple of files pulled from Robin's logging branch.

This commit is contained in:
Don Appleman 2011-03-24 11:27:21 -05:00
parent 871eff9f90
commit 638eb2f8eb
6 changed files with 42 additions and 0 deletions

1
testing/btest/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.tmp

View file

@ -0,0 +1,5 @@
#! /usr/bin/env bash
#
# Replace anything which looks like timestamps with XXXs.
sed 's/[0-9]\{10\}\.[0-9]\{4,6\}/XXXXXXXXXX.XXXXXX/g'

View file

@ -0,0 +1,6 @@
@TEST-EXEC: bro -r %DIR/../traces/wikipedia.trace known-hosts
@TEST-EXEC: btest-diff KNOWN_HOSTS
@TEST-EXEC: btest-diff .stderr
@TEST-EXEC: btest-diff .stdout

13
testing/btest/btest.cfg Normal file
View file

@ -0,0 +1,13 @@
[btest]
TestDirs = logging Scripts
TmpDir = %(testbase)s/.tmp
BaselineDir = %(testbase)s/Baseline
IgnoreDirs = .svn CVS .tmp
IgnoreFiles = *.tmp *.swp #* *.trace diff-canonifier
[environment]
BROPATH=`bash -c %(testbase)s/../../build/bro-path-dev`
BRO_SEED_FILE=%(testbase)s/random.seed
PATH=%(testbase)s/../../build/src:%(testbase)s/../../aux/btest:%(default_path)s
TEST_DIFF_CANONIFIER=%(testbase)s/Scripts/diff-canonifier

17
testing/btest/random.seed Normal file
View file

@ -0,0 +1,17 @@
2983378351
1299727368
0
310447
0
1409073626
3975311262
34130240
1450515018
1466150520
1342286698
1193956778
2188527278
3361989254
3912865238
3596260151
517973768

Binary file not shown.