mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +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()
|
||||
===============================
|
||||
/home/bro/policy/somefile.zeek
|
||||
/usr/local/bro/share/bro/somefile.zeek
|
||||
/usr/local/bro/somefile.zeek
|
||||
/home/zeek/policy/somefile.zeek
|
||||
/usr/local/zeek/share/zeek/somefile.zeek
|
||||
/usr/local/zeek/somefile.zeek
|
||||
===============================
|
||||
test build_path()
|
||||
===============================
|
||||
/home/bro/policy/somefile.zeek
|
||||
/usr/local/bro/share/bro/somefile.zeek
|
||||
/home/zeek/policy/somefile.zeek
|
||||
/usr/local/zeek/share/zeek/somefile.zeek
|
||||
policy/somefile.zeek
|
||||
/usr/local/bro/share/bro/somefile.zeek
|
||||
/usr/local/zeek/share/zeek/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 "===============================";
|
||||
print build_path_compressed("/home/bro/", "policy/somefile.zeek");
|
||||
print build_path_compressed("/home/bro/", "/usr/local/bro/share/bro/somefile.zeek");
|
||||
print build_path_compressed("/home/bro/", "/usr/local/bro/share/../../bro/somefile.zeek");
|
||||
print build_path_compressed("/home/zeek/", "policy/somefile.zeek");
|
||||
print build_path_compressed("/home/zeek/", "/usr/local/zeek/share/zeek/somefile.zeek");
|
||||
print build_path_compressed("/home/zeek/", "/usr/local/zeek/share/../../zeek/somefile.zeek");
|
||||
|
||||
print "===============================";
|
||||
print "test build_path()";
|
||||
print "===============================";
|
||||
print build_path("/home/bro/", "policy/somefile.zeek");
|
||||
print build_path("/home/bro/", "/usr/local/bro/share/bro/somefile.zeek");
|
||||
print build_path("/home/zeek/", "policy/somefile.zeek");
|
||||
print build_path("/home/zeek/", "/usr/local/zeek/share/zeek/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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue