diff options
Diffstat (limited to '')
-rw-r--r-- | test/test_sessions.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/test_sessions.sh b/test/test_sessions.sh index db71e5f..7e5b830 100644 --- a/test/test_sessions.sh +++ b/test/test_sessions.sh @@ -1,5 +1,6 @@ #! /bin/bash +export TZ=UTC export HOME="./sessions" unset XDG_CONFIG_HOME rm -rf "./sessions" @@ -77,6 +78,14 @@ run_cap_test ${lnav_test} -n \ -c ':write-csv-to -' \ ${test_dir}/logfile_access_log.0 +# partition name was not saved in session and doesn't not show up in crumbs +run_cap_test ${lnav_test} -n \ + -c ":load-session" \ + -c ':goto 2' \ + -c ";SELECT top_meta FROM lnav_views WHERE name = 'log'" \ + -c ':write-json-to -' \ + ${test_dir}/logfile_access_log.0 + # adjust time is not working run_cap_test ${lnav_test} -nq \ -c ":adjust-log-time 2010-01-01T00:00:00" \ @@ -117,3 +126,31 @@ run_cap_test ${lnav_test} -n -d /tmp/lnav.err \ -c ":load-session" \ -c ":test-comment restore hidden lines" \ ${test_dir}/logfile_access_log.0 + +# hiding fields failed +export TZ="UTC" +rm -rf ./sessions +mkdir -p $HOME +run_cap_test ${lnav_test} -n \ + -c ":hide-fields bro_uid" \ + -c ":goto -10" \ + -c ":save-session" \ + ${test_dir}/logfile_bro_http.log.0 + +# restoring hidden fields failed +run_cap_test ${lnav_test} -n \ + -c ":load-session" \ + -c ":goto -10" \ + -c ":test-comment restoring hidden fields" \ + ${test_dir}/logfile_bro_http.log.0 + +export TEST_ANNO=1 +run_cap_test ${lnav_test} -d /tmp/lnav.err -I ${test_dir} -n \ + -c ':annotate' \ + -c ':save-session' \ + support-dump/logfile_access_log.0 + +run_cap_test ${lnav_test} -d /tmp/lnav.err -I ${test_dir} -n \ + -c ':load-session' \ + -c ':export-session-to -' \ + support-dump/logfile_access_log.0 |