X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tests%2Fincr07.at;h=cbd4a3da616325e842808121d33153e3c115d917;hb=e7c99a4dd16685012e42519f1b4fb2b37b19dec5;hp=3d5fc0ee38c2ef0e12f84e7d49a380dfe24f85fa;hpb=738fb9c2f44eee567bb60e22dc011bdfd2f362a8;p=chaz%2Ftar diff --git a/tests/incr07.at b/tests/incr07.at index 3d5fc0e..cbd4a3d 100644 --- a/tests/incr07.at +++ b/tests/incr07.at @@ -1,6 +1,6 @@ # Process this file with autom4te to create testsuite. -*- Autotest -*- # Test suite for GNU tar. -# Copyright 2009, 2013 Free Software Foundation, Inc. +# Copyright 2009, 2013-2014 Free Software Foundation, Inc. # # 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 @@ -38,69 +38,75 @@ AT_KEYWORDS([incremental extract incr07]) # http://lists.gnu.org/archive/html/bug-tar/2013-03/msg00044.html AT_TAR_CHECK([ -mkdir A -echo 'a' > A/a -echo 'a' > A/b +mkdir dirA +echo 'a' > dirA/a +echo 'a' > dirA/b decho C0 -tar -g test.snar -vcf test.0.tar A +tar -g test.snar -vcf test.0.tar dirA -echo 'a' > A/c +echo 'a' > dirA/c decho C1 -tar -g test.snar -vcf test.1.tar A +tar -g test.snar -vcf test.1.tar dirA -rm -f A/a +rm -f dirA/a decho C2 -tar -g test.snar -vcf test.2.tar A +tar -g test.snar -vcf test.2.tar dirA mkdir ext -rm -rf A +rm -rf dirA decho E0 tar -g test.snar -vxf test.0.tar -C ext/ decho E1 tar -g test.snar -vxf test.1.tar -C ext/ -mkdir ext/A/B -touch ext/A/B/file - decho E2 tar -g test.snar -vxf test.2.tar -C ext/ +mkdir ext/dirA/dirB +touch ext/dirA/dirB/file + +decho E3 +tar -g test.snar -vxf test.2.tar -C ext/ + echo FIN -test -d A && echo >&2 "toplevel A exists" +test -d dirA && echo >&2 "toplevel dirA exists" exit 0 ], [0], [C0 -A/ -A/a -A/b +dirA/ +dirA/a +dirA/b C1 -A/ -A/c +dirA/ +dirA/c C2 -A/ +dirA/ E0 -A/ -A/a -A/b +dirA/ +dirA/a +dirA/b E1 -A/ -A/c +dirA/ +dirA/c E2 -A/ -tar: Deleting 'A/a' -tar: Deleting 'A/B' +dirA/ +tar: Deleting 'dirA/a' +E3 +dirA/ +tar: Deleting 'dirA/dirB' FIN ], [C0 -tar: A: Directory is new +tar: dirA: Directory is new C1 C2 E0 E1 E2 +E3 ],[],[],[gnu, oldgnu, posix]) AT_CLEANUP