mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Minor updates to the external-testsuite scripts
Delete the unused Baseline folder, remove a Bro-era name from gitignore, change create-new-repo to work with a second argument that is actually a URL, and tweak whitespace. Expand description in README and update the explanation of OPENSSL_ENABLE_MD5_VERIFY in subdir-btest.cfg.
This commit is contained in:
parent
6997f83e57
commit
b999448e3d
6 changed files with 28 additions and 29 deletions
1
testing/external/.gitignore
vendored
1
testing/external/.gitignore
vendored
|
@ -1,5 +1,4 @@
|
||||||
*.git
|
*.git
|
||||||
diag.log
|
diag.log
|
||||||
bro-testing*
|
|
||||||
zeek-testing*
|
zeek-testing*
|
||||||
.proxy
|
.proxy
|
||||||
|
|
0
testing/external/Baseline/.gitignore
vendored
0
testing/external/Baseline/.gitignore
vendored
2
testing/external/Makefile
vendored
2
testing/external/Makefile
vendored
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
PUBLIC_REPO=https://github.com/zeek/zeek-testing
|
PUBLIC_REPO=https://github.com/zeek/zeek-testing
|
||||||
REPOS=`./scripts/find-git-repos `
|
REPOS=`./scripts/find-git-repos`
|
||||||
|
|
||||||
DIAG=diag.log
|
DIAG=diag.log
|
||||||
|
|
||||||
|
|
28
testing/external/README
vendored
28
testing/external/README
vendored
|
@ -81,19 +81,21 @@ script to set that up:
|
||||||
|
|
||||||
.. console:
|
.. console:
|
||||||
|
|
||||||
> ./scripts/create-new-repo <repo-name> <repo-url>
|
> ./scripts/create-new-repo <repo-name> [<repo-url>]
|
||||||
|
|
||||||
The first argument is the local name of the repository (it will be
|
The first argument is the local name of the repository (it will be initialized
|
||||||
cloned into ``<repo-name>``); and the second is the URL of the git
|
in a ``<repo-name>`` directory). The second, optional argument is the URL of the
|
||||||
repository. The repository will be initialized with a few standard
|
git repository. The repository will be initialized with a few standard
|
||||||
directories as well as a skeleton test in ``<name>/tests``. You can
|
directories as well as a skeleton test in ``<name>/tests``. You can then edit
|
||||||
then edit files as needed. You add trace files by editing
|
files as needed. When provided, the remote URL is added as the origin remote.
|
||||||
``Traces/traces.cfg``; see the comments in there. For each trace, you
|
The script does not otherwise interact with the remote.
|
||||||
also need to calculate a checksum with ``md5sum`` and put it into
|
|
||||||
``<url>.md5sum``. The scripts use this to decide if they need to
|
You add trace files by editing ``Traces/traces.cfg``; see the comments in
|
||||||
redownload the trace. Accordingly, if you update a trace, make sure to
|
there. For each trace, you also need to calculate a checksum with ``md5sum`` and
|
||||||
also recalculate its checksum. Note that the traces will be downloaded
|
put it into ``<url>.md5sum``. The scripts use this to decide if they need to
|
||||||
to ``Traces/`` but must not be added to the git repostiory; there's a
|
redownload the trace. Accordingly, if you update a trace, make sure to also
|
||||||
``.gitignore`` installed to prevent that.
|
recalculate its checksum. Note that the traces will be downloaded to ``Traces/``
|
||||||
|
but must not be added to the git repostiory; there's a ``.gitignore`` installed
|
||||||
|
to prevent that.
|
||||||
|
|
||||||
|
|
||||||
|
|
24
testing/external/scripts/create-new-repo
vendored
24
testing/external/scripts/create-new-repo
vendored
|
@ -1,31 +1,26 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
#
|
||||||
|
# Helper script for creating new external testing repos. See the
|
||||||
|
# README for details.
|
||||||
|
|
||||||
cwd=`pwd`
|
cwd=`pwd`
|
||||||
|
|
||||||
if [ $# != 2 ]; then
|
if [ -z "$1" ]; then
|
||||||
echo "usage: $0 <name> <dst-repo-dir>"
|
echo "usage: $0 <name> [<dst-repo-url>]"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
name=`pwd`/$1
|
name=`pwd`/$1
|
||||||
repo=$2
|
repo=$2
|
||||||
|
|
||||||
if [ -e $repo ]; then
|
|
||||||
echo "$repo already exists, aborting."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e $name ]; then
|
if [ -e $name ]; then
|
||||||
echo "$name already exists, aborting."
|
echo "$name already exists, aborting."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir $repo
|
mkdir $name
|
||||||
( cd $repo && git init --bare )
|
|
||||||
|
|
||||||
git clone $repo $name
|
|
||||||
|
|
||||||
cd $name
|
cd $name
|
||||||
|
git init
|
||||||
|
|
||||||
for dir in tests Baseline; do
|
for dir in tests Baseline; do
|
||||||
mkdir $dir
|
mkdir $dir
|
||||||
|
@ -42,4 +37,7 @@ cp $cwd/`dirname $0`/skel/.gitignore .
|
||||||
git add * .gitignore
|
git add * .gitignore
|
||||||
|
|
||||||
git commit -m "Repository initialized."
|
git commit -m "Repository initialized."
|
||||||
git push origin master
|
|
||||||
|
if [ -n "$repo" ]; then
|
||||||
|
git remote add origin $repo
|
||||||
|
fi
|
||||||
|
|
2
testing/external/subdir-btest.cfg
vendored
2
testing/external/subdir-btest.cfg
vendored
|
@ -21,6 +21,6 @@ DIST=%(testbase)s/../../..
|
||||||
BUILD=%(testbase)s/../../../build
|
BUILD=%(testbase)s/../../../build
|
||||||
ZEEK_PROFILER_FILE=%(testbase)s/.tmp/script-coverage/XXXXXX
|
ZEEK_PROFILER_FILE=%(testbase)s/.tmp/script-coverage/XXXXXX
|
||||||
ZEEK_DNS_FAKE=1
|
ZEEK_DNS_FAKE=1
|
||||||
# For fedora 21 - they disable MD5 for certificate verification and need setting an environment variable to permit it.
|
# Fedora/CentOS/RedHat have MD5 disabled for certificate verification and need setting an environment variable to permit it:
|
||||||
OPENSSL_ENABLE_MD5_VERIFY=1
|
OPENSSL_ENABLE_MD5_VERIFY=1
|
||||||
UBSAN_OPTIONS=print_stacktrace=1
|
UBSAN_OPTIONS=print_stacktrace=1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue