From ca70c9061146386ce0986631cd7fc9209a935a34 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 31 Jul 2025 17:19:07 +0300 Subject: added -v/--version and command * DEC TECO had an command. In contrast to DEC TECO's implementation, the value reported by encodes a major.minor.micro semantic version. --- tests/testsuite.at | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/testsuite.at') 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. # -- cgit v1.2.3