summaryrefslogtreecommitdiffstats
path: root/t/superuser--arch_to_noarch.t
diff options
context:
space:
mode:
Diffstat (limited to 't/superuser--arch_to_noarch.t')
-rw-r--r--t/superuser--arch_to_noarch.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/superuser--arch_to_noarch.t b/t/superuser--arch_to_noarch.t
new file mode 100644
index 00000000..3224ea87
--- /dev/null
+++ b/t/superuser--arch_to_noarch.t
@@ -0,0 +1,18 @@
+#!/usr/bin/perl
+
+use strict;
+use Test::More 'no_plan';
+
+chdir 't' if -d 't';
+require './helper.pm';
+
+helper::need_root_and_prepare();
+
+my $name = 'arch_to_noarch';
+
+foreach my $nb (1 .. 4) {
+ my $medium_name = "${name}_$nb";
+ helper::urpmi_addmedia("$medium_name $::pwd/media/$medium_name");
+ helper::urpmi("$name");
+ is(`rpm -qa --root $::pwd/root`, "$name-$nb-1\n");
+}