aboutsummaryrefslogtreecommitdiff
path: root/tests/rep-add.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-02-12 17:30:16 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-02-12 17:34:55 +0300
commitb7763416f8a1e4940a10336d3a8b9fbbb879f414 (patch)
tree31f1bc7427181aa81984a639d998ca4e99058199 /tests/rep-add.test
parentecb1efeebaa5597bee4cfdaab7bff4007b73127d (diff)
Clone and fetch git repositories
Diffstat (limited to 'tests/rep-add.test')
-rw-r--r--tests/rep-add.test28
1 files changed, 22 insertions, 6 deletions
diff --git a/tests/rep-add.test b/tests/rep-add.test
index 4e203cc..a84f725 100644
--- a/tests/rep-add.test
+++ b/tests/rep-add.test
@@ -38,7 +38,7 @@
: git-no-branch
:
$* 'git://example.org/repo' 2>>EOE != 0
- error: invalid git repository location 'git://example.org/repo': missing branch/tag for git repository
+ error: invalid git repository location 'git://example.org/repo': missing branch/tag or commit id for git repository
EOE
: bpkg-git-scheme
@@ -88,7 +88,7 @@
$clone_cfg && mkdir -p repo/.git;
$* 'repo' 2>>~%EOE% != 0
- %error: invalid git repository location '.+repo': missing branch/tag for git repository%
+ %error: invalid git repository location '.+repo': missing branch/tag or commit id for git repository%
EOE
: file-bpkg
@@ -107,11 +107,11 @@
$clone_cfg;
$* ./1/bar/stable 2>>/~%EOE%;
- %added repository .+/relative-path/bar/stable%
+ %added repository bpkg:.+/relative-path/bar/stable%
EOE
$* ./1/../1/bar/stable 2>>/~%EOE% != 0
- %error: .+/relative-path/bar/stable is already a repository of this configuration%
+ %error: bpkg:.+/relative-path/bar/stable is already a repository of this configuration%
EOE
}
@@ -121,17 +121,21 @@
$clone_cfg;
$* $~/1/foo/stable 2>>/~%EOE%;
- %added repository .+/absolute-path/foo/stable%
+ %added repository bpkg:.+/absolute-path/foo/stable%
EOE
$* $~/1/../1/foo/stable 2>>/~%EOE% != 0
- %error: .+/absolute-path/foo/stable is already a repository of this configuration%
+ %error: bpkg:.+/absolute-path/foo/stable is already a repository of this configuration%
EOE
}
: remote-url
:
{
+ +$clone_cfg
+
+ : bpkg
+ :
$clone_cfg;
$* 'http://pkg.example.org/1/testing' 2>>~%EOE%;
@@ -141,4 +145,16 @@
$* 'https://www.example.org/1/testing' 2>>~%EOE% != 0
%error: bpkg:example.org/testing is already a repository of this configuration%
EOE
+
+ : git
+ :
+ $clone_cfg;
+
+ $* 'git://example.org/testing#master' 2>>~%EOE%;
+ %added repository git:example.org/testing%
+ EOE
+
+ $* 'git://www.example.org/testing#master' 2>>~%EOE% != 0
+ %error: git:example.org/testing is already a repository of this configuration%
+ EOE
}