can't test gpg on Windows yet
This commit is contained in:
parent
b26e20fa59
commit
7f6a82df67
1 changed files with 5 additions and 1 deletions
4
Test.hs
4
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
|
-- gpg is not a build dependency, so only test when it's available
|
||||||
test_crypto :: TestEnv -> Test
|
test_crypto :: TestEnv -> Test
|
||||||
test_crypto env = "git-annex crypto" ~: intmpclonerepo env $ when Build.SysConfig.gpg $ do
|
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.testTestHarness @? "test harness self-test failed"
|
||||||
Utility.Gpg.testHarness $ do
|
Utility.Gpg.testHarness $ do
|
||||||
createDirectory "dir"
|
createDirectory "dir"
|
||||||
|
@ -755,6 +756,9 @@ test_crypto env = "git-annex crypto" ~: intmpclonerepo env $ when Build.SysConfi
|
||||||
annexed_present annexedfile
|
annexed_present annexedfile
|
||||||
not <$> git_annex env "drop" [annexedfile, "--numcopies=2"] @? "drop failed to fail"
|
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
|
-- This is equivilant to running git-annex, but it's all run in-process
|
||||||
-- (when the OS allows) so test coverage collection works.
|
-- (when the OS allows) so test coverage collection works.
|
||||||
|
|
Loading…
Add table
Reference in a new issue