mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Add scripts.base.misc.installation btest
This commit is contained in:
parent
84a09debe3
commit
04c91736a1
2 changed files with 19 additions and 0 deletions
|
@ -0,0 +1 @@
|
||||||
|
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
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