mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
13 lines
346 B
Text
13 lines
346 B
Text
# @TEST-EXEC: zeek -b %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
# @TEST-EXEC: btest-diff --binary test.txt
|
|
|
|
global cmds = "print \"hello world\";";
|
|
cmds = string_cat(cmds, "\nprint \"foobar\";");
|
|
if ( piped_exec("zeek", cmds) != T )
|
|
exit(1);
|
|
|
|
# Test null output.
|
|
if ( piped_exec("cat > test.txt", "\x00\x00hello\x00\x00") != T )
|
|
exit(1);
|
|
|