summaryrefslogtreecommitdiffstats
path: root/t/superuser--media_info_dir.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-30 17:57:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-30 17:57:43 +0000
commit62c1446f09cc16428431510218e5e4f1e06271f3 (patch)
treea0a3601c5138ac60d2a92752b196ab6bea6c4008 /t/superuser--media_info_dir.t
parent981c22ad5c1752789bbccd1e09302c2123d930d2 (diff)
downloadurpmi-62c1446f09cc16428431510218e5e4f1e06271f3.tar
urpmi-62c1446f09cc16428431510218e5e4f1e06271f3.tar.gz
urpmi-62c1446f09cc16428431510218e5e4f1e06271f3.tar.bz2
urpmi-62c1446f09cc16428431510218e5e4f1e06271f3.tar.xz
urpmi-62c1446f09cc16428431510218e5e4f1e06271f3.zip
more tests, clean some others, enhance helper.pm
Diffstat (limited to 't/superuser--media_info_dir.t')
-rw-r--r--t/superuser--media_info_dir.t19
1 files changed, 19 insertions, 0 deletions
diff --git a/t/superuser--media_info_dir.t b/t/superuser--media_info_dir.t
new file mode 100644
index 00000000..bfa2be56
--- /dev/null
+++ b/t/superuser--media_info_dir.t
@@ -0,0 +1,19 @@
+#!/usr/bin/perl
+
+use strict;
+use lib '.', 't';
+use helper;
+use Test::More 'no_plan';
+
+
+need_root_and_prepare();
+
+my $name = 'various';
+
+foreach my $medium_name ('various', 'various_nohdlist', 'various_no_subdir') {
+ urpmi_addmedia("$medium_name $::pwd/media/$medium_name");
+ urpmi($name);
+ is(`rpm -qa --root $::pwd/root`, "$name-1-1\n");
+ urpme($name);
+ urpmi_removemedia($medium_name);
+}