X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=tests%2Ftestsuite.at;h=b0cf6110d213e4974d8e2ba431aedc758f646521;hb=f63937ee1182081ec42ac8bfc419666a6b9a0edd;hp=2fa53925c66b72d80b548baa8831413e6dd9a43d;hpb=c286dbf484dc985fb63d5c677fc8cd91b5b1d0f6;p=tar diff --git a/tests/testsuite.at b/tests/testsuite.at index 2fa5392..b0cf611 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -1,7 +1,7 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +# Copyright (C) 2004, 2005, 2006, 2007, 2008 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 @@ -21,6 +21,7 @@ # We need a recent Autotest. m4_version_prereq([2.52g]) +m4_define([AT_TAR_CHECK_HOOK]) m4_define([AT_TAR_CHECK],[ AT_XFAIL_IF(test -f $[]XFAILFILE) m4_foreach([FMT], @@ -33,9 +34,20 @@ export TEST_TAR_FORMAT TAR_OPTIONS="-H FMT" export TAR_OPTIONS rm -rf * -$1)],$2,$3,$4,$5,$6)]) +$1)],$2,$3,$4,$5,$6) + AT_TAR_CHECK_HOOK]) ]) +m4_define([AT_TAR_WITH_HOOK],[ + m4_pushdef([AT_TAR_CHECK_HOOK],[$1]) + $2 + + m4_popdef([AT_TAR_CHECK_HOOK])]) + +m4_define([TAR_IGNREC_HOOK],[ + AT_CHECK([grep -v '^.*tar: Record size = ' stderr; exit 0]) +]) + m4_define([RE_CHECK],[ AT_DATA([$1.re],[$2]) awk '{print NR " " $[]0}' $1 > $[]$.1 @@ -145,6 +157,8 @@ m4_include([chtype.at]) m4_include([ignfail.at]) m4_include([link01.at]) +m4_include([link02.at]) +m4_include([link03.at]) m4_include([longv7.at]) m4_include([long01.at])