#! /bin/sh
-
-# Check sparse file handling.
-
# This file is part of GNU tar testsuite.
# Copyright (C) 2004 Free Software Foundation, Inc.
#
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
+# Check sparse file handling.
+
. ./preset
TAR_ARCHIVE_FORMATS="gnu oldgnu posix"
. $srcdir/before
genfile --length 1000 > begin
genfile --length 1000 > end
-mksparse sparsefile 512 0 ABCD 1M EFGH 2000K IJKL
+genfile --sparse --file sparsefile --block-size 512 0 ABCD 1M EFGH 2000K IJKL
tar -c -f archive --sparse begin sparsefile end
echo separator