summaryrefslogtreecommitdiffstats
path: root/t/superuser--media_info_dir.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-11-28 16:29:50 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-11-28 16:29:50 +0000
commit35866f31002d9f21fdfa4f79ccf41bfbd46626c4 (patch)
tree32512a35e1118ed8bc7c8cf9d89375a181c9f3a0 /t/superuser--media_info_dir.t
parentfd59a6a784454262d89cfe039fe4b0d00235b273 (diff)
downloadurpmi-35866f31002d9f21fdfa4f79ccf41bfbd46626c4.tar
urpmi-35866f31002d9f21fdfa4f79ccf41bfbd46626c4.tar.gz
urpmi-35866f31002d9f21fdfa4f79ccf41bfbd46626c4.tar.bz2
urpmi-35866f31002d9f21fdfa4f79ccf41bfbd46626c4.tar.xz
urpmi-35866f31002d9f21fdfa4f79ccf41bfbd46626c4.zip
add a test for "urpmq --fuzzy"
Diffstat (limited to 't/superuser--media_info_dir.t')
-rw-r--r--t/superuser--media_info_dir.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/superuser--media_info_dir.t b/t/superuser--media_info_dir.t
index 2173014c..75bca982 100644
--- a/t/superuser--media_info_dir.t
+++ b/t/superuser--media_info_dir.t
@@ -8,6 +8,7 @@ use Test::More 'no_plan';
need_root_and_prepare();
various();
+urpmq_various();
rpm_v3();
sub various {
@@ -21,6 +22,17 @@ sub various {
}
}
+sub urpmq_various {
+ foreach my $medium_name ('various', 'various2', 'various3') {
+ urpmi_addmedia("'$medium_name' '$::pwd/media/$medium_name'");
+ }
+ my $cmd = urpm_cmd('urpmq') . " --fuzzy v";
+ warn "# $cmd\n";
+ my $out = `$cmd`;
+ is($out, "various\nvarious2\nvarious3\n");
+ urpmi_removemedia('-a');
+}
+
sub rpm_v3 {
my @names = qw(libtermcap nls p2c);