diff options
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. # |