X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftar;a=blobdiff_plain;f=tests%2Fversion.at;h=115c116d5110fe5531dd1a3e4013034662d9ca8c;hp=f457e59dce0cd98cc8dfa6a70e9acf66f00ec5d0;hb=45ccda119355a1087450039a250359c1d0de0d08;hpb=35cae74c4cae8e59c84e215c493e5a032dbe4e15 diff --git a/tests/version.at b/tests/version.at index f457e59..115c116 100644 --- a/tests/version.at +++ b/tests/version.at @@ -1,27 +1,35 @@ # Checking tar version -*- Autotest -*- -# Copyright (C) 2004 Free Software Foundation, Inc. +# Copyright 2004, 2006-2007, 2013-2014 Free Software Foundation, Inc. -# This program is free software; you can redistribute it and/or modify +# This file is part of GNU tar. + +# GNU tar is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. -# This program is distributed in the hope that it will be useful, +# GNU tar is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. +# along with this program. If not, see . AT_SETUP([tar version]) -AT_CHECK([tar --version], +AT_CHECK([tar --version | sed 1q], [0], [AT_PACKAGE_TARNAME (AT_PACKAGE_NAME) AT_PACKAGE_VERSION -]) +], +[], +[cat >$[]XFAILFILE <<'_EOT' + +============================================================== +WARNING: Not using the proper version, *all* checks dubious... +============================================================== +_EOT +], +[rm -f $[]XFAILFILE]) AT_CLEANUP - \ No newline at end of file