Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libcurses Add mutt_test to the test runs, this tes...
details: https://anonhg.NetBSD.org/src/rev/9b4362bab06c
branches: trunk
changeset: 365934:9b4362bab06c
user: blymn <blymn%NetBSD.org@localhost>
date: Tue May 03 22:18:16 2022 +0000
description:
Add mutt_test to the test runs, this test tries to emulate a real
curses application to test the interaction of various curses calls.
diffstat:
tests/lib/libcurses/t_curses.sh | 19 ++++++++++++++++++-
tests/lib/libcurses/tests/mutt_test | 5 +++++
2 files changed, 23 insertions(+), 1 deletions(-)
diffs (45 lines):
diff -r 04bf284e8014 -r 9b4362bab06c tests/lib/libcurses/t_curses.sh
--- a/tests/lib/libcurses/t_curses.sh Tue May 03 22:12:54 2022 +0000
+++ b/tests/lib/libcurses/t_curses.sh Tue May 03 22:18:16 2022 +0000
@@ -2187,6 +2187,20 @@
h_run wunderscore
}
+##########################################
+# Simulate curses application behaviour
+##########################################
+
+atf_test_case mutt_test
+mutt_test_head()
+{
+ atf_set "descr" "Try to emulate a curses application"
+}
+mutt_test_body()
+{
+ h_run mutt_test
+}
+
atf_init_test_cases()
{
# testframe utility functions
@@ -2444,4 +2458,7 @@
# curses underscore attribute manipulation routines
atf_add_test_case underscore
atf_add_test_case wunderscore
-}
+
+ # emulate a curses application
+ atf_add_test_case mutt_test
+}
diff -r 04bf284e8014 -r 9b4362bab06c tests/lib/libcurses/tests/mutt_test
--- a/tests/lib/libcurses/tests/mutt_test Tue May 03 22:12:54 2022 +0000
+++ b/tests/lib/libcurses/tests/mutt_test Tue May 03 22:18:16 2022 +0000
@@ -1,3 +1,8 @@
+#
+# This test attempts to emulate some of the behaviours of mutt, it is neither
+# an exact nor complete emulation of what mutt does but it does test the
+# interaction of various call types.
+#
include start_color
include fill_screen
comparend mutt_test1.chk
Home |
Main Index |
Thread Index |
Old Index