mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Zeekify the scripts.base.utils.paths test
This commit is contained in:
parent
9d59a48ae2
commit
0641d032c3
2 changed files with 12 additions and 12 deletions
|
@ -75,14 +75,14 @@ Result: SUCCESS
|
||||||
===============================
|
===============================
|
||||||
test build_path_compressed()
|
test build_path_compressed()
|
||||||
===============================
|
===============================
|
||||||
/home/bro/policy/somefile.zeek
|
/home/zeek/policy/somefile.zeek
|
||||||
/usr/local/bro/share/bro/somefile.zeek
|
/usr/local/zeek/share/zeek/somefile.zeek
|
||||||
/usr/local/bro/somefile.zeek
|
/usr/local/zeek/somefile.zeek
|
||||||
===============================
|
===============================
|
||||||
test build_path()
|
test build_path()
|
||||||
===============================
|
===============================
|
||||||
/home/bro/policy/somefile.zeek
|
/home/zeek/policy/somefile.zeek
|
||||||
/usr/local/bro/share/bro/somefile.zeek
|
/usr/local/zeek/share/zeek/somefile.zeek
|
||||||
policy/somefile.zeek
|
policy/somefile.zeek
|
||||||
/usr/local/bro/share/bro/somefile.zeek
|
/usr/local/zeek/share/zeek/somefile.zeek
|
||||||
/policy/somefile.zeek
|
/policy/somefile.zeek
|
||||||
|
|
|
@ -45,15 +45,15 @@ test_extract("here's two dirs: /foo/bar and /foo/baz", "/foo/bar");
|
||||||
|
|
||||||
print "test build_path_compressed()";
|
print "test build_path_compressed()";
|
||||||
print "===============================";
|
print "===============================";
|
||||||
print build_path_compressed("/home/bro/", "policy/somefile.zeek");
|
print build_path_compressed("/home/zeek/", "policy/somefile.zeek");
|
||||||
print build_path_compressed("/home/bro/", "/usr/local/bro/share/bro/somefile.zeek");
|
print build_path_compressed("/home/zeek/", "/usr/local/zeek/share/zeek/somefile.zeek");
|
||||||
print build_path_compressed("/home/bro/", "/usr/local/bro/share/../../bro/somefile.zeek");
|
print build_path_compressed("/home/zeek/", "/usr/local/zeek/share/../../zeek/somefile.zeek");
|
||||||
|
|
||||||
print "===============================";
|
print "===============================";
|
||||||
print "test build_path()";
|
print "test build_path()";
|
||||||
print "===============================";
|
print "===============================";
|
||||||
print build_path("/home/bro/", "policy/somefile.zeek");
|
print build_path("/home/zeek/", "policy/somefile.zeek");
|
||||||
print build_path("/home/bro/", "/usr/local/bro/share/bro/somefile.zeek");
|
print build_path("/home/zeek/", "/usr/local/zeek/share/zeek/somefile.zeek");
|
||||||
print build_path("", "policy/somefile.zeek");
|
print build_path("", "policy/somefile.zeek");
|
||||||
print build_path("", "/usr/local/bro/share/bro/somefile.zeek");
|
print build_path("", "/usr/local/zeek/share/zeek/somefile.zeek");
|
||||||
print build_path("/", "policy/somefile.zeek");
|
print build_path("/", "policy/somefile.zeek");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue