summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-04-30 10:24:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-04-30 10:24:42 +0000
commit4e4ad2677c430f39e67bfe61f3d37351650a8a88 (patch)
treee4c9747816f40beb209ee1537ea399c594000ba7 /t
parent4b6896aca1616a51db17924caa53e10b4cc44569 (diff)
downloadurpmi-4e4ad2677c430f39e67bfe61f3d37351650a8a88.tar
urpmi-4e4ad2677c430f39e67bfe61f3d37351650a8a88.tar.gz
urpmi-4e4ad2677c430f39e67bfe61f3d37351650a8a88.tar.bz2
urpmi-4e4ad2677c430f39e67bfe61f3d37351650a8a88.tar.xz
urpmi-4e4ad2677c430f39e67bfe61f3d37351650a8a88.zip
check the output displays "removing package a"
Diffstat (limited to '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");
+}