aboutsummaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-03-17 19:18:45 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-03-17 19:18:45 -0400
commit0af00026c9f2c256b5bebf584c2229beccda338b (patch)
tree394d37df20662e4e75432fbc623cf8e4ed71083b /Test.hs
parent9a79dc9ec02a430c21ac720d7c6a4ee11a3edcdd (diff)
test move with ssh remote
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs11
1 files changed, 9 insertions, 2 deletions
diff --git a/Test.hs b/Test.hs
index 11fac2ea2..88c2b6e8c 100644
--- a/Test.hs
+++ b/Test.hs
@@ -222,8 +222,9 @@ unitTests note = testGroup ("Unit Tests " ++ note)
, testCase "drop (with remote)" test_drop_withremote
, testCase "drop (untrusted remote)" test_drop_untrustedremote
, testCase "get" test_get
- , testCase "get (from ssh remote)" test_get_ssh_remote
+ , testCase "get (ssh remote)" test_get_ssh_remote
, testCase "move" test_move
+ , testCase "move (ssh remote)" test_move_ssh_remote
, testCase "copy" test_copy
, testCase "lock" test_lock
, testCase "lock (v6 --force)" test_lock_v6_force
@@ -493,7 +494,13 @@ test_get' setup = setup $ do
unannexed ingitfile
test_move :: Assertion
-test_move = intmpclonerepo $ do
+test_move = test_move' intmpclonerepo
+
+test_move_ssh_remote :: Assertion
+test_move_ssh_remote = test_move' (with_ssh_origin intmpclonerepo)
+
+test_move' :: (Assertion -> Assertion) -> Assertion
+test_move' setup = setup $ do
annexed_notpresent annexedfile
inmainrepo $ annexed_present annexedfile
git_annex "move" ["--from", "origin", annexedfile] @? "move --from of file failed"