aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/atlocal.in
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-10-28 17:38:02 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-10-28 17:38:02 +0300
commit0ce3b52f696d9fb07dded56400d4d3338074ea6c (patch)
treed264e4352cd572c2a8003c35dd3a8396a9e680ee /tests/atlocal.in
parent427092d2c8ee11b4a56eb50dbf68861f10f2a81f (diff)
downloadsciteco-0ce3b52f696d9fb07dded56400d4d3338074ea6c.tar.gz
added hidden --fake-cmdline parameter for testing command-line editing
* Supports all immediate editing commands. Naturally it cannot emulate arbitrary key presses since there is no canonic ASCII-encoding of function keys. Key macros are not consequently also not testable. The --fake-cmdline parameter is instead treated very similar to a key macro expansion. * Most importantly this allows adding test cases for rubout behavior and bugs that are quite common. * Added regression test cases for the last two rubout bugs. * It's not easy to pass control codes in command line arguments in a portable manner, so the test cases will often use { and }. Control codes could be used e.g. by defining variables like RUBOUT=`printf '\b'` and referencing them with ${RUBOUT}.
Diffstat (limited to 'tests/atlocal.in')
-rw-r--r--tests/atlocal.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in
index 061937a..4bc0a21 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -4,11 +4,14 @@ host=@host@
# built.
# Using the $BOOTSTRAP_SCITECO wouldn't make sense
# anyway as we don't want to test some preinstalled SciTECO.
-SCITECO=@abs_top_builddir@/src/sciteco
+SCITECO="@abs_top_builddir@/src/sciteco"
+
+# For testing command-line editing:
+SCITECO_CMDLINE="@abs_top_builddir@/src/sciteco --no-profile --fake-cmdline"
# Make sure that the standard library from the source package
# is used.
-SCITECOPATH=@abs_top_srcdir@/lib
+SCITECOPATH="@abs_top_srcdir@/lib"
# Glib debug options
G_SLICE=debug-blocks