summaryrefslogtreecommitdiffstats
path: root/test/test_tui.sh
blob: 3b6f4e9b78c5bd118dc09943e4f0daec895f53f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/bash

# Unsets the following so it does not show up in the term title
unset SSH_CONNECTION

lnav_test="${top_builddir}/src/lnav-test"
export lnav_test

for fn in ${srcdir}/tui-captures/*; do
    base_fn=`basename $fn`
    run_test ./scripty -n -e $fn -- ${lnav_test} -H < /dev/null

    case "$base_fn" in
    tui_echo.0)
      on_error_log "Skipping $fn"
      ;;
    *)
      on_error_log "TUI test ${fn} does not work?"
      ;;
    esac
done

run_test ./scripty -n -e ${srcdir}/xpath_tui.0 -- \
    ${lnav_test} -I ${test_dir} \
        -c ':goto 2' \
        ${srcdir}/logfile_xml_msg.0

on_error_log "xpath() fields are not working?"