#! /bin/bash echo ${top_srcdir} echo ${top_builddir} run_cap_test ${lnav_test} -n \ -c ';SELECT * FROM logline' \ ${test_dir}/logfile_block.1 run_test ${lnav_test} -d /tmp/lnav.err -n -w logfile_stdin.0.log \ -c ':shexec sleep 1 && touch -t 200711030923 logfile_stdin.0.log' < 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 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=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=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.475000: 0: <--- R 2 ["P1"] EOF # The TCSH format converts to local time, so we need to specify a TZ export TZ="UTC" run_test ./drive_logfile -t -f tcsh_history ${srcdir}/logfile_tcsh_history.0 check_output "TCSH timestamp interpreted incorrectly?" <