X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=tests%2Flisted02.at;h=8b4e30b060e7c834d56c732eb6fcdb968fde941c;hb=64ba4757bc5a2d52652f57d7f6764dbc7ef0a5e3;hp=78730dd1ee296ec667f284caf7c43774f10bd341;hpb=35cae74c4cae8e59c84e215c493e5a032dbe4e15;p=chaz%2Ftar diff --git a/tests/listed02.at b/tests/listed02.at index 78730dd..8b4e30b 100644 --- a/tests/listed02.at +++ b/tests/listed02.at @@ -29,7 +29,6 @@ AT_SETUP([working --listed]) AT_KEYWORDS([listed02]) AT_TAR_CHECK([ -mkdir directory echo Create directories mkdir tart @@ -52,12 +51,21 @@ tar -c -v --listed-incremental=tart.incr1 -f archive.1 tart || exit 1 sleep 1 echo Modifying filesystem rm tart/a1 + +# Current incremental backup algorithm is not able to cope with +# renamed files on filesystems that do not change ctime when +# renaming. So, if we're on such filesystem, we skip this test. +CTIME=`genfile --stat=ctime tart/b1` mv tart/b1 tart/b2 +if test $CTIME -eq `genfile --stat=ctime tart/b2`; then + AT_SKIP_TEST +fi +# mv tart/c1 tart/c2 touch tart/c2/ca3 echo Directory contents -find tart|sort +find tart|sort 2>/dev/null sleep 1 echo Creating incremental archive @@ -73,10 +81,10 @@ echo Extracting incremental archive # This command should produce three messages about deletion # of the existing files, that may appear in any order. Piping # to sort makes sure we don't depend on any particular ordering. -tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort +tar -x -v --listed-incremental=tart.incr2 -f archive.2 | sort 2>/dev/null echo Final files: -find tart|sort +find tart|sort 2>/dev/null ], [0], [Create directories