diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:55 +0000 |
commit | 5068d34c08f951a7ea6257d305a1627b09a95817 (patch) | |
tree | 08213e2be853396a3b07ce15dbe222644dcd9a89 /test/test_sql_search_table.sh | |
parent | Initial commit. (diff) | |
download | lnav-5068d34c08f951a7ea6257d305a1627b09a95817.tar.xz lnav-5068d34c08f951a7ea6257d305a1627b09a95817.zip |
Adding upstream version 0.11.1.upstream/0.11.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/test_sql_search_table.sh')
-rw-r--r-- | test/test_sql_search_table.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/test_sql_search_table.sh b/test/test_sql_search_table.sh new file mode 100644 index 0000000..4976286 --- /dev/null +++ b/test/test_sql_search_table.sh @@ -0,0 +1,26 @@ +#! /bin/bash + +export YES_COLOR=1 + +run_cap_test ${lnav_test} -n \ + -c ';SELECT * FROM procstate_procs' \ + ${test_dir}/logfile_procstate.0 + +run_cap_test ${lnav_test} -n \ + -c ';SELECT *,log_body FROM vpx_lro_begin' \ + ${test_dir}/logfile_vpxd.0 + +run_cap_test ${lnav_test} -n \ + -c ";select * from vpx_lro_begin where log_line > 3 and lro_id = 'lro-846064'" \ + -c ";select * from vpx_lro_begin where lro_id = 'lro-846064'" \ + ${test_dir}/logfile_vpxd.0 + +run_cap_test ${lnav_test} -n \ + -c ";select * from procstate_procs where cmd_name = '[kthreadd]'" \ + -c ";select * from procstate_procs where cmd_name = '[kthreadd]'" \ + ${test_dir}/logfile_procstate.0 + +run_cap_test ${lnav_test} -n \ + -c ':create-search-table asl_mod ASL Module "(?<name>[^"]+)"' \ + -c ';SELECT * FROM asl_mod' \ + ${test_dir}/logfile_syslog.3 |