mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Starting a small framework for doing regression testing with larger
traces and more complex Bro configurations. That's "Type 2" in the terminology of http://www-new.bro-ids.org/devel/projects/testing.html This leverages btest as well and will replace the set of scripts that the old private test-suite is using. It can accomodate tests with both public and private traces. This is a checkpoint commmit, not much there yet in terms of actual testing. Also still need to figure out a mechanmism to allow for different baselines based on which branch we're testing.
This commit is contained in:
parent
e87e2ad96e
commit
6f44fffcea
13 changed files with 191 additions and 10 deletions
42
testing/external/scripts/create-new-repo
vendored
Executable file
42
testing/external/scripts/create-new-repo
vendored
Executable file
|
@ -0,0 +1,42 @@
|
|||
#! /usr/bin/env bash
|
||||
|
||||
cwd=`pwd`
|
||||
|
||||
if [ $# != 2 ]; then
|
||||
echo "usage: $0 <name> <dst-repo-dir>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
name=`pwd`/$1.git
|
||||
repo=$2
|
||||
|
||||
if [ -e $repo ]; then
|
||||
echo "$repo already exists, aborting."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -e $name ]; then
|
||||
echo "$name already exists, aborting."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir $repo
|
||||
( cd $repo && git init --bare )
|
||||
|
||||
git clone $repo $name
|
||||
|
||||
cd $name
|
||||
|
||||
for dir in traces tests Baseline; do
|
||||
mkdir $dir
|
||||
touch $dir/.gitignore
|
||||
done
|
||||
|
||||
ln -s ../btest.cfg .
|
||||
|
||||
cp $cwd/`dirname $0`/test.skeleton tests
|
||||
|
||||
git add *
|
||||
|
||||
git commit -m "Repository initialized."
|
||||
git push origin master
|
Loading…
Add table
Add a link
Reference in a new issue