#! /bin/bash run_test ./drive_logfile -f syslog_log ${srcdir}/logfile_syslog.0 on_error_fail_with "Didn't infer syslog log format?" run_test ./drive_logfile -f tcsh_history ${srcdir}/logfile_tcsh_history.0 on_error_fail_with "Didn't infer tcsh-history log format?" run_test ./drive_logfile -f access_log ${srcdir}/logfile_access_log.0 on_error_fail_with "Didn't infer access_log log format?" run_test ./drive_logfile -f strace_log ${srcdir}/logfile_strace_log.0 on_error_fail_with "Didn't infer strace_log log format?" run_test ./drive_logfile ${srcdir}/logfile_empty.0 on_error_fail_with "Didn't handle empty log?" touch -t 200711030923 ${srcdir}/logfile_syslog.0 run_test ./drive_logfile -t -f syslog_log ${srcdir}/logfile_syslog.0 check_output "Syslog timestamp interpreted incorrectly?" < 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?" <