diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-31 17:19:07 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-07-31 17:19:07 +0300 |
commit | ca70c9061146386ce0986631cd7fc9209a935a34 (patch) | |
tree | 31bdd0ab4f5bec8eb5aadcc75332960b0e8d5a22 /tests | |
parent | 630a6f3cc2438cbc966e883a2106fcfadb59cad3 (diff) | |
download | sciteco-ca70c9061146386ce0986631cd7fc9209a935a34.tar.gz |
added -v/--version and <EO> command
* DEC TECO had an <EO> command.
In contrast to DEC TECO's implementation, the value reported by
<EO> encodes a major.minor.micro semantic version.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/atlocal.in | 1 | ||||
-rw-r--r-- | tests/testsuite.at | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/atlocal.in b/tests/atlocal.in index c693cc9..a8a5242 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -18,6 +18,7 @@ export SCITECOPATH="@abs_top_srcdir@/lib" export srcdir TECO_INTEGER=@TECO_INTEGER@ +SCITECO_VERSION="@PACKAGE_VERSION@" GREP="@GREP@" diff --git a/tests/testsuite.at b/tests/testsuite.at index 012ee05..78e6f48 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -360,6 +360,13 @@ AT_SETUP([Timestamps]) TE_CHECK([[::^HUa ::^H-Qa"<(0/0)']], 0, ignore, ignore) AT_CLEANUP +AT_SETUP([Program version]) +TE_CHECK([[EO=]], 0, stdout, ignore) +# FIXME: The grep shouldn't be necessary if we run all tests with --quiet. +AT_CHECK([[EO="`$GREP -v "^Info:" stdout`" && \ + test $(($EO/10000)).$(($EO/100%100)).$(($EO%100)) = "$SCITECO_VERSION"]], 0, ignore, ignore) +AT_CLEANUP + # # Command-line editing. # |