X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tests%2Fsparse01.at;h=b69d97f59a081d6f70f27c2a79d2cddcbd3240be;hb=13aead50a8cb8b20532a4eb26dd84cde52970806;hp=03adc573c7c2f31e90b80a2e68fc78ff0b6d3ef4;hpb=35cae74c4cae8e59c84e215c493e5a032dbe4e15;p=chaz%2Ftar diff --git a/tests/sparse01.at b/tests/sparse01.at index 03adc57..b69d97f 100644 --- a/tests/sparse01.at +++ b/tests/sparse01.at @@ -15,10 +15,10 @@ # 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. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. -AT_SETUP([sparse01]) +AT_SETUP([Sparse files]) AT_KEYWORDS([sparse01]) AT_TAR_CHECK([ @@ -29,16 +29,23 @@ tar -c -f archive --sparse begin sparsefile end || exit 1 echo separator tar tfv archive +echo separator +mkdir directory +tar Cxf directory archive +genfile --stat=name,size sparsefile +cmp sparsefile directory/sparsefile ], [0], [stdout], -[],[],[],[gnu, oldgnu]) +[],[],[],[posix, gnu, oldgnu]) RE_CHECK([stdout], [separator -rw-r--r-- [^ ][^ ]* *1000 [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9] begin --rw-r--r-- [^ ][^ ]* *10344448[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9] sparsefile +-rw-r--r-- [^ ][^ ]* *10344448 [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9] sparsefile -rw-r--r-- [^ ][^ ]* *1000 [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] [0-9][0-9]:[0-9][0-9] end +separator +sparsefile 10344448 ]) AT_CLEANUP