X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Ftar;a=blobdiff_plain;f=tests%2Fremfiles09c.at;fp=tests%2Fremfiles07.at;h=72416084ace6078ae2c3e195878ff7f50f70ffd8;hp=742e0a10dd034c26e2cc9c14b72525622255fb65;hb=3125d311e17c91da85de3bca326cf485523d78a0;hpb=74ce228f6df956e6b7be9fd4f993bada4b7ea645 diff --git a/tests/remfiles07.at b/tests/remfiles09c.at similarity index 68% rename from tests/remfiles07.at rename to tests/remfiles09c.at index 742e0a1..7241608 100644 --- a/tests/remfiles07.at +++ b/tests/remfiles09c.at @@ -15,45 +15,40 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# Description: See remfiles06.at -# Reported by: Nathan Stratton Treadway -# References: <20130924185129.GO32256@shire.ontko.com> +# Description: check --remove-files operation when archiving/deleting +# directory trees. +# +# This case checks the operation +# in --append mode. +# -AT_SETUP([remove with -C to absolute path]) -AT_KEYWORDS([create remove-files remfiles07]) +AT_SETUP([remove-files on full directory in -r mode]) +AT_KEYWORDS([create append remove-files remfiles09 remfiles09c]) AT_TAR_CHECK([ AT_SORT_PREREQ -mkdir tartest -cd tartest mkdir foo echo foo/file > foo/file -mkdir bar -echo bar/file > bar/file +tar -cf foo.tar foo decho A -find|sort - -DIR=`pwd` +find . | sort decho B -tar -cvf ../foo.tar --remove-files -C foo file -C $DIR/bar file - +tar -rvf foo.tar --remove-files foo decho C -find|sort +find . | sort ], [0], [A . -./bar -./bar/file ./foo +./foo.tar ./foo/file B -file -file +foo/ +foo/file C . -./bar -./foo +./foo.tar ], [A B