few final bits for fully working test suite on windows
This commit is contained in:
parent
8b3427c52e
commit
bab49ac7c6
3 changed files with 9 additions and 2 deletions
6
Test.hs
6
Test.hs
|
@ -75,7 +75,12 @@ main = do
|
||||||
putStrLn " (Do not be alarmed by odd output here; it's normal."
|
putStrLn " (Do not be alarmed by odd output here; it's normal."
|
||||||
putStrLn " wait for the last line to see how it went.)"
|
putStrLn " wait for the last line to see how it went.)"
|
||||||
rs <- runhunit =<< prepare False
|
rs <- runhunit =<< prepare False
|
||||||
|
#ifndef __WINDOWS__
|
||||||
directrs <- runhunit =<< prepare True
|
directrs <- runhunit =<< prepare True
|
||||||
|
#else
|
||||||
|
-- Windows is only going to use direct mode, so don't test twice.
|
||||||
|
let directrs = []
|
||||||
|
#endif
|
||||||
divider
|
divider
|
||||||
propigate (rs++directrs) qcok
|
propigate (rs++directrs) qcok
|
||||||
where
|
where
|
||||||
|
@ -1005,6 +1010,7 @@ cleanup dir = do
|
||||||
recurseDir SystemFS dir >>=
|
recurseDir SystemFS dir >>=
|
||||||
filterM doesDirectoryExist >>=
|
filterM doesDirectoryExist >>=
|
||||||
mapM_ Utility.FileMode.allowWrite
|
mapM_ Utility.FileMode.allowWrite
|
||||||
|
-- For unknown reasons, this sometimes fails on Windows.
|
||||||
void $ tryIO $ removeDirectoryRecursive dir
|
void $ tryIO $ removeDirectoryRecursive dir
|
||||||
|
|
||||||
checklink :: FilePath -> Assertion
|
checklink :: FilePath -> Assertion
|
||||||
|
|
|
@ -7,7 +7,8 @@ now! --[[Joey]]
|
||||||
* Does not work with Cygwin's build of git (that git does not consistently
|
* Does not work with Cygwin's build of git (that git does not consistently
|
||||||
support use of DOS style paths, which git-annex uses on Windows).
|
support use of DOS style paths, which git-annex uses on Windows).
|
||||||
Must use the upstream build of git for Windows.
|
Must use the upstream build of git for Windows.
|
||||||
* test suite doesn't work
|
* Test suite works and passes, but 6 tests are disabled due to failing.
|
||||||
|
* Directory and rsync special remotes are known buggy.
|
||||||
* Bad file locking, it's probably not safe to run more than one git-annex
|
* Bad file locking, it's probably not safe to run more than one git-annex
|
||||||
process at the same time on Windows.
|
process at the same time on Windows.
|
||||||
* No support for the assistant or webapp.
|
* No support for the assistant or webapp.
|
||||||
|
|
|
@ -58,4 +58,4 @@ rm -f last-incremental-failed
|
||||||
|
|
||||||
# Test git-annex
|
# Test git-annex
|
||||||
rm -rf .t
|
rm -rf .t
|
||||||
withcyg dist/build/git-annex/git-annex.exe test || true
|
withcyg dist/build/git-annex/git-annex.exe test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue