Initial move of zeek-aux btests and related files to zeek btest dir

This commit is contained in:
Tim Wojtulewicz 2025-08-11 09:47:51 -07:00
parent c05da53275
commit 7887451a66
148 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#! /usr/bin/env bash
#
# Replace the time zone with "+0000". This is needed for any zeek-cut tests
# that convert UTC timestamps and show the time zone, because strftime
# with the "%z" format string behaves differently on OS X (it just always
# shows the local time zone instead of "+0000").
sed 's/[+-][0-9][0-9][0-9][0-9]/+0000/g'

16
testing/scripts/zeek-aux/git Executable file
View file

@ -0,0 +1,16 @@
#! /usr/bin/env bash
# Git wrapper script for use during testing.
# Use original path so we find the system's installed git, not this wrapper.
PATH="$ORIGPATH"
# Unsetting the following prevents git from reading ~/.gitconfig,
# including potential githooks.
HOME=
XDG_CONFIG_HOME=
git -c init.defaultBranch=master \
-c protocol.file.allow=always \
-c user.name=zeektest \
-c user.email=zeektest@zeek.org \
"$@"

View file

@ -0,0 +1,18 @@
# Common functionality for zeek-archiver's tests, originally found in its own
# test.sh script that wasn't using btest.
set -e
set -x
function queue_dir {
mkdir -p queue
echo queue
}
function archive_dir {
echo archive
}
function archive_date_dir {
echo archive/2020-07-16
}