diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-10-01 22:05:59 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2020-10-03 21:01:20 +0300 |
commit | 189744781d1c22082f2fbcef7ad41b0155f02f48 (patch) | |
tree | 847b33042b25a23b6e9954fc75d57ec9a46aa96c /tests/pkg-build.testscript | |
parent | 6b610aea9096ce64ae769708a53041653333e155 (diff) |
Add --checkout-{root,purge} to pkg-build
Diffstat (limited to 'tests/pkg-build.testscript')
-rw-r--r-- | tests/pkg-build.testscript | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/pkg-build.testscript b/tests/pkg-build.testscript index f6561d6..272b988 100644 --- a/tests/pkg-build.testscript +++ b/tests/pkg-build.testscript @@ -3877,4 +3877,28 @@ else $pkg_disfigure style-basic } + + : checkout-root + : + { + $clone_root_cfg; + $rep_fetch "$rep0/libbar.git#master" &cfg/.bpkg/repos/*/***; + + $* libmbar --checkout-root $~ --checkout-purge 2>>~%EOE%; + %checked out style-basic/.+% + %configured style-basic/.+% + checked out libmbar/1.0.0 + configured libmbar/1.0.0 + %info: .+ is up to date% + updated libmbar/1.0.0 + EOE + + test -d libmbar-1.0.0; + + $pkg_disfigure libmbar; + $pkg_disfigure style-basic; + + $pkg_purge libmbar; + $pkg_purge style-basic + } } |