mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
[ADD] added baseline for the new exec test and added a test to check for the empty files fix.
This commit is contained in:
parent
04746c7ffc
commit
0a59772043
2 changed files with 14 additions and 2 deletions
|
@ -1,6 +1,10 @@
|
|||
test2, [exit_code=1, signal_exit=F, stdout=[here's something on stdout, some more stdout, last stdout], stderr=[and some stderr, more stderr, last stderr], files=<uninitialized>]
|
||||
test1, [exit_code=0, signal_exit=F, stdout=[done, exit, stop], stderr=<uninitialized>, files={
|
||||
[out1] = [insert text here, and here],
|
||||
[out2] = [insert more text here, and there]
|
||||
}]
|
||||
test2, [exit_code=1, signal_exit=F, stdout=[here's something on stdout, some more stdout, last stdout], stderr=[and some stderr, more stderr, last stderr], files=<uninitialized>]
|
||||
test4, [exit_code=0, signal_exit=F, stdout=[hibye], stderr=<uninitialized>, files=<uninitialized>]
|
||||
test5, [exit_code=0, signal_exit=F, stdout=<uninitialized>, stderr=<uninitialized>, files={
|
||||
[out4] = [test],
|
||||
[out3] = []
|
||||
}]
|
||||
|
|
|
@ -14,7 +14,7 @@ function check_exit_condition()
|
|||
{
|
||||
c += 1;
|
||||
|
||||
if ( c == 3 )
|
||||
if ( c == 4 )
|
||||
terminate();
|
||||
}
|
||||
|
||||
|
@ -35,6 +35,8 @@ event bro_init()
|
|||
# Not sure of a portable way to test signals yet.
|
||||
#test_cmd("test3", [$cmd="bash ../suicide.sh"]);
|
||||
test_cmd("test4", [$cmd="bash ../stdin.sh", $stdin="hibye"]);
|
||||
test_cmd("test5", [$cmd="bash ../empty_file.sh",
|
||||
$read_files=set("out3", "out4")]);
|
||||
}
|
||||
|
||||
@TEST-END-FILE
|
||||
|
@ -73,3 +75,9 @@ echo "nope"
|
|||
read -r line
|
||||
echo "$line"
|
||||
@TEST-END-FILE
|
||||
|
||||
@TEST-START-FILE empty_file.sh
|
||||
#! /usr/bin/env bash
|
||||
touch out3
|
||||
echo "test" > out4
|
||||
@TEST-END-FILE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue