Install Zeek's btest tooling with the distribution

This creates $PREFIX/share/btest in the install tree, with the
following folders:

- scripts/ for the canonifiers
- data/ for random.seed
- data/pcaps for the test pcaps

The pcaps can be skipped by configuring with --disable-btest-pcaps.
This commit is contained in:
Christian Kreibich 2021-03-10 18:06:31 -08:00
parent 6a0eae28a2
commit 463d159bfc
4 changed files with 29 additions and 1 deletions

8
testing/CMakeLists.txt Normal file
View file

@ -0,0 +1,8 @@
install(DIRECTORY scripts/ DESTINATION ${ZEEK_CONFIG_BTEST_TOOLS_DIR}/scripts
USE_SOURCE_PERMISSIONS
FILES_MATCHING PATTERN "diff-*")
install(FILES btest/random.seed DESTINATION ${ZEEK_CONFIG_BTEST_TOOLS_DIR}/data)
if ( INSTALL_BTEST_PCAPS )
install(DIRECTORY btest/Traces/ DESTINATION ${ZEEK_CONFIG_BTEST_TOOLS_DIR}/data/pcaps)
endif ()