Zeekify the scripts.base.utils.paths test

This commit is contained in:
Christian Kreibich 2022-05-19 09:51:36 -07:00
parent 9d59a48ae2
commit 0641d032c3
2 changed files with 12 additions and 12 deletions

View file

@ -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");