mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00

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.
42 lines
599 B
Bash
Executable file
42 lines
599 B
Bash
Executable file
#! /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
|