aboutsummaryrefslogtreecommitdiff
path: root/tests/rep-fetch-git-commit.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-09-04 14:02:11 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-09-04 14:02:11 +0300
commitf8fdb500cc705e2b8b4a74166ceb2c6d8cee3fd3 (patch)
tree3f94b0b79ebad275904b9dc4a4165326ff598492 /tests/rep-fetch-git-commit.test
parentf727c2b8fe273a12d059826291523060dab4b512 (diff)
Rename .test/test{} to .testscript/testscript{}
Diffstat (limited to 'tests/rep-fetch-git-commit.test')
-rw-r--r--tests/rep-fetch-git-commit.test93
1 files changed, 0 insertions, 93 deletions
diff --git a/tests/rep-fetch-git-commit.test b/tests/rep-fetch-git-commit.test
deleted file mode 100644
index 58c9ffe..0000000
--- a/tests/rep-fetch-git-commit.test
+++ /dev/null
@@ -1,93 +0,0 @@
-# file : tests/rep-fetch-git-commit.test
-# copyright : Copyright (c) 2014-2018 Code Synthesis Ltd
-# license : MIT; see accompanying LICENSE file
-
-+git clone "$rep_git/state0/style-basic.git" 2>! &style-basic/***
-
-: unadvertised
-:
-{
- +git -C ../style-basic log '--pretty=format:%H' --all --grep='README' | \
- set commit
-
- : no-refname
- :
- : Here we also test that a commit can be specified without leading '@'.
- :
- {
- $clone_root_cfg && $rep_add "$rep/state0/style-basic.git#$commit";
-
- if ($git_protocol == 'https-dumb')
- warn = "$warn_repo_hist$reason_dumb$warn_dumb"
- elif ($git_protocol != 'https-smart-unadv')
- warn = "$warn_repo_hist$reason_unadv"
- end;
-
- $* 2>>~"%EOE%"
- %fetching git:.+style-basic#$commit%
- %querying .+style-basic\.git%?
- %fetching from .+style-basic\.git%
- $warn
- 1 package\(s\) in 1 repository\(s\)
- EOE
- }
-
- : refname
- :
- {
- $clone_root_cfg && $rep_add "$rep/state0/style-basic.git#stable@$commit";
-
- if ($git_protocol == 'https-dumb')
- warn = "$warn_ref_hist$reason_dumb$warn_dumb"
- elif ($git_protocol != 'https-smart-unadv')
- warn = "$warn_ref_hist$reason_unadv"
- end;
-
- $* 2>>~"%EOE%"
- %fetching git:.+style-basic#stable@$commit%
- %querying .+style-basic\.git%?
- %fetching from .+style-basic\.git%
- $warn
- 1 package\(s\) in 1 repository\(s\)
- EOE
- }
-}
-
-: advertised
-:
-{
- +git -C ../style-basic log '--pretty=format:%H' --all --grep='INSTALL' | \
- set commit
-
- +if ($git_protocol == 'https-dumb')
- warn = "$warn_ref_hist$reason_dumb$warn_dumb"
- end
-
- : no-refname
- :
- {
- $clone_root_cfg && $rep_add "$rep/state0/style-basic.git#@$commit";
-
- $* 2>>~"%EOE%"
- %fetching git:.+style-basic#@$commit%
- %querying .+style-basic\.git%?
- %fetching from .+style-basic.\git%
- $warn
- 1 package\(s\) in 1 repository\(s\)
- EOE
- }
-
- : refname
- :
- {
- $clone_root_cfg && $rep_add "$rep/state0/style-basic.git#stable@$commit";
-
- $* 2>>~"%EOE%"
- %fetching git:.+style-basic#stable@$commit%
- %querying .+style-basic\.git%?
- %fetching from .+style-basic\.git%
- $warn
- 1 package\(s\) in 1 repository\(s\)
- EOE
- }
-}