From 7e4b2dcd0e5ddd37276879e699fd84059183f5e2 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 6 Mar 2018 23:52:11 +0300 Subject: Add support for dir repository --- tests/rep-fetch.test | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) (limited to 'tests/rep-fetch.test') diff --git a/tests/rep-fetch.test b/tests/rep-fetch.test index ffc833c..f7be436 100644 --- a/tests/rep-fetch.test +++ b/tests/rep-fetch.test @@ -114,7 +114,7 @@ $* 2>>/EOE != 0 info: use 'bpkg rep-add' to add a repository EOE -: pkg-repos +: pkg-rep : { test.options += --auth all @@ -319,7 +319,36 @@ $* 2>>/EOE != 0 } } -: git-repos +: dir-rep +: +{ + rep_add += --type dir + + : prerequisites + : + if ($remote != true) + { + # Let's reuse local git repositories that have the same repository + # structure as for dir type. + # + rep = $canonicalize([dir_path] $out_git/state0) + + $clone_root_cfg && $rep_add $rep/libbar.git; + + $* 2>>"EOE"; + fetching dir:($rep/libbar.git) + fetching dir:($rep/style-basic.git) \(prerequisite of dir:($rep/libbar.git)\) + 3 package\(s\) in 2 repository\(s\) + EOE + + $rep_list >>"EOO" + dir:($rep/libbar.git) ($rep/libbar.git) + prerequisite dir:($rep/style-basic.git) ($rep/style-basic.git) + EOO + } +} + +: git-rep : if ($git_supported != true) { -- cgit v1.1