Merge branch 'topic/christian/installation-dirs-in-scriptland'

* topic/christian/installation-dirs-in-scriptland:
  Add scripts.base.misc.installation btest
  Add base/misc/installation.zeek, with Zeek installation directories
  Ensure presence of Zeek-related directories in toplevel CMakeLists.txt
This commit is contained in:
Christian Kreibich 2022-05-24 11:55:37 -07:00
commit d4ecfa0a67
12 changed files with 112 additions and 8 deletions

View file

@ -0,0 +1,18 @@
# This test verifies that the directories in base/misc/installation.zeek do get
# substituted to absolute paths. It does not verify the path strings themselves
# since they may change from build to build.
# @TEST-EXEC: zeek -b %INPUT
# @TEST-EXEC: btest-diff .stdout
@load base/utils/paths
@load base/misc/installation
global dirs = vector(Installation::root_dir, Installation::etc_dir,
Installation::log_dir, Installation::spool_dir, Installation::state_dir);
for ( i in dirs )
{
if ( dirs[i] != absolute_path_pat )
print dirs[i];
}