]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Testsuite fixes
authorSergey Poznyakoff <gray@gnu.org>
Mon, 25 Nov 2019 06:01:04 +0000 (08:01 +0200)
committerSergey Poznyakoff <gray@gnu.org>
Mon, 25 Nov 2019 06:01:04 +0000 (08:01 +0200)
* tests/sparse06.at: Skip the test if genfile is unable to create
sparse files.
* tests/sptrcreat.at: Likewise.
* tests/sptrdiff00.at: Likewise.
* tests/sptrdiff01.at: Likewise.

tests/sparse06.at
tests/sptrcreat.at
tests/sptrdiff00.at
tests/sptrdiff01.at

index 650b4f57eb77d632273a62bda0308b012a9a31ff..ceb5abbe9a0674f0395d581bbfcd85f428ecc66b 100644 (file)
@@ -23,7 +23,7 @@ AT_KEYWORDS([sparse sparse06 chdir])
 
 m4_define([check_pattern],[
 rm -rf out archive.tar smallsparse && mkdir out
-genfile --sparse --quiet --file smallsparse $1
+genfile --sparse --quiet --file smallsparse $1 || AT_SKIP_TEST
 tar -cSf archive.tar smallsparse
 tar -xf archive.tar -C out
 cmp smallsparse out/smallsparse
@@ -33,7 +33,7 @@ AT_TAR_CHECK([
 AT_SEEKHOLE_PREREQ
 
 TAR_OPTIONS="$TAR_OPTIONS --hole-detection=seek"
-genfile --sparse --file bigsparse 0 ABC 8G DEF
+genfile --sparse --file bigsparse 0 ABC 8G DEF || AT_SKIP_TEST
 tar -cSf a bigsparse
 test $? -eq 0 || exit 1
 
index 2c730cc6bd4ed6d38c503d2f35675dfbac645799..d913ddf19e919aefb48b06351b4cd6f4f69e5790 100644 (file)
@@ -35,7 +35,7 @@ AT_KEYWORDS([truncate filechange sparse sptr sptrcreat])
 
 AT_TAR_CHECK([
 genfile --sparse --block-size=1024 --file foo \
-  0 ABCDEFGHIJ 1M ABCDEFGHIJ 10M ABCDEFGHIJ 200M ABCDEFGHIJ
+  0 ABCDEFGHIJ 1M ABCDEFGHIJ 10M ABCDEFGHIJ 200M ABCDEFGHIJ || AT_SKIP_TEST
 genfile --file baz
 genfile --run --checkpoint 3 --length 200m --truncate foo -- \
  tar --sparse -vcf bar foo baz
index 990c6fa4b963807121f7509c3fd6afde23b701f3..482e9e55cb8f4e2d1563050c1bc10a8b9aadfd4c 100644 (file)
@@ -29,7 +29,7 @@ AT_KEYWORDS([truncate filechange sparse sptr sptrdiff diff])
 # This triggers short read in check_sparse_region.
 AT_TAR_CHECK([
 genfile --sparse --block-size=1024 --file foo \
-  0 ABCDEFGHIJ 1M ABCDEFGHIJ 10M ABCDEFGHIJ 200M ABCDEFGHIJ
+  0 ABCDEFGHIJ 1M ABCDEFGHIJ 10M ABCDEFGHIJ 200M ABCDEFGHIJ || AT_SKIP_TEST
 genfile --file baz
 echo creating
 tar --sparse -vcf bar foo baz
index fcada14ca192ac181e78540e9f4bd68f28d5e1a5..81232a16946704803ab7c707f5411e5af8b55e68 100644 (file)
@@ -29,7 +29,7 @@ AT_KEYWORDS([truncate filechange sparse sptr sptrdiff diff])
 # This triggers short read in check_data_region.
 AT_TAR_CHECK([
 genfile --sparse --block-size=1024 --file foo \
-  0 ABCDEFGHIJ 1M ABCDEFGHIJ 10M ABCDEFGHIJ 200M ABCDEFGHIJ
+  0 ABCDEFGHIJ 1M ABCDEFGHIJ 10M ABCDEFGHIJ 200M ABCDEFGHIJ || AT_SKIP_TEST
 genfile --file baz
 echo creating
 tar --sparse -vcf bar foo baz