From: Rob Browning Date: Mon, 27 May 2013 16:51:23 +0000 (-0500) Subject: t/test.sh: skip two "tree SHA1 didn't change" tests on Cygwin for now. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=c02a2355857ea879d1b4817e2239903a8cc28fff;p=packages%2Fb%2Fbup.git t/test.sh: skip two "tree SHA1 didn't change" tests on Cygwin for now. Apparently Cygwin has some unusual behaviors with respect to access times, so disable these two tests for now. Possibly related: http://cygwin.com/ml/cygwin/2007-06/msg00436.html Signed-off-by: Rob Browning --- diff --git a/README.md b/README.md index 46b4e7a..2d40826 100644 --- a/README.md +++ b/README.md @@ -264,6 +264,13 @@ Notes on Cygwin - There is no support for ACLs. If/when some entrprising person fixes this, adjust t/compare-trees. + - In t/test.sh, two tests have been disabled. These tests check to + see that repeated saves produce identical trees and that an + intervening index doesn't change the SHA1. Apparently Cygwin has + some unusual behaviors with respect to access times (that probably + warrant further investigation). Possibly related: + http://cygwin.com/ml/cygwin/2007-06/msg00436.html + How it works ============ diff --git a/t/test.sh b/t/test.sh index 58c9cca..c0d9553 100755 --- a/t/test.sh +++ b/t/test.sh @@ -126,10 +126,16 @@ a tree1=$(bup save -t $D) || WVFAIL WVPASSEQ "$(cd $D && bup index -m)" "" tree2=$(bup save -t $D) || WVFAIL -WVPASSEQ "$tree1" "$tree2" +if ! [[ $(uname) =~ CYGWIN ]]; then + # On Cygwin, the access time may change. + WVPASSEQ "$tree1" "$tree2" +fi WVPASSEQ "$(bup index -s / | grep ^D)" "" tree3=$(bup save -t /) || WVFAIL -WVPASSEQ "$tree1" "$tree3" +if ! [[ $(uname) =~ CYGWIN ]]; then + # On Cygwin, the access time may change. + WVPASSEQ "$tree1" "$tree3" +fi WVPASS bup save -r :$BUP_DIR -n r-test $D WVFAIL bup save -r :$BUP_DIR/fake/path -n r-test $D WVFAIL bup save -r :$BUP_DIR -n r-test $D/fake/path