mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Extend ASAN_OPTIONS in btests instead of overwrite
This commit is contained in:
parent
66ca20b737
commit
1f3ec434a8
17 changed files with 19 additions and 19 deletions
|
@ -1,5 +1,5 @@
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -b %INPUT >out 2>&1
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -b %INPUT >out 2>&1
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
||||||
|
|
||||||
event div_int(a: int, b: int)
|
event div_int(a: int, b: int)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# shouldn't abort Zeek entirely, but just return from the function body.
|
# shouldn't abort Zeek entirely, but just return from the function body.
|
||||||
#
|
#
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -r $TRACES/wikipedia.trace %INPUT >output
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -r $TRACES/wikipedia.trace %INPUT >output
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps" btest-diff reporter.log
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps" btest-diff reporter.log
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# than looping indefinitly, the error inside the handler should reported to stderr.
|
# than looping indefinitly, the error inside the handler should reported to stderr.
|
||||||
#
|
#
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek %INPUT >output 2>&1
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek %INPUT >output 2>&1
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
||||||
|
|
||||||
global a: table[count] of count;
|
global a: table[count] of count;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" btest-bg-run zeek "zeek -b %INPUT >output 2>&1"
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" btest-bg-run zeek "zeek -b %INPUT >output 2>&1"
|
||||||
# @TEST-EXEC: btest-bg-wait 30
|
# @TEST-EXEC: btest-bg-wait 30
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps | $SCRIPTS/diff-sort" btest-diff zeek/output
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps | $SCRIPTS/diff-sort" btest-diff zeek/output
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,13 @@
|
||||||
# of the current event handler body.
|
# of the current event handler body.
|
||||||
|
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -b 1.zeek >1.out 2>&1
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -b 1.zeek >1.out 2>&1
|
||||||
# @TEST-EXEC: btest-diff 1.out
|
# @TEST-EXEC: btest-diff 1.out
|
||||||
|
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -b 2.zeek >2.out 2>&1
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -b 2.zeek >2.out 2>&1
|
||||||
# @TEST-EXEC: btest-diff 2.out
|
# @TEST-EXEC: btest-diff 2.out
|
||||||
|
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -b 3.zeek >3.out 2>&1
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -b 3.zeek >3.out 2>&1
|
||||||
# @TEST-EXEC: btest-diff 3.out
|
# @TEST-EXEC: btest-diff 3.out
|
||||||
|
|
||||||
@TEST-START-FILE 1.zeek
|
@TEST-START-FILE 1.zeek
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# TODO: There's explicitly a reference cycle being created in this test that
|
# TODO: There's explicitly a reference cycle being created in this test that
|
||||||
# causes a memory leak, so just disable leak checking.
|
# causes a memory leak, so just disable leak checking.
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -b %INPUT >out
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -b %INPUT >out
|
||||||
# @TEST-EXEC: btest-diff out
|
# @TEST-EXEC: btest-diff out
|
||||||
|
|
||||||
type B: record {
|
type B: record {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -b %INPUT
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -b %INPUT
|
||||||
# @TEST-EXEC: cp .stderr output
|
# @TEST-EXEC: cp .stderr output
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -r $TRACES/rotation.trace -b %INPUT >output 2>&1
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -r $TRACES/rotation.trace -b %INPUT >output 2>&1
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
||||||
|
|
||||||
module segfault;
|
module segfault;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -b %INPUT >output 2>&1
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -b %INPUT >output 2>&1
|
||||||
# @TEST-EXEC: grep "error" output >output2
|
# @TEST-EXEC: grep "error" output >output2
|
||||||
# @TEST-EXEC: for i in 1 2 3 4 5; do cat output2 | cut -d'|' -f$i >>out; done
|
# @TEST-EXEC: for i in 1 2 3 4 5; do cat output2 | cut -d'|' -f$i >>out; done
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -b %INPUT >out 2>&1
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -b %INPUT >out 2>&1
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
||||||
|
|
||||||
global foo: vector of count = { 42 };
|
global foo: vector of count = { 42 };
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -b %INPUT >out 2>&1
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -b %INPUT >out 2>&1
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
||||||
|
|
||||||
event zeek_init()
|
event zeek_init()
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -b %INPUT >output 2>&1
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -b %INPUT >output 2>&1
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff output
|
||||||
|
|
||||||
type X: record {
|
type X: record {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -b first_set.zeek >first_set.out 2>&1
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -b first_set.zeek >first_set.out 2>&1
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff first_set.out
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff first_set.out
|
||||||
|
|
||||||
# @TEST-EXEC-FAIL: zeek -b double_convert_failure1.zeek >double_convert_failure1.out 2>&1
|
# @TEST-EXEC-FAIL: zeek -b double_convert_failure1.zeek >double_convert_failure1.out 2>&1
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek -b %INPUT >out 2>&1
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek -b %INPUT >out 2>&1
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff out
|
||||||
|
|
||||||
event test()
|
event test()
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# @TEST-EXEC: cp -r %DIR/reporter-hook-plugin/* .
|
# @TEST-EXEC: cp -r %DIR/reporter-hook-plugin/* .
|
||||||
# @TEST-EXEC: ./configure --zeek-dist=${DIST} && make
|
# @TEST-EXEC: ./configure --zeek-dist=${DIST} && make
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" ZEEK_PLUGIN_ACTIVATE="Reporter::Hook" ZEEK_PLUGIN_PATH=`pwd` zeek -b %INPUT 2>&1 | $SCRIPTS/diff-remove-abspath | sort | uniq >output
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" ZEEK_PLUGIN_ACTIVATE="Reporter::Hook" ZEEK_PLUGIN_PATH=`pwd` zeek -b %INPUT 2>&1 | $SCRIPTS/diff-remove-abspath | sort | uniq >output
|
||||||
# @TEST-EXEC: btest-diff output
|
# @TEST-EXEC: btest-diff output
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps" btest-diff reporter.log
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps" btest-diff reporter.log
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek %INPUT
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek %INPUT
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff .stderr
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff .stderr
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps" btest-diff reporter.log
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps" btest-diff reporter.log
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
# TODO: interpreter exceptions currently may cause memory leaks, so disable leak checks
|
||||||
# @TEST-EXEC: ASAN_OPTIONS="detect_leaks=0" zeek %INPUT
|
# @TEST-EXEC: ASAN_OPTIONS="$ASAN_OPTIONS,detect_leaks=0" zeek %INPUT
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff .stderr
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-remove-abspath btest-diff .stderr
|
||||||
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps" btest-diff reporter.log
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-remove-abspath | $SCRIPTS/diff-remove-timestamps" btest-diff reporter.log
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue