#! /bin/bash cp ${test_dir}/logfile_access_log.1 logfile_changed.0 chmod u+w logfile_changed.0 run_test ${lnav_test} -n \ -c ":rebuild" \ -c ":shexec head -1 ${test_dir}/logfile_access_log.0 > logfile_changed.0" \ -c ":rebuild" \ logfile_changed.0 check_error_output "line buffer cache flush" < lb.dat < lb-2.dat grep -b '$' lb-2.dat | cut -f 1 -d : > lb.index line_count=`wc -l lb-2.dat` run_test ./drive_line_buffer -i lb.index -n 10 lb-2.dat check_output "Random reads don't match input?" <