mirror of
https://git.savannah.gnu.org/git/tar.git
synced 2026-04-27 20:05:12 +00:00
Initial revision
This commit is contained in:
18
tests/version.sh
Executable file
18
tests/version.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#! /bin/sh
|
||||
# Check if the proper version is being tested.
|
||||
|
||||
. ./preset
|
||||
PATH=../src:$PATH
|
||||
|
||||
if test -n "`$PACKAGE --version | sed -n s/$PACKAGE.*$VERSION/OK/p`"; then
|
||||
banner="Regression testing for GNU $PACKAGE, version $VERSION"
|
||||
dashes=`echo $banner | sed s/./=/g`
|
||||
echo $dashes
|
||||
echo $banner
|
||||
echo $dashes
|
||||
else
|
||||
echo '=============================================================='
|
||||
echo 'WARNING: Not using the proper version, *all* checks dubious...'
|
||||
echo '=============================================================='
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user