X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tests%2Fafter;h=7de077ff0784dbc6324383fff236851fb390cca0;hb=d81b5d6f1e7e72c34b2b8698dcb607a51a182311;hp=427b542293973dbd79f8d5d0f5fe955601824aee;hpb=d584c1ed0faf06a4d612de9ee04ebe0edfa770a3;p=chaz%2Ftar diff --git a/tests/after b/tests/after index 427b542..7de077f 100755 --- a/tests/after +++ b/tests/after @@ -1,6 +1,25 @@ #! /bin/sh + # Do common operations after a particular test. +# This file is part of GNU tar testsuite. +# Copyright (C) 2004 Free Software Foundation, Inc. +# +# This program 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. +# +# This program 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. + cd .. exec 1> /dev/null exec 2> /dev/null @@ -18,7 +37,7 @@ compare() { mv ${tempfile}.1 ${tempfile} fi - if eval test -z "\${${1}_regex}" ; then + if eval test -z \"\${${1}_regex}\" ; then cmp -s ${tempfile}0 ${tempfile} || exit 1 else awk '{print NR " " $0}' ${tempfile}0 > ${tempfile}.1