zeek/testing/btest/zam/basic.test
Arne Welzel 51376191f7 testing/btest: Add ZAM basic test
While there's a btest environment for ZAM, it's currently not run by
default. Add a single zam/basic.test so that we catch memory leaks or
dead-on-arrival cases with the current CI setup.
2023-01-09 12:30:26 +01:00

16 lines
576 B
Text

# @TEST-DOC: Smoke checking that nothing is obviously broken with ZAM.
#
# @TEST-EXEC: zeek -r $TRACES/wikipedia.trace %INPUT
# @TEST-EXEC: mkdir non-zam
# @TEST-EXEC: mv *log non-zam
#
# @TEST-EXEC: zeek -OZAM -r $TRACES/wikipedia.trace %INPUT
#
# @TEST-EXEC: btest-diff conn.log
# @TEST-EXEC: btest-diff dns.log
# @TEST-EXEC: btest-diff http.log
#
# Compare the ZAM created logs with the non-zam ones
# @TEST-EXEC: TEST_BASELINE=./non-zam btest-diff conn.log
# @TEST-EXEC: TEST_BASELINE=./non-zam btest-diff dns.log
# @TEST-EXEC: TEST_BASELINE=./non-zam btest-diff http.log