#! /bin/bash export TZ=UTC echo ${top_srcdir} echo ${top_builddir} printf '#Date:\t20\x800-2-02\n0\n' | run_cap_test \ env TEST_COMMENT="short timestamp" ${lnav_test} -n printf '000\n000\n#Fields: 0\n0\n#Fields: 0\n0' | run_cap_test \ env TEST_COMMENT="invalid w3c log" ${lnav_test} -n printf '#Date:\t3/9/3/0\x85 2\n0\n' | run_cap_test \ env TEST_COMMENT="invalid w3c timestamp" ${lnav_test} -n cat > rollover_in.0 < input:1 = help: Property Synopsis /tuning/archive-manager/min-free-space Description The minimum free space, in bytes, to maintain when unpacking archives EOF rm -rf logfile-tmp/lnav-* if test x"${XZ_CMD}" != x""; then ${XZ_CMD} -z -c ${srcdir}/logfile_syslog.1 > logfile_syslog.1.xz run_test env TMPDIR=logfile-tmp ${lnav_test} -n \ -c ':config /tuning/archive-manager/min-free-space 1125899906842624' \ -c ':config /tuning/archive-manager/cache-ttl 1d' \ ${srcdir}/logfile_syslog.0 run_test env TMPDIR=logfile-tmp ${lnav_test} -d /tmp/lnav.err -n \ logfile_syslog.1.xz sed -e "s|lnav-user-[0-9]*-work|lnav-user-NNN-work|g" \ -e "s|arc-[0-9a-z]*-logfile|arc-NNN-logfile|g" \ -e "s|space on disk \(.*\) is|space on disk (NNN) is|g" \ -e "s|${builddir}||g" \ `test_err_filename` > test_logfile.big.out mv test_logfile.big.out `test_err_filename` check_error_output "decompression worked?" < test_logfile.trunc.out mv test_logfile.trunc.out `test_err_filename` check_error_output "truncated tgz not reported correctly" < test_logfile.rotmp.out cp test_logfile.rotmp.out `test_err_filename` check_error_output "archive not unpacked" < test_logfile.unreadable.out mv test_logfile.unreadable.out `test_err_filename` check_error_output "able to read an unreadable log file?" < logfile_syslog.1.gz run_test ./drive_logfile -t -f syslog_log logfile_syslog.1.gz check_output "Syslog timestamp incorrect for gzipped file?" < logfile_syslog.1.bz2 touch -t 200711030923 logfile_syslog.1.bz2 run_test ./drive_logfile -t -f syslog_log logfile_syslog.1.bz2 check_output "bzip2 file not loaded?" < C 2 RunControl getChildren null TCF 2014-04-06 11:01:11.475557: 0: <--- R 2 ["P1"] EOF run_test ./drive_logfile -t -f tcsh_history ${srcdir}/logfile_tcsh_history.0 check_output "TCSH timestamp interpreted incorrectly?" <