summaryrefslogtreecommitdiffstats
path: root/t/superuser--addmedia.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-14 10:47:50 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-14 10:47:50 +0000
commitdf55c40c5806b754c3ca717a3d79a853c2c9982c (patch)
tree03d67eef378fcab884b103f0a1817c7a62b3da9c /t/superuser--addmedia.t
parentfea31ffed0e831f446c6a4518483f24ae72a7588 (diff)
downloadurpmi-df55c40c5806b754c3ca717a3d79a853c2c9982c.tar
urpmi-df55c40c5806b754c3ca717a3d79a853c2c9982c.tar.gz
urpmi-df55c40c5806b754c3ca717a3d79a853c2c9982c.tar.bz2
urpmi-df55c40c5806b754c3ca717a3d79a853c2c9982c.tar.xz
urpmi-df55c40c5806b754c3ca717a3d79a853c2c9982c.zip
- urpmi handles /etc/urpmi/media.d/*.cfg
as an alternative to using urpmi.addmedia nb: need documentation
Diffstat (limited to 't/superuser--addmedia.t')
-rw-r--r--t/superuser--addmedia.t22
1 files changed, 22 insertions, 0 deletions
diff --git a/t/superuser--addmedia.t b/t/superuser--addmedia.t
index 63b9fb34..f6701a3e 100644
--- a/t/superuser--addmedia.t
+++ b/t/superuser--addmedia.t
@@ -14,6 +14,9 @@ my $name3 = 'various3';
my @fields = qw(hdlist synthesis with_synthesis media_info_dir no-media-info list virtual ignore);
+try_media_d_1();
+try_media_d_2();
+
try_medium({}, '');
@@ -150,3 +153,22 @@ sub check_urpmi {
urpmi(join(' ', @names));
check_installed_and_remove(@names);
}
+
+sub try_media_d_1 {
+ create_media_d_cfg($name, { name => $name, url => "$::pwd/media/$name" });
+ check_urpmi($name);
+
+ create_media_d_cfg($name2, { name => $name2, url => "$::pwd/media/$name2" });
+ check_urpmi($name2);
+
+ ok(unlink media_d_cfg($name));
+ ok(unlink media_d_cfg($name2));
+}
+sub try_media_d_2 {
+ create_media_d_cfg($name,
+ { name => $name, url => "$::pwd/media/$name" },
+ { name => $name2, url => "$::pwd/media/$name2" });
+ check_urpmi($name, $name2);
+
+ ok(unlink media_d_cfg($name));
+}