summaryrefslogtreecommitdiffstats
path: root/t/superuser--obsolete-and-conflict.t
diff options
context:
space:
mode:
Diffstat (limited to 't/superuser--obsolete-and-conflict.t')
-rw-r--r--t/superuser--obsolete-and-conflict.t20
1 files changed, 18 insertions, 2 deletions
diff --git a/t/superuser--obsolete-and-conflict.t b/t/superuser--obsolete-and-conflict.t
index 221f224e..8116eaea 100644
--- a/t/superuser--obsolete-and-conflict.t
+++ b/t/superuser--obsolete-and-conflict.t
@@ -1,8 +1,10 @@
#!/usr/bin/perl
# package "a" is split into "b" and "c",
-# where "b" obsoletes "a" and requires "c"
+# where "b" obsoletes/provides "a" and requires "c"
# "c" conflicts with "a" (but can't obsolete it)
+#
+# package "d" requires "a"
use strict;
use lib '.', 't';
@@ -20,5 +22,19 @@ urpmi('a');
check_installed_names('a');
urpmi('b c');
-
check_installed_names('b', 'c');
+
+urpme('b c');
+
+urpmi('a d');
+check_installed_names('a', 'd');
+urpmi('b c');
+check_installed_names('b', 'c', 'd');
+
+urpme('b c d');
+
+urpmi('a d');
+check_installed_names('a', 'd');
+urpmi('--split-level 1 b c');
+# argh, d is removed :-(
+#check_installed_names('b', 'c', 'd');