summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-09-23 15:35:42 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-09-23 15:35:42 +0000
commit0ff68bc2ce17ed97d22575c250c1d569638c1801 (patch)
treeb96d13063852d4641b47d0bbd4d226291a48aa9e /t
parentc8ad0b363a3c21434f73e8fd921e41637a83d26b (diff)
downloadurpmi-0ff68bc2ce17ed97d22575c250c1d569638c1801.tar
urpmi-0ff68bc2ce17ed97d22575c250c1d569638c1801.tar.gz
urpmi-0ff68bc2ce17ed97d22575c250c1d569638c1801.tar.bz2
urpmi-0ff68bc2ce17ed97d22575c250c1d569638c1801.tar.xz
urpmi-0ff68bc2ce17ed97d22575c250c1d569638c1801.zip
test reconfig.urpmi
Diffstat (limited to 't')
-rw-r--r--t/02create_pkgs.t3
-rw-r--r--t/data/reconfig.urpmi2
-rw-r--r--t/superuser--addmedia.t9
3 files changed, 14 insertions, 0 deletions
diff --git a/t/02create_pkgs.t b/t/02create_pkgs.t
index 3a333686..fc1fd341 100644
--- a/t/02create_pkgs.t
+++ b/t/02create_pkgs.t
@@ -50,6 +50,9 @@ foreach my $spec (glob("data/SPECS/srpm*.spec")) {
genhdlist_std($name);
}
+mkdir 'media/reconfig';
+system_("cp -r data/reconfig.urpmi media/reconfig");
+
mkdir 'media/media_info';
system_("cp -r data/media.cfg media/media_info");
system_('gendistrib -s .');
diff --git a/t/data/reconfig.urpmi b/t/data/reconfig.urpmi
new file mode 100644
index 00000000..32251f83
--- /dev/null
+++ b/t/data/reconfig.urpmi
@@ -0,0 +1,2 @@
+# this is an urpmi reconfiguration file
+/reconfig /various
diff --git a/t/superuser--addmedia.t b/t/superuser--addmedia.t
index 30d7fdda..1c1c41b2 100644
--- a/t/superuser--addmedia.t
+++ b/t/superuser--addmedia.t
@@ -15,6 +15,8 @@ my @names = ($name, $name2, $name3, 'bis');
my @fields = qw(hdlist synthesis with_synthesis media_info_dir no-media-info list virtual ignore);
+test_reconfig();
+
try_media_d_1();
try_media_d_2();
@@ -165,3 +167,10 @@ sub try_media_d_2 {
ok(unlink media_d_cfg($name));
}
+
+sub test_reconfig {
+ urpmi_addmedia("reconfig $::pwd/media/reconfig");
+ check_conf({ name => 'reconfig', url => "$::pwd/media/$name" });
+ check_urpmi($name);
+ urpmi_removemedia('-a');
+}