File: test_listview.sh

package info (click to toggle)
lnav 0.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,808 kB
  • ctags: 3,343
  • sloc: cpp: 24,027; sh: 4,750; ansic: 4,541; makefile: 446; python: 165; sql: 56
file content (36 lines) | stat: -rw-r--r-- 1,098 bytes parent folder | download | duplicates (5)
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
29
30
31
32
33
34
35
36
#! /bin/bash

run_test ./scripty -n -e ${srcdir}/listview_output.0 -- \
    ./drive_listview < /dev/null

on_error_fail_with "listview output does not match?"

run_test ./scripty -n -e ${srcdir}/listview_output.1 -- \
    ./drive_listview -t 1 < /dev/null

on_error_fail_with "listview didn't move down?"

run_test ./scripty -n -e ${srcdir}/listview_output.2 -- \
    ./drive_listview -l 1 < /dev/null

on_error_fail_with "Listview didn't move right?"

run_test ./scripty -n -e ${srcdir}/listview_output.3 -- \
    ./drive_listview -t 1 -l 1 < /dev/null

on_error_fail_with "Listview didn't move left and right?"

run_test ./scripty -n -e ${srcdir}/listview_output.4 -- \
    ./drive_listview -y 1 -r 50 < /dev/null

on_error_fail_with "Listview doesn't start down one line?"

run_test ./scripty -n -e ${srcdir}/listview_output.5 -- \
    ./drive_listview -y 1 -r 50 -h -1 < /dev/null

on_error_fail_with "Listview isn't shorter?"

run_test ./scripty -n -e ${srcdir}/listview_output.6 -- \
    ./drive_listview -y 1 -r 50 -h -1 -t 1 < /dev/null

on_error_fail_with "Listview didn't move down (2)?"