From ccb2072c7e1b7e3e4f90d56665e5bf0621e102eb Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 3 Feb 2005 00:04:43 +0000 Subject: [PATCH] Extract and compare sparse file --- tests/sparse01.at | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/sparse01.at b/tests/sparse01.at index 03adc57..e4788be 100644 --- a/tests/sparse01.at +++ b/tests/sparse01.at @@ -18,7 +18,7 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA # 02111-1307, 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-- [^ ][^ ]* *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 -- 2.45.2