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.t18
1 files changed, 17 insertions, 1 deletions
diff --git a/t/superuser--obsolete-and-conflict.t b/t/superuser--obsolete-and-conflict.t
index 8116eaea..09e04f90 100644
--- a/t/superuser--obsolete-and-conflict.t
+++ b/t/superuser--obsolete-and-conflict.t
@@ -21,7 +21,11 @@ urpmi_addmedia("$name $::pwd/media/$name");
urpmi('a');
check_installed_names('a');
-urpmi('b c');
+test_urpmi("b c", <<'EOF');
+ 1/2: c
+ 2/2: b
+removing package a
+EOF
check_installed_names('b', 'c');
urpme('b c');
@@ -38,3 +42,15 @@ check_installed_names('a', 'd');
urpmi('--split-level 1 b c');
# argh, d is removed :-(
#check_installed_names('b', 'c', 'd');
+
+
+sub test_urpmi {
+ my ($para, $wanted) = @_;
+ my $urpmi = urpmi_cmd();
+ my $s = `$urpmi $para`;
+
+ $s =~ s/\s*#{40}#*//g;
+ $s =~ s/.*\nPreparing\.\.\.\n//s;
+
+ ok($s eq $wanted, "$wanted in $s");
+}