Move GeoIP availability test in btests to zeek-config --have-geoip

This commit is contained in:
Christian Kreibich 2024-01-26 14:27:00 -08:00
parent c2e791287e
commit 173f5e7137
4 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@
# Like other MMDB tests, this uses a pcap to use each packet as a driver to # Like other MMDB tests, this uses a pcap to use each packet as a driver to
# touch the DBs involved upon each packet, triggering DB reloads. # touch the DBs involved upon each packet, triggering DB reloads.
# #
# @TEST-REQUIRES: grep -q "#define USE_GEOIP" $BUILD/zeek-config.h # @TEST-REQUIRES: $BUILD/zeek-config --have-geoip
# #
# @TEST-EXEC: cp -R $FILES/mmdb ./mmdb # @TEST-EXEC: cp -R $FILES/mmdb ./mmdb
# @TEST-EXEC: zeek -b -r $TRACES/rotation.trace %INPUT >out # @TEST-EXEC: zeek -b -r $TRACES/rotation.trace %INPUT >out

View file

@ -1,6 +1,6 @@
# @TEST-DOC: Test basic DB lookups for success/failure. # @TEST-DOC: Test basic DB lookups for success/failure.
# #
# @TEST-REQUIRES: grep -q "#define USE_GEOIP" $BUILD/zeek-config.h # @TEST-REQUIRES: $BUILD/zeek-config --have-geoip
# #
# @TEST-EXEC: zeek -b %INPUT >out.nodb # @TEST-EXEC: zeek -b %INPUT >out.nodb
# @TEST-EXEC: btest-diff out.nodb # @TEST-EXEC: btest-diff out.nodb

View file

@ -1,6 +1,6 @@
# @TEST-DOC: Change the modification time of the mmdb database on every packet. This triggers reopening of the MMDB database. # @TEST-DOC: Change the modification time of the mmdb database on every packet. This triggers reopening of the MMDB database.
# #
# @TEST-REQUIRES: grep -q "#define USE_GEOIP" $BUILD/zeek-config.h # @TEST-REQUIRES: $BUILD/zeek-config --have-geoip
# #
# @TEST-EXEC: cp -R $FILES/mmdb ./mmdb # @TEST-EXEC: cp -R $FILES/mmdb ./mmdb
# @TEST-EXEC: zeek -b -r $TRACES/rotation.trace %INPUT >out # @TEST-EXEC: zeek -b -r $TRACES/rotation.trace %INPUT >out

View file

@ -1,6 +1,6 @@
# @TEST-DOC: Test a few error and recovery cases (corrupted, removed and restored MMDB databases). # @TEST-DOC: Test a few error and recovery cases (corrupted, removed and restored MMDB databases).
# #
# @TEST-REQUIRES: grep -q "#define USE_GEOIP" $BUILD/zeek-config.h # @TEST-REQUIRES: $BUILD/zeek-config --have-geoip
# @TEST-REQUIRES: command -v truncate # @TEST-REQUIRES: command -v truncate
# #
# @TEST-EXEC: cp -R $FILES/mmdb ./mmdb # @TEST-EXEC: cp -R $FILES/mmdb ./mmdb