[tests] test_tailer tweaks

This commit is contained in:
Tim Stack 2022-09-22 10:54:09 -07:00
parent fd19759bf5
commit 0fd9845580
5 changed files with 15 additions and 13 deletions

View File

@ -123,7 +123,7 @@ run_cap_test() {
export has_errors="yes"
fi
else
echo "FAIL! EXPECTED OUT MISSING"
echo "FAIL! EXPECTED OUT MISSING -- ${srcdir}/expected/${test_file_base}_${test_hash}.out"
export has_errors="yes"
fi

View File

@ -23,18 +23,7 @@ info: load preview request -- 1234
info: exiting...
EOF
run_test ./drive_tailer preview "${test_dir}/remote-log-dir/*"
check_output "preview of file failed?" <<EOF
preview of file: {test_dir}/remote-log-dir/*
{test_dir}/remote-log-dir/logfile_access_log.0
{test_dir}/remote-log-dir/logfile_access_log.1
all done!
tailer stderr:
info: load preview request -- 1234
info: exiting...
EOF
run_cap_test ./drive_tailer preview "${test_dir}/remote-log-dir/*"
run_test ./drive_tailer possible "${test_dir}/logfile_access_log.*"

View File

@ -223,6 +223,8 @@ include expected/expected.am
dist_noinst_DATA = \
$(EXPECTED_FILES) \
expected/test_tailer.sh_12f539e535df04364316699f9edeac461aa9f9de.err \
expected/test_tailer.sh_12f539e535df04364316699f9edeac461aa9f9de.out \
ansi-colors.0.in \
bad-config/formats/invalid-properties/format.json \
bad-config/formats/invalid-regex/format.json \

View File

@ -0,0 +1,3 @@
tailer stderr:
info: load preview request -- 1234
info: exiting...

View File

@ -0,0 +1,8 @@
preview of file: {test_dir}/remote-log-dir/*
{test_dir}/remote-log-dir/logfile_access_log.0
{test_dir}/remote-log-dir/logfile_access_log.1
all done!
tailer stderr:
info: load preview request -- 1234
info: exiting...