summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMathieu Othacehe <m.othacehe@gmail.com>2017-06-10 12:32:59 +0200
committerMathieu Othacehe <m.othacehe@gmail.com>2017-07-01 18:47:18 +0200
commit706c80c6a0e0ab32684d4ae9d8d11295bb70087a (patch)
tree73705ecc754d6d8badece3fdc353c3c1cb0cdb20 /tests
parent8f32507d1c8096e03eed103054f735b35d803e37 (diff)
downloadcuirass-706c80c6a0e0ab32684d4ae9d8d11295bb70087a.tar
cuirass-706c80c6a0e0ab32684d4ae9d8d11295bb70087a.tar.gz
repo: remove git-repo.
* src/cuirass/repo.scm (git-repo): Remove it. * tests/repo.scm: Remove related tests. git-repo is not used and it's usecases will be covered by (guix git).
Diffstat (limited to 'tests')
-rw-r--r--tests/repo.scm32
1 files changed, 0 insertions, 32 deletions
diff --git a/tests/repo.scm b/tests/repo.scm
index fc73a64..8890c0a 100644
--- a/tests/repo.scm
+++ b/tests/repo.scm
@@ -76,38 +76,6 @@ name."
;; Cleanup.
(delete-file file-name))
-;;;
-;;; Git repository.
-;;;
-
-(define (create-git-repository name)
- (let ((git "git"))
- (system* git "init" name)
- (with-directory-excursion name
- (create-file "foo")
- (system* git "add" "foo")
- (system* git "commit" "-m" "'foo'"))))
-
-(test-group-with-cleanup "git-repo"
- (define rpt (git-repo #:url file-name
- #:dir "git-example"))
-
- ;; Since repository doesn't exist yet, 'repo-update' should throw an error.
- (test-error "git-repo-update: file not found"
- 'system-error
- (repo-update rpt "master"))
-
- (create-git-repository file-name)
-
- (test-assert "git-repo-update"
- (repo-update rpt "master"))
-
- (test-assert "git-repo-snapshot"
- (in-store? (repo-snapshot rpt store)))
-
- ;; Cleanup.
- (system* "rm" "-rf" file-name "git-example"))
-
(close-connection store)
(test-end)