diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-02-25 09:30:56 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-02-25 09:30:56 +0000 |
commit | c2b0bf2e3e43159d0e782a04f5ed8a852ed6c436 (patch) | |
tree | 5b7f2db2b55777f58f93419d3d0faa80c92824e2 /t/superuser--mirrorlist.t | |
parent | a1b3f72f35afe3672b7f1fec1ba862120283f44a (diff) | |
download | urpmi-c2b0bf2e3e43159d0e782a04f5ed8a852ed6c436.tar urpmi-c2b0bf2e3e43159d0e782a04f5ed8a852ed6c436.tar.gz urpmi-c2b0bf2e3e43159d0e782a04f5ed8a852ed6c436.tar.bz2 urpmi-c2b0bf2e3e43159d0e782a04f5ed8a852ed6c436.tar.xz urpmi-c2b0bf2e3e43159d0e782a04f5ed8a852ed6c436.zip |
add a simple test case for mirrorlist
Diffstat (limited to 't/superuser--mirrorlist.t')
-rw-r--r-- | t/superuser--mirrorlist.t | 17 |
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'); |