41 lines
920 B
Plaintext
41 lines
920 B
Plaintext
# Test that the zeekctl cron command creates the meta.dat file, and some *.csv
|
|
# files.
|
|
#
|
|
# @TEST-EXEC: bash %INPUT
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-cron-meta btest-diff meta.out
|
|
|
|
. zeekctl-test-setup
|
|
|
|
while read line; do installfile $line; done << EOF
|
|
etc/zeekctl.cfg__no_email
|
|
etc/node.cfg__cluster
|
|
bin/zeek__test
|
|
bin/capstats__test
|
|
EOF
|
|
|
|
logsstats=$ZEEKCTL_INSTALL_PREFIX/logs/stats
|
|
zeekctl install
|
|
zeekctl start
|
|
|
|
# verify that we start with no meta.dat file
|
|
test ! -e $logsstats/meta.dat
|
|
test ! -e $logsstats/www
|
|
|
|
# verify that there are no *.csv files
|
|
#find $logsstats/www -name *.csv > find1.out
|
|
#test ! -s find1.out
|
|
|
|
zeekctl cron
|
|
|
|
# verify that zeekctl cron created the meta.dat file
|
|
test -e $logsstats/meta.dat
|
|
test -e $logsstats/www/meta.dat
|
|
|
|
cp $logsstats/meta.dat meta.out
|
|
|
|
# verify that some *.csv files were created
|
|
find $logsstats/www -name *.csv > find2.out
|
|
test -s find2.out
|
|
|
|
zeekctl stop
|