mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Initial move of zeek-aux btests and related files to zeek btest dir
This commit is contained in:
parent
c05da53275
commit
7887451a66
148 changed files with 0 additions and 0 deletions
8
testing/scripts/zeek-aux/diff-time-zone
Executable file
8
testing/scripts/zeek-aux/diff-time-zone
Executable 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
16
testing/scripts/zeek-aux/git
Executable 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 \
|
||||
"$@"
|
18
testing/scripts/zeek-aux/zeek-archiver-common.sh
Normal file
18
testing/scripts/zeek-aux/zeek-archiver-common.sh
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue