summaryrefslogtreecommitdiffstats
path: root/test/test_listview.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:44:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:44:55 +0000
commit5068d34c08f951a7ea6257d305a1627b09a95817 (patch)
tree08213e2be853396a3b07ce15dbe222644dcd9a89 /test/test_listview.sh
parentInitial commit. (diff)
downloadlnav-5068d34c08f951a7ea6257d305a1627b09a95817.tar.xz
lnav-5068d34c08f951a7ea6257d305a1627b09a95817.zip
Adding upstream version 0.11.1.upstream/0.11.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--test/test_listview.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/test_listview.sh b/test/test_listview.sh
new file mode 100644
index 0000000..38634da
--- /dev/null
+++ b/test/test_listview.sh
@@ -0,0 +1,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)?"