summaryrefslogtreecommitdiffstats
path: root/t/superuser--failing-promotion.t
blob: 055cbcdebb28b619912472c878022170e6a949ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/perl
#
# testcase for bug #50666
#
# b-1 requires c
# b-2 requires c
# c-1 requires a-1
# c-2 requires d
# d does not exist
#
# user has a-1, b-1, c-1 installed
# trying to upgrade a has to remove b, c
#
use strict;
use lib '.', 't';
use helper;
use urpm::util;
use Test::More 'no_plan';

need_root_and_prepare();

my $name = 'failing-promotion';
urpmi_addmedia("$name $::pwd/media/$name");

urpmi("--auto a-1 c-1 b-1");
check_installed_fullnames("a-1-1", "c-1-1", "b-1-1");
urpmi("--auto a");
check_installed_fullnames("a-2-1");