2021-02-03 05:58:42 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
2021-02-03 06:12:06 +00:00
|
|
|
# Unsets the following so it does not show up in the term title
|
|
|
|
unset SSH_CONNECTION
|
|
|
|
|
2021-02-03 05:58:42 +00:00
|
|
|
lnav_test="${top_builddir}/src/lnav-test"
|
2021-08-15 21:47:55 +00:00
|
|
|
export lnav_test
|
2021-02-03 05:58:42 +00:00
|
|
|
|
2021-02-05 07:10:44 +00:00
|
|
|
for fn in ${srcdir}/tui-captures/*; do
|
2021-02-06 00:04:34 +00:00
|
|
|
base_fn=`basename $fn`
|
|
|
|
run_test ./scripty -n -e $fn -- ${lnav_test} -H < /dev/null
|
2021-02-03 05:58:42 +00:00
|
|
|
|
2021-02-06 00:04:34 +00:00
|
|
|
case "$base_fn" in
|
|
|
|
tui_echo.0)
|
|
|
|
on_error_log "Skipping $fn"
|
|
|
|
;;
|
|
|
|
*)
|
2021-03-20 04:35:53 +00:00
|
|
|
on_error_log "TUI test ${fn} does not work?"
|
2021-02-06 00:04:34 +00:00
|
|
|
;;
|
|
|
|
esac
|
2021-02-05 07:10:44 +00:00
|
|
|
done
|
2021-02-07 06:13:08 +00:00
|
|
|
|
2021-02-07 07:08:01 +00:00
|
|
|
run_test ./scripty -n -e ${srcdir}/xpath_tui.0 -- \
|
2021-02-07 06:13:08 +00:00
|
|
|
${lnav_test} -I ${test_dir} \
|
|
|
|
-c ':goto 2' \
|
|
|
|
${srcdir}/logfile_xml_msg.0
|
|
|
|
|
2021-03-20 04:35:53 +00:00
|
|
|
on_error_log "xpath() fields are not working?"
|