#! /bin/bash run_test ${lnav_test} -n \ -c ":adjust-log-time 2010-01-01T00:00:00" \ ${test_dir}/logfile_access_log.0 check_output "adjust-log-time is not working" <(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 11 unplug = 0 Sep 13 03:46:03 Tim-Stacks-iMac kernel[0]: vm_compressor_flush - starting Sep 13 03:46:03 Tim-Stacks-iMac kernel[0]: AppleBCM5701Ethernet [en0]: 0 0 memWrInd fBJP_Wakeup_Timer Sep 13 03:13:16 Tim-Stacks-iMac kernel[0]: AppleThunderboltNHIType2::waitForOk2Go2Sx - retries = 60000 Sep 13 03:46:03 Tim-Stacks-iMac kernel[0]: hibernate_page_list_setall(preflight 0) start 0xffffff838f1fc000, 0xffffff838f2bc000 EOF run_test ${lnav_test} -n \ -c ":goto 0" \ -c ":goto 3:45" \ ${test_dir}/logfile_syslog_with_mixed_times.0 check_output "goto 3:45 is not working?" <(0x0)::listenerCallback - Thunderbolt HPD packet for route = 0x0 port = 11 unplug = 0 Sep 13 03:46:03 Tim-Stacks-iMac kernel[0]: vm_compressor_flush - starting Sep 13 03:46:03 Tim-Stacks-iMac kernel[0]: AppleBCM5701Ethernet [en0]: 0 0 memWrInd fBJP_Wakeup_Timer Sep 13 03:13:16 Tim-Stacks-iMac kernel[0]: AppleThunderboltNHIType2::waitForOk2Go2Sx - retries = 60000 Sep 13 03:46:03 Tim-Stacks-iMac kernel[0]: hibernate_page_list_setall(preflight 0) start 0xffffff838f1fc000, 0xffffff838f2bc000 EOF run_test ${lnav_test} -n \ -c ":goto invalid" \ ${test_dir}/logfile_access_log.0 check_error_output "goto invalid is working" <> logfile_append.0" \ -c ":rebuild" \ logfile_append.0 check_output "filter-out append is not working" < en-US ipInfo 198.51.100.253 (unknown) true true nic1 0.0.0.0 (unknown) True 22 dhcp 198.51.100.110 (unknown) nic1 fe80::214:f609:19f7:6bf1 (unknown) True nic1 False False other preferred 64 fe80::250:56ff:feaa:5abf (unknown) up 00:50:56:aa:5a:bf nic1 EOF run_test ${lnav_test} -n \ -c ":goto 0" \ -c ":switch-to-view pretty" \ ${test_dir}/logfile_pretty.0 check_output "pretty-printer is not working" < url="https://tools.google.com/service/update2" runningFetchers=0 tickets=1 activeTickets=1 rollCallTickets=1 body= > Apr 7 07:31:56 Tim-Stacks-iMac.local VirtualBox[36403]: WARNING: The Gestalt selector gestaltSystemVersion is returning 10.9.2 instead of 10.10.2. Use NSProcessInfo's operatingSystemVersion property to get correct system version number. Call location: Apr 7 07:31:56 Tim-Stacks-iMac.local VirtualBox[36403]: 0 CarbonCore 0x00007fff8a9b3d9b ___Gestalt_SystemVersion_block_invoke + 113 Apr 7 07:31:56 Tim-Stacks-iMac.local VirtualBox[36403]: 1 libdispatch.dylib 0x00007fff8bc84c13 _dispatch_client_callout + 8 Apr 7 07:32:56 Tim-Stacks-iMac.local logger[234]: Bad data { abc, 123, 456 ) }] EOF run_test ${lnav_test} -n \ -c ":set-min-log-level error" \ ${test_dir}/logfile_access_log.0 check_output "set-min-log-level is not working" <