Imported Upstream version 0.6.28
[platform/upstream/libsolv.git] / test / testcases / strongrecommends / break.t
1 #
2 # A recommends B and B recommends C
3 #
4 # With strongrecommends, we get the following
5 # rules:
6 #   A -> B
7 #   B -> C
8 # after pkg rules sorting, this will be (-B is less than -A)
9 #   B -> C (weak)
10 #   A -> B (weak)
11 # If just the last weak rule is broken, only A will be
12 # installed but but B. So the code now breaks all weak
13 # recommends rules.
14 repo system 0 testtags <inline>
15 #>=Pkg: X 1 1 noarch
16 #>=Con: C
17 repo available 0 testtags <inline>
18 #>=Pkg: A 1 2 noarch
19 #>=Rec: B
20 #>=Pkg: B 1 1 noarch
21 #>=Rec: C
22 #>=Pkg: C 1 1 noarch
23 system i686 rpm system
24 solverflags strongrecommends
25 job install name A
26 result transaction,problems <inline>
27 #>install A-1-2.noarch@available
28 #>install B-1-1.noarch@available