summaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-05-17 16:49:34 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-05-17 16:49:34 -0400
commit478e69925b9670d2fc9bc3c735495bd17253c180 (patch)
tree1b038f31098fe19e061451fa7404c915f5cece09 /Test.hs
parentaa8cdaa96141ab9d950dc18753b1ddf0e994c624 (diff)
can't test gpg on Windows yet
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/Test.hs b/Test.hs
index 30420392a..4f53b3159 100644
--- a/Test.hs
+++ b/Test.hs
@@ -731,6 +731,7 @@ test_bup_remote env = "git-annex bup remote" ~: intmpclonerepo env $ when Build.
-- gpg is not a build dependency, so only test when it's available
test_crypto :: TestEnv -> Test
test_crypto env = "git-annex crypto" ~: intmpclonerepo env $ when Build.SysConfig.gpg $ do
+#ifndef __WINDOWS__
Utility.Gpg.testTestHarness @? "test harness self-test failed"
Utility.Gpg.testHarness $ do
createDirectory "dir"
@@ -754,7 +755,10 @@ test_crypto env = "git-annex crypto" ~: intmpclonerepo env $ when Build.SysConfi
git_annex env "move" [annexedfile, "--from", "foo"] @? "move --from encrypted remote failed"
annexed_present annexedfile
not <$> git_annex env "drop" [annexedfile, "--numcopies=2"] @? "drop failed to fail"
- annexed_present annexedfile
+ annexed_present annexedfile
+#else
+ print "gpg testing not implemented on Windows"
+#endif
-- This is equivilant to running git-annex, but it's all run in-process
-- (when the OS allows) so test coverage collection works.