From 3d4838d3706de2ba0045dc9f99a3dc96398def64 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 19 Feb 2018 14:26:02 +0300 Subject: Parse repositories and packages files for git repositories --- tests/rep-fetch.test | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) (limited to 'tests/rep-fetch.test') diff --git a/tests/rep-fetch.test b/tests/rep-fetch.test index 3630709..499541f 100644 --- a/tests/rep-fetch.test +++ b/tests/rep-fetch.test @@ -60,23 +60,15 @@ # Create git repositories. # - # Note that we can expect that the tar program is present on the platform. We - # will use the same options as we do for unpacking of bpkg packages (see - # pkg-unpack.cxx). - # - x = ($cxx.target.class != 'windows' \ - ? tar -C $out_git -xf \ - : tar -C $regex.replace($out_git, '\\', '/') --force-local -xf) - - $x $src/git/state0/libfoo.tar - $x $src/git/state0/libbar.tar - $x $src/git/state0/style.tar - $x $src/git/state0/style-basic.tar &$out_git/state0/*** - - $x $src/git/state1/libfoo.tar - $x $src/git/state1/libbaz.tar - $x $src/git/state1/style.tar - $x $src/git/state1/style-basic.tar &$out_git/state1/*** + $git_extract $src/git/state0/libfoo.tar + $git_extract $src/git/state0/libbar.tar + $git_extract $src/git/state0/style.tar + $git_extract $src/git/state0/style-basic.tar &$out_git/state0/*** + + $git_extract $src/git/state1/libfoo.tar + $git_extract $src/git/state1/libbaz.tar + $git_extract $src/git/state1/style.tar + $git_extract $src/git/state1/style-basic.tar &$out_git/state1/*** end : no-repos @@ -165,7 +157,7 @@ $* 2>>/EOE != 0 : if ($git_supported != true) { - # Skip git repository fetch tests. + # Skip git repository tests. # } elif ($remote != true) -- cgit v1.1