aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib/opener.tes8
-rw-r--r--tests/atlocal.in10
-rw-r--r--tests/testsuite.at14
3 files changed, 23 insertions, 9 deletions
diff --git a/lib/opener.tes b/lib/opener.tes
index 6de6237..98ce631 100644
--- a/lib/opener.tes
+++ b/lib/opener.tes
@@ -15,9 +15,10 @@
1U.l 1U.c
!* +line[,column] *!
- 0A-+"=
- C 0A"D \U.l <0A"DC|1;'> 0A-,"= C \U.c ' 0A-10"=L' '
- '
+ 0A-+"= C 0A"D
+ \U.l <0A"DC|1;'> 0A-,"= C \U.c <0A"DC|1;'> '
+ 0A-10"= 2LR Oopen '
+ ' '
!* filename:line[:column][:] *!
LR -A-:"=R'
@@ -31,6 +32,7 @@
LR
'
+ !open!
0X.f [*
EBN.f Q.c-1,Q.l-1ESFINDCOLUMN:J
]*
diff --git a/tests/atlocal.in b/tests/atlocal.in
index 1992c54..1c4ca89 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -24,7 +24,7 @@ ESCAPE=`printf '\33'`
# Make sure that the standard library from the source package
# is used.
-SCITECOPATH="@abs_top_srcdir@/lib"
+export SCITECOPATH="@abs_top_srcdir@/lib"
TECO_INTEGER=@TECO_INTEGER@
@@ -36,17 +36,17 @@ MININT64=-9223372036854775808
GREP="@GREP@"
# Glib debug options
-G_SLICE=debug-blocks
-G_ENABLE_DIAGNOSTIC=1
+export G_SLICE=debug-blocks
+export G_ENABLE_DIAGNOSTIC=1
# For the Unicode tests - makes sure that UTF-8 characters
# are accepted on command lines.
case $host in
*-*-darwin*)
- LC_ALL=`defaults read -g AppleLocale | @SED@ 's/@.*$//g'`.UTF-8
+ export LC_ALL=`defaults read -g AppleLocale | @SED@ 's/@.*$//g'`.UTF-8
;;
*)
- LC_ALL=C.UTF-8
+ export LC_ALL=C.UTF-8
;;
esac
diff --git a/tests/testsuite.at b/tests/testsuite.at
index b0ca8c0..ab1154b 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -19,7 +19,7 @@ AT_ARG_OPTION([valgrind],
# Single round brackets also have to be replaced with the
# quadrigraphs @{:@ and @:}@.
-AT_BANNER([Features])
+AT_BANNER([Language features])
AT_SETUP([Number stack])
AT_CHECK([$SCITECO -e "2%a,%a - 3\"N(0/0)'"], 0, ignore, ignore)
@@ -243,6 +243,18 @@ AT_CHECK([$SCITECO_CMDLINE "@I/ @:foo ${RUBOUT_WORD}/ Z-3\"N(0/0)'"], 0, ignore
AT_FAIL_IF([$GREP "^Error:" stderr])
AT_CLEANUP
+AT_BANNER([Standard library])
+
+AT_SETUP([Command line opener])
+AT_DATA([data.123], [0123456789
+9876543210
+])
+AT_CHECK([$SCITECO -e "@EM'^EQ[[\$SCITECOPATH]]/opener.tes' M[[opener]] -EF .-13\"N(0/0)'" +2,3 data.123], 0, ignore, ignore)
+AT_CHECK([$SCITECO -e "@EM'^EQ[[\$SCITECOPATH]]/opener.tes' M[[opener]] -EF .-11\"N(0/0)'" data.123:2], 0, ignore, ignore)
+# `-S` stops processing of special arguments
+AT_CHECK([$SCITECO -e "@EM'^EQ[[\$SCITECOPATH]]/opener.tes' M[[opener]] -EF EJ-2\"N(0/0)'" -S +1 data.123], 0, ignore, ignore)
+AT_CLEANUP
+
AT_BANNER([Regression Tests])
AT_SETUP([Glob patterns with character classes])