]> Dogcows Code - chaz/tar/blobdiff - tests/listed02.at
Use -print with find
[chaz/tar] / tests / listed02.at
index 78730dd1ee296ec667f284caf7c43774f10bd341..2cf850c9a46d4dcc90bbee47e872afad4461d71e 100644 (file)
@@ -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 -print | 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 -print | sort 2>/dev/null
 ],
 [0],
 [Create directories
This page took 0.023168 seconds and 4 git commands to generate.