diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-02-26 22:00:22 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-03-02 20:04:26 +0300 |
commit | 780290277a51853b2e515b16898ca0fcfa1e9e71 (patch) | |
tree | e045dd9cc4ce2726f915897157785cb40b48756f /tests/rep-remove.test | |
parent | 046f9282dc7778f5df326456f1630919a5607f11 (diff) |
Update rep-fetch
Diffstat (limited to 'tests/rep-remove.test')
-rw-r--r-- | tests/rep-remove.test | 70 |
1 files changed, 67 insertions, 3 deletions
diff --git a/tests/rep-remove.test b/tests/rep-remove.test index 0dea240..3717449 100644 --- a/tests/rep-remove.test +++ b/tests/rep-remove.test @@ -48,9 +48,72 @@ end rep_add += -d cfg 2>! rep_fetch += -d cfg --auth all --trust-yes 2>! -rep_list += -d cfg +rep_list += -d cfg --prerequisites --complements pkg_status += -d cfg +: invalid-args +: +{ + : clean-all + : + $* --clean --all 2>>EOE != 0 + error: both --clean and --all|-a specified + info: run 'bpkg help rep-remove' for more information + EOE + + : clean-repos + : + $* --clean $rep/extra 2>>EOE != 0 + error: both --clean and repository argument specified + info: run 'bpkg help rep-remove' for more information + EOE + + : all-repos + : + $* --all $rep/extra 2>>EOE != 0 + error: both --all|-a and repository argument specified + info: run 'bpkg help rep-remove' for more information + EOE + + : none + : + $* 2>>EOE != 0 + error: repository name or location argument expected + info: run 'bpkg help rep-remove' for more information + EOE +} + +: clean +: +{ + $clone_cfg; + $rep_add $rep/extra && $rep_fetch; + + $* --clean 2>>"EOE"; + cleaned bpkg:build2.org/rep-remove/extra + EOE + + $rep_list >>"EOE"; + bpkg:build2.org/rep-remove/extra ($rep/extra) + EOE + + $pkg_status libbar >'unknown' +} + +: all +: +{ + $clone_cfg; + $rep_add $rep/extra && $rep_fetch; + + $* --all 2>>"EOE"; + removed bpkg:build2.org/rep-remove/extra + EOE + + $rep_list >:""; + $pkg_status libbar >'unknown' +} + : by-name : { @@ -61,7 +124,8 @@ pkg_status += -d cfg removed bpkg:build2.org/rep-remove/extra EOE - $rep_list >:"" + $rep_list >:""; + $pkg_status libbar >'unknown' } : prerequisites-cycle @@ -89,7 +153,7 @@ pkg_status += -d cfg removed bpkg:build2.org/rep-remove/testing EOE - $rep_list --prerequisites --complements >>"EOO"; + $rep_list >>"EOO"; bpkg:build2.org/rep-remove/math ($rep/math) prerequisite bpkg:build2.org/rep-remove/extra ($rep/extra) prerequisite bpkg:build2.org/rep-remove/stable ($rep/stable) |