lnav/test/test_listview.sh

37 lines
1.1 KiB
Bash
Raw Normal View History

2009-12-24 19:36:01 +01:00
#! /bin/bash
2009-09-14 03:07:32 +02:00
2009-10-14 21:42:58 +02:00
run_test ./scripty -n -e ${srcdir}/listview_output.0 -- \
./drive_listview < /dev/null
2009-09-14 03:07:32 +02:00
2009-10-14 21:42:58 +02:00
on_error_fail_with "listview output does not match?"
2009-09-14 03:07:32 +02:00
2009-10-15 17:58:45 +02:00
run_test ./scripty -n -e ${srcdir}/listview_output.1 -- \
./drive_listview -t 1 < /dev/null
2009-09-14 03:07:32 +02:00
2009-10-15 17:58:45 +02:00
on_error_fail_with "listview didn't move down?"
2009-09-14 03:07:32 +02:00
2009-10-15 17:58:45 +02:00
run_test ./scripty -n -e ${srcdir}/listview_output.2 -- \
./drive_listview -l 1 < /dev/null
2009-09-14 03:07:32 +02:00
2009-10-15 17:58:45 +02:00
on_error_fail_with "Listview didn't move right?"
2009-09-14 03:07:32 +02:00
2009-10-15 17:58:45 +02:00
run_test ./scripty -n -e ${srcdir}/listview_output.3 -- \
./drive_listview -t 1 -l 1 < /dev/null
2009-09-14 03:07:32 +02:00
2009-10-15 17:58:45 +02:00
on_error_fail_with "Listview didn't move left and right?"
2009-09-14 03:07:32 +02:00
2009-10-15 17:58:45 +02:00
run_test ./scripty -n -e ${srcdir}/listview_output.4 -- \
./drive_listview -y 1 -r 50 < /dev/null
2009-09-14 03:07:32 +02:00
2009-10-15 17:58:45 +02:00
on_error_fail_with "Listview doesn't start down one line?"
2009-09-14 03:07:32 +02:00
2009-10-15 17:58:45 +02:00
run_test ./scripty -n -e ${srcdir}/listview_output.5 -- \
./drive_listview -y 1 -r 50 -h -1 < /dev/null
2009-09-14 03:07:32 +02:00
2009-10-15 17:58:45 +02:00
on_error_fail_with "Listview isn't shorter?"
2009-09-14 03:07:32 +02:00
2009-10-15 17:58:45 +02:00
run_test ./scripty -n -e ${srcdir}/listview_output.6 -- \
./drive_listview -y 1 -r 50 -h -1 -t 1 < /dev/null
2009-09-14 03:07:32 +02:00
2009-10-15 17:58:45 +02:00
on_error_fail_with "Listview didn't move down (2)?"