Merge branch 'master' into rawfilepath

This commit is contained in:
Joey Hess 2020-11-04 14:21:44 -04:00
commit f9fc26f05a
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
29 changed files with 299 additions and 59 deletions

View file

@ -299,6 +299,7 @@ unitTests note = testGroup ("Unit Tests " ++ note)
, testCase "export_import_subdir" test_export_import_subdir
, testCase "shared clone" test_shared_clone
, testCase "log" test_log
, testCase "view" test_view
, testCase "magic" test_magic
, testCase "import" test_import
, testCase "reinject" test_reinject
@ -448,6 +449,14 @@ test_log :: Assertion
test_log = intmpclonerepo $ do
git_annex "log" [annexedfile] @? "log failed"
test_view :: Assertion
test_view = intmpclonerepo $ do
git_annex "metadata" ["-s", "test=test1", annexedfile] @? "metadata failed"
git_annex "metadata" ["-s", "test=test2", sha1annexedfile] @? "metadata failed"
git_annex "view" ["test=test1"] @? "entering view failed"
checkexists annexedfile
checkdoesnotexist sha1annexedfile
test_magic :: Assertion
test_magic = intmpclonerepo $ do
#ifdef WITH_MAGICMIME