mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
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:
parent
871eff9f90
commit
638eb2f8eb
6 changed files with 42 additions and 0 deletions
1
testing/btest/.gitignore
vendored
Normal file
1
testing/btest/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.tmp
|
5
testing/btest/Scripts/diff-canonifier
Executable file
5
testing/btest/Scripts/diff-canonifier
Executable 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'
|
6
testing/btest/Scripts/known-hosts-test
Normal file
6
testing/btest/Scripts/known-hosts-test
Normal 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
13
testing/btest/btest.cfg
Normal 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
17
testing/btest/random.seed
Normal file
|
@ -0,0 +1,17 @@
|
|||
2983378351
|
||||
1299727368
|
||||
0
|
||||
310447
|
||||
0
|
||||
1409073626
|
||||
3975311262
|
||||
34130240
|
||||
1450515018
|
||||
1466150520
|
||||
1342286698
|
||||
1193956778
|
||||
2188527278
|
||||
3361989254
|
||||
3912865238
|
||||
3596260151
|
||||
517973768
|
BIN
testing/btest/traces/wikipedia.trace
Normal file
BIN
testing/btest/traces/wikipedia.trace
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue