]> Dogcows Code - chaz/tar/commitdiff
testsuite: do not resist on file order in archive
authorPavel Raiskup <praiskup@redhat.com>
Wed, 26 Jun 2013 15:35:41 +0000 (17:35 +0200)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sat, 29 Jun 2013 07:45:45 +0000 (10:45 +0300)
On my Fedora 19 box, the exclude08 & exclude11 tests failed before
this fix.  The reason was that the directory traversing chosen the
file order differently than the testsuite expected.

* tests/exclude08.at: Sort the tarball content output.
* tests/exclude09.at: Likewise.
* tests/exclude10.at: Likewise.
* tests/exclude11.at: Likewise.
* tests/exclude12.at: Likewise.
* tests/exclude13.at: Likewise.
* tests/exclude14.at: Likewise.
* tests/exclude15.at: Likewise.
* tests/exclude16.at: Likewise.

tests/exclude08.at
tests/exclude09.at
tests/exclude10.at
tests/exclude11.at
tests/exclude12.at
tests/exclude13.at
tests/exclude14.at
tests/exclude15.at
tests/exclude16.at

index ccd26c9dde5f1d690e5c07df30df7437763697ba..aa352706b6149a5480a2a0e386d9947bad67b2c2 100644 (file)
@@ -37,8 +37,9 @@ AT_SETUP([--exclude-tag option])
 AT_KEYWORDS([exclude exclude-tag exclude08])
 
 AT_TAR_CHECK([
+AT_SORT_PREREQ
 mkexcltest etest
-tar -c -f etest.tar --exclude-tag=excludeme -v etest
+tar -c -f etest.tar --exclude-tag=excludeme -v etest | sort
 ],
 [0],
 [etest/
index 6ccfb18530a61e384c5017affc26eb33caacf9b6..d60bcfe10e529200fa6770c66ef1dc4cf01d527d 100644 (file)
@@ -38,14 +38,15 @@ AT_SETUP([--exclude-tag option and --listed-incremental])
 AT_KEYWORDS([exclude exclude-tag listed incremental exclude09])
 
 AT_TAR_CHECK([
+AT_SORT_PREREQ
 mkexcltest etest
-tar -c -f etest.tar --exclude-tag=excludeme --listed=snar -v etest
+tar -c -f etest.tar --exclude-tag=excludeme --listed=snar -v etest | sort
 ],
 [0],
 [etest/
 etest/subdir/
-etest/top-level-file
 etest/subdir/excludeme
+etest/top-level-file
 ],
 [tar: etest: Directory is new
 tar: etest/subdir: Directory is new
index c95cb535a9f04ccde9fcc1aca37be6784f9ec465..fadd020edc78b7da711c3e580059d57237ed0a3a 100644 (file)
@@ -39,23 +39,24 @@ AT_SETUP([--exclude-tag option in incremental pass])
 AT_KEYWORDS([exclude exclude-tag listed incremental exclude10])
 
 AT_TAR_CHECK([
+AT_SORT_PREREQ
 mkexcltest etest
 rm etest/subdir/excludeme
 decho "# Level 0"
-tar -c -f etest-0.tar --exclude-tag=excludeme --listed=snar-0 -v etest
+tar -c -f etest-0.tar --exclude-tag=excludeme --listed=snar-0 -v etest | sort
 touch etest/subdir/excludeme
 touch etest/subdir/otherfile
 
 decho "# Level 1"
 cp snar-0 snar-1
-tar -c -f etest-1.tar --exclude-tag=excludeme --listed=snar-1 -v etest
+tar -c -f etest-1.tar --exclude-tag=excludeme --listed=snar-1 -v etest | sort
 ],
 [0],
 [# Level 0
 etest/
 etest/subdir/
-etest/top-level-file
 etest/subdir/subdir-file
+etest/top-level-file
 # Level 1
 etest/
 etest/subdir/
index 6b5ef51723b0a319b1d7cead404327c76de487c1..ae78743349f2172ab4542a6ab77c0a19b4ddd57b 100644 (file)
@@ -37,8 +37,9 @@ AT_SETUP([--exclude-tag-under option])
 AT_KEYWORDS([exclude exclude-tag exclude-tag-under exclude11])
 
 AT_TAR_CHECK([
+AT_SORT_PREREQ
 mkexcltest etest
-tar -c -f etest.tar --exclude-tag-under=excludeme -v etest
+tar -c -f etest.tar --exclude-tag-under=excludeme -v etest | sort
 ],
 [0],
 [etest/
index 7121f077bceff9f3534c61dd48d918f5dd73c7c0..b5b7824afe137f338cdffc6de5a15dfe8b429822 100644 (file)
@@ -38,8 +38,9 @@ AT_SETUP([--exclude-tag-under and --listed-incremental])
 AT_KEYWORDS([exclude exclude-tag exclude-tag-under listed incremental exclude12])
 
 AT_TAR_CHECK([
+AT_SORT_PREREQ
 mkexcltest etest
-tar -c -f etest.tar --exclude-tag-under=excludeme --listed=snar -v etest
+tar -c -f etest.tar --exclude-tag-under=excludeme --listed=snar -v etest | sort
 ],
 [0],
 [etest/
index 4a3607691a49b204221a8ab82a927a3877657bf0..34353f43c5e8f3862f758f558805f9b31d28fb15 100644 (file)
@@ -40,23 +40,24 @@ AT_SETUP([--exclude-tag-under option in incremental pass])
 AT_KEYWORDS([exclude exclude-tag exclude-tag-under listed incremental exclude13])
 
 AT_TAR_CHECK([
+AT_SORT_PREREQ
 mkexcltest etest
 rm etest/subdir/excludeme
 decho "# Level 0"
-tar -c -f etest-0.tar --exclude-tag-under=excludeme --listed=snar-0 -v etest
+tar -c -f etest-0.tar --exclude-tag-under=excludeme --listed=snar-0 -v etest | sort
 touch etest/subdir/excludeme
 touch etest/subdir/otherfile
 
 decho "# Level 1"
 cp snar-0 snar-1
-tar -c -f etest-1.tar --exclude-tag-under=excludeme --listed=snar-1 -v etest
+tar -c -f etest-1.tar --exclude-tag-under=excludeme --listed=snar-1 -v etest | sort
 ],
 [0],
 [# Level 0
 etest/
 etest/subdir/
-etest/top-level-file
 etest/subdir/subdir-file
+etest/top-level-file
 # Level 1
 etest/
 etest/subdir/
index 9032366778d3a76fbc50ece0acc2057e6f64b9a9..22aac8622e597ec33383ffe4b0e287fcefdbbff4 100644 (file)
@@ -37,8 +37,9 @@ AT_SETUP([--exclude-tag-all option])
 AT_KEYWORDS([exclude exclude-tag exclude-tag-all exclude14])
 
 AT_TAR_CHECK([
+AT_SORT_PREREQ
 mkexcltest etest
-tar -c -f etest.tar --exclude-tag-all=excludeme -v etest
+tar -c -f etest.tar --exclude-tag-all=excludeme -v etest | sort
 ],
 [0],
 [etest/
index 2c98c353e4176998e1cdbd3f8b85657e054dd9c0..7c1f6c7466cc0b4878010582ebf5937bcceeb8bc 100644 (file)
@@ -37,8 +37,9 @@ AT_SETUP([--exclude-tag-all and --listed-incremental])
 AT_KEYWORDS([exclude exclude-tag exclude-tag-all listed incremental exclude15])
 
 AT_TAR_CHECK([
+AT_SORT_PREREQ
 mkexcltest etest
-tar -c -f etest.tar --exclude-tag-all=excludeme --listed=snar -v etest
+tar -c -f etest.tar --exclude-tag-all=excludeme --listed=snar -v etest | sort
 ],
 [0],
 [etest/
index 5254ef8c574e254d25887c4e0d163a415761d51a..6f7c8944b3d2de7c4f751a8486a1af2aa098a37a 100644 (file)
@@ -39,23 +39,24 @@ AT_SETUP([--exclude-tag-all option in incremental pass])
 AT_KEYWORDS([exclude exclude-tag exclude-tag-all listed incremental exclude16])
 
 AT_TAR_CHECK([
+AT_SORT_PREREQ
 mkexcltest etest
 rm etest/subdir/excludeme
 decho "# Level 0"
-tar -c -f etest-0.tar --exclude-tag-all=excludeme --listed=snar-0 -v etest
+tar -c -f etest-0.tar --exclude-tag-all=excludeme --listed=snar-0 -v etest | sort
 touch etest/subdir/excludeme
 touch etest/subdir/otherfile
 
 decho "# Level 1"
 cp snar-0 snar-1
-tar -c -f etest-1.tar --exclude-tag-all=excludeme --listed=snar-1 -v etest
+tar -c -f etest-1.tar --exclude-tag-all=excludeme --listed=snar-1 -v etest | sort
 ],
 [0],
 [# Level 0
 etest/
 etest/subdir/
-etest/top-level-file
 etest/subdir/subdir-file
+etest/top-level-file
 # Level 1
 etest/
 ],
This page took 0.033121 seconds and 4 git commands to generate.