mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +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
|
@ -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