aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at33
1 files changed, 20 insertions, 13 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index eadf4fe..49b0673 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -450,6 +450,26 @@ TE_CHECK([[EO/10000\@I"." EO/100^/100\@I"." EO^/100\ HT]], 0, stdout, ignore)
AT_FAIL_IF([test "`cat stdout`" != "$SCITECO_VERSION"])
AT_CLEANUP
+AT_SETUP([Online help])
+AT_CHECK([[mkdir -p women]], 0, ignore, ignore)
+AT_DATA([women/test.woman], [[ABC
+]])
+AT_DATA([women/test.woman.tec], [[!*0:A
+1:B
+*!
+]])
+AT_CHECK([[SCITECOPATH=. $SCITECO -e '@?/A/ 0A-^^A"N(0/0)F" @?/B/ 0A-^^B"N(0/0)F"']], 0, ignore, ignore)
+# This used to crash:
+TE_CHECK([[@?//]], 1, ignore, ignore)
+AT_CLEANUP
+
+# FIXME: Does not work on OBS runners, perhaps because of Xvfb?
+# It's not reproducible on FreeBSD.
+#AT_SETUP([Detaching from terminal])
+#AT_SKIP_IF([$SCITECO --help | $GREP -qvz -e '--detach'])
+#AT_CHECK([[timeout 10 $SHELL -c "$SCITECO --detach -e '23= @EW/test.txt/' && while [ ! -f test.txt ]; do sleep 1; done"]], 0, [], [])
+#AT_CLEANUP
+
#
# Command-line editing.
#
@@ -513,13 +533,6 @@ AT_CHECK([[$SCITECO -e "@EI'^EQ[\$SCITECOPATH]/opener.tes' M[opener] EF .-11\"N(
AT_CHECK([[$SCITECO -e "@EI'^EQ[\$SCITECOPATH]/opener.tes' M[opener] EF EJ-2\"N(0/0)'" -S +1 data.123]], 0, ignore, ignore)
AT_CLEANUP
-# FIXME: Does not work on OBS runners, perhaps because of Xvfb?
-# It's not reproducible on FreeBSD.
-#AT_SETUP([Detaching from terminal])
-#AT_SKIP_IF([$SCITECO --help | $GREP -qvz -e '--detach'])
-#AT_CHECK([[timeout 10 $SHELL -c "$SCITECO --detach -e '23= @EW/test.txt/' && while [ ! -f test.txt ]; do sleep 1; done"]], 0, [], [])
-#AT_CLEANUP
-
AT_BANNER([Regression Tests])
AT_SETUP([Glob patterns with character classes])
@@ -617,12 +630,6 @@ TE_CHECK([[@EU*""]], 1, ignore, ignore)
TE_CHECK([[@EU$"."]], 0, ignore, ignore)
AT_CLEANUP
-AT_SETUP([Empty help topic])
-# FIXME: Produces a false positive under Valgrind
-# due to the value of $SCITECOPATH.
-TE_CHECK([[@?//]], 1, ignore, ignore)
-AT_CLEANUP
-
AT_SETUP([Empty lexer name])
TE_CHECK([[@ES/SETILEXER//]], 1, ignore, ignore)
AT_CLEANUP