mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Adapting diff-all so that it expands globs in both current and
baseline directory. This way, it now spots if a Baseline file isn't produced anymore. Closes #677.
This commit is contained in:
parent
9d5f79a0fa
commit
3c2fa085d4
4 changed files with 16 additions and 4 deletions
5
CHANGES
5
CHANGES
|
@ -1,4 +1,9 @@
|
||||||
|
|
||||||
|
2.0-beta-98 | 2011-12-07 08:12:08 -0800
|
||||||
|
|
||||||
|
* Adapting test-suite's diff-all so that it expands globs in both
|
||||||
|
current and baseline directory. Closes #677. (Robin Sommer)
|
||||||
|
|
||||||
2.0-beta-97 | 2011-12-06 11:49:29 -0800
|
2.0-beta-97 | 2011-12-06 11:49:29 -0800
|
||||||
|
|
||||||
* Omit loading local-<node>.bro scripts from base cluster framework.
|
* Omit loading local-<node>.bro scripts from base cluster framework.
|
||||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
2.0-beta-97
|
2.0-beta-98
|
||||||
|
|
11
testing/external/scripts/diff-all
vendored
11
testing/external/scripts/diff-all
vendored
|
@ -1,6 +1,10 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
#
|
#
|
||||||
# Runs btest-diff on $@ and fails if any fails.
|
# Runs btest-diff on $@ and fails if any fails. If $@ contains globs, we expand
|
||||||
|
# them relative to *both* the current directory and the test's baseline
|
||||||
|
# directory so that we spot missing files. Note that you will need to quote
|
||||||
|
# the globals in the TEST-EXEC line as otherwise they will have been expanded relative
|
||||||
|
# to the current directory already when this scripts runs.
|
||||||
|
|
||||||
diag=$TEST_DIAGNOSTICS
|
diag=$TEST_DIAGNOSTICS
|
||||||
|
|
||||||
|
@ -14,7 +18,10 @@ fi
|
||||||
|
|
||||||
rc=0;
|
rc=0;
|
||||||
|
|
||||||
for i in $@; do
|
files_cwd=`ls $@`
|
||||||
|
files_baseline=`cd $TEST_BASELINE && ls $@`
|
||||||
|
|
||||||
|
for i in `echo $files_cwd $files_baseline | sort | uniq`; do
|
||||||
if [[ "$i" != "loaded_scripts.log" && "$i" != "prof.log" ]]; then
|
if [[ "$i" != "loaded_scripts.log" && "$i" != "prof.log" ]]; then
|
||||||
if ! btest-diff $i; then
|
if ! btest-diff $i; then
|
||||||
echo "" >>$diag
|
echo "" >>$diag
|
||||||
|
|
2
testing/external/scripts/skel/test.skeleton
vendored
2
testing/external/scripts/skel/test.skeleton
vendored
|
@ -1,5 +1,5 @@
|
||||||
# @TEST-EXEC: zcat $TRACES/trace.gz | bro -r - %INPUT
|
# @TEST-EXEC: zcat $TRACES/trace.gz | bro -r - %INPUT
|
||||||
# @TEST-EXEC: $SCRIPTS/diff-all *.log
|
# @TEST-EXEC: $SCRIPTS/diff-all '*.log'
|
||||||
|
|
||||||
@load testing-setup
|
@load testing-setup
|
||||||
@load test-all-policy
|
@load test-all-policy
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue