2022-07-23 05:21:16 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
2024-02-22 02:23:34 +00:00
|
|
|
export TZ=UTC
|
2022-07-23 05:21:16 +00:00
|
|
|
export YES_COLOR=1
|
|
|
|
unset XDG_CONFIG_HOME
|
|
|
|
|
2024-03-06 04:32:20 +00:00
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ':goto 5' \
|
|
|
|
-c ':filter-out Lorem|sed' \
|
|
|
|
${test_dir}/textfile_plain.0
|
|
|
|
|
2022-07-23 05:21:16 +00:00
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
${top_srcdir}/README.md
|
|
|
|
|
2022-08-29 01:55:32 +00:00
|
|
|
run_cap_test ${lnav_test} -n -c ':goto #screenshot' \
|
|
|
|
${top_srcdir}/README.md
|
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n ${top_srcdir}/README.md#screenshot
|
|
|
|
|
2022-08-29 06:07:55 +00:00
|
|
|
# run_cap_test ${lnav_test} -n ${test_dir}/non-existent:4
|
2022-08-29 01:55:32 +00:00
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n ${top_srcdir}/README.md:-4
|
|
|
|
|
2022-07-25 14:49:51 +00:00
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ':goto 115' \
|
|
|
|
-c ";SELECT top_meta FROM lnav_views WHERE name = 'text'" \
|
|
|
|
-c ':write-json-to -' \
|
|
|
|
${top_srcdir}/README.md
|
|
|
|
|
2022-07-23 05:21:16 +00:00
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
${top_srcdir}/src/log_level.cc
|
2022-07-28 04:49:14 +00:00
|
|
|
|
|
|
|
cp ${test_dir}/UTF-8-test.txt UTF-8-test.md
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
UTF-8-test.md
|
2022-09-21 03:07:44 +00:00
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ';SELECT * FROM lnav_file_metadata' \
|
|
|
|
${test_dir}/textfile_0.md
|
2023-03-31 05:06:19 +00:00
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
${test_dir}/textfile_ansi_expanding.0
|
2023-07-28 04:50:12 +00:00
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
${test_dir}/textfile_0.md
|
2023-08-17 05:13:15 +00:00
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
${test_dir}/pyfile_0.py
|
2023-09-01 05:37:51 +00:00
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
${test_dir}/man_echo.txt
|
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ";SELECT top_meta FROM lnav_views WHERE name = 'text'" \
|
|
|
|
-c ':write-json-to -' \
|
|
|
|
${test_dir}/man_echo.txt
|
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ':goto 8' \
|
|
|
|
-c ";SELECT top_meta FROM lnav_views WHERE name = 'text'" \
|
|
|
|
-c ':write-json-to -' \
|
|
|
|
< ${test_dir}/man_echo.txt
|
2023-10-03 16:04:45 +00:00
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ':goto 6' \
|
|
|
|
-c ";SELECT top_meta FROM lnav_views WHERE name = 'text'" \
|
|
|
|
-c ':write-json-to -' \
|
|
|
|
< ${test_dir}/example.toml
|
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ':goto 9' \
|
|
|
|
-c ";SELECT top_meta FROM lnav_views WHERE name = 'text'" \
|
|
|
|
-c ':write-json-to -' \
|
|
|
|
< ${test_dir}/example.patch
|
2024-02-07 05:09:51 +00:00
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
< ${top_srcdir}/autogen.sh
|
2024-02-08 04:58:53 +00:00
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ';SELECT content FROM lnav_file' \
|
|
|
|
${test_dir}/textfile_nonl.txt
|
2024-02-10 05:13:12 +00:00
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ':goto 23' \
|
|
|
|
-c ';SELECT top_meta FROM lnav_top_view' \
|
|
|
|
-c ':write-json-to -' \
|
|
|
|
${test_dir}/formats/jsontest/format.json
|
2024-02-17 15:16:14 +00:00
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ':goto 3' \
|
|
|
|
-c ':next-section' \
|
|
|
|
${test_dir}/books.json
|
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ':goto 3' \
|
|
|
|
-c ':next-section' \
|
|
|
|
< ${test_dir}/books.json
|
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ':goto #/catalog/1/title' \
|
|
|
|
${test_dir}/books.json
|
|
|
|
|
|
|
|
run_cap_test ${lnav_test} -n \
|
|
|
|
-c ':goto #/catalog/1/title' \
|
|
|
|
< ${test_dir}/books.json
|
2024-02-22 02:23:34 +00:00
|
|
|
|
|
|
|
echo "Hello, World!" | run_cap_test env TEST_COMMENT="piper crumbs" ${lnav_test} -n \
|
|
|
|
-c ';SELECT top_meta FROM lnav_top_view' \
|
|
|
|
-c ':write-json-to -'
|
|
|
|
|
|
|
|
echo "Hello, World!" | run_cap_test \
|
|
|
|
env TEST_COMMENT="piper crumbs" TZ=America/Los_Angeles \
|
|
|
|
${lnav_test} -n \
|
|
|
|
-c ';SELECT top_meta FROM lnav_top_view' \
|
|
|
|
-c ':write-json-to -'
|
|
|
|
|
|
|
|
echo "Hello, World!" | run_cap_test \
|
|
|
|
env TEST_COMMENT="piper crumbs" TZ=America/Los_Angeles \
|
|
|
|
${lnav_test} -nt
|