summaryrefslogtreecommitdiffstats
path: root/t/superuser--split-transactions--promote.t
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-03-20 18:32:07 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-03-20 18:32:07 +0000
commit3f308b8ee074d04033406dfab634703ab464ba04 (patch)
tree07b45a10c2c5c1aecfedab703f916ffc15ee1b49 /t/superuser--split-transactions--promote.t
parentc4c74f75eb386504370ffdca8e2f119a55ada108 (diff)
downloadurpmi-3f308b8ee074d04033406dfab634703ab464ba04.tar
urpmi-3f308b8ee074d04033406dfab634703ab464ba04.tar.gz
urpmi-3f308b8ee074d04033406dfab634703ab464ba04.tar.bz2
urpmi-3f308b8ee074d04033406dfab634703ab464ba04.tar.xz
urpmi-3f308b8ee074d04033406dfab634703ab464ba04.zip
Test case from Anssi Hannula for bug #47803
Diffstat (limited to 't/superuser--split-transactions--promote.t')
-rw-r--r--t/superuser--split-transactions--promote.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/superuser--split-transactions--promote.t b/t/superuser--split-transactions--promote.t
index 69b8e208..112afe95 100644
--- a/t/superuser--split-transactions--promote.t
+++ b/t/superuser--split-transactions--promote.t
@@ -11,6 +11,11 @@
#
# h-1 conflicts with g-2
#
+# i requires j
+# j1 provides j and requires k
+# j2 provides j
+# k1-1 provides k, but not k1-2
+#
use strict;
use lib '.', 't';
use helper;
@@ -43,6 +48,9 @@ sub test {
#- below need the promotion of "h-2" (upgraded from "h-1") to work
test_gh("$split g");
+
+ #- below need the promotion of "j2" (replacing removed j1) to work
+ test_ijk("$split k1");
}
sub test_conflict {
test_conflict_ef();
@@ -89,6 +97,16 @@ sub test_gh {
check_installed_fullnames_and_remove('g-2-1', 'h-2-1');
}
+sub test_ijk {
+ my ($para) = @_;
+
+ urpmi("--media $name-1 --auto i");
+ check_installed_names('i', 'j1', 'k1');
+
+ urpmi("--media $name-2 --auto $para");
+ check_installed_fullnames_and_remove('i-1-1', 'j2-1-1', 'k1-2-1');
+}
+
sub test_conflict_ef {
my ($para) = @_;