diff options
Diffstat (limited to 't/superuser--split-transactions--conflict.t')
-rw-r--r-- | t/superuser--split-transactions--conflict.t | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/t/superuser--split-transactions--conflict.t b/t/superuser--split-transactions--conflict.t index ec88b664..a0332283 100644 --- a/t/superuser--split-transactions--conflict.t +++ b/t/superuser--split-transactions--conflict.t @@ -5,6 +5,9 @@ # b-2 requires d # d conflicts with c # +# e-1 requires d +# e-2 requires c +# use strict; use lib '.', 't'; use helper; @@ -20,12 +23,40 @@ urpmi_addmedia("$name-2 $::pwd/media/$name-2"); test('--split-length 0'); test('--split-level 1'); +test_d('--split-length 0'); +test_d('--split-level 1'); + +test_e('--split-length 0'); +test_e('--split-level 1'); + sub test { my ($option) = @_; urpmi("--media $name-1 --auto a b c"); check_installed_fullnames('a-1-1', 'b-1-1', 'c-1-1'); - urpmi("--media $name-2 $option --auto --auto-select"); + urpmi("--media $name-2 --auto $option --auto-select"); check_installed_fullnames_and_remove('a-1-1', 'b-2-1', 'd-1-1'); } + +sub test_d { + my ($option) = @_; + + urpmi("--media $name-1 --auto a b c"); + check_installed_fullnames('a-1-1', 'b-1-1', 'c-1-1'); + + #- below would need the promotion of "b-2" (upgraded from "b-1") + urpmi("--media $name-2 --auto $option d"); + check_installed_fullnames_and_remove('d-1-1'); +} + +sub test_e { + my ($option) = @_; + + urpmi("--media $name-1 --auto e"); + check_installed_fullnames('d-1-1', 'e-1-1'); + + #- below would need the promotion of "e-2" (upgraded from "e-1") + urpmi("--media $name-2 --auto $option c"); + check_installed_fullnames_and_remove('c-1-1'); +} |