summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--t/superuser--mirrorlist.t17
1 files changed, 17 insertions, 0 deletions
diff --git a/t/superuser--mirrorlist.t b/t/superuser--mirrorlist.t
new file mode 100644
index 00000000..5555e8f5
--- /dev/null
+++ b/t/superuser--mirrorlist.t
@@ -0,0 +1,17 @@
+#!/usr/bin/perl
+
+use strict;
+use lib '.', 't';
+use helper;
+use Test::More 'no_plan';
+BEGIN { use_ok 'urpm::cfg' }
+
+need_root_and_prepare();
+
+urpmi_addmedia('--mirrorlist \$MIRRORLIST main media/main/release');
+is(run_urpm_cmd('urpmq sed'), "sed\n");
+urpmi_removemedia('main');
+
+urpmi_addmedia('--distrib --mirrorlist \$MIRRORLIST');
+is(run_urpm_cmd('urpmq sed'), "sed\n");
+urpmi_removemedia('-a');