mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
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:
commit
d4ecfa0a67
12 changed files with 112 additions and 8 deletions
18
testing/btest/scripts/base/misc/installation.zeek
Normal file
18
testing/btest/scripts/base/misc/installation.zeek
Normal 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];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue