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