Imported Upstream version 0.7.20
[platform/upstream/libsolv.git] / test / testcases / favor / recommends.t
1 repo system 0 empty
2 repo test 0 testtags <inline>
3 #>=Ver: 2.0
4 #>=Pkg: A 1 1 noarch
5 #>=Rec: X
6 #>=Pkg: B 1 1 noarch
7 #>=Prv: X
8 #>=Pkg: C 1 1 noarch
9 #>=Prv: X
10 system unset * system
11
12 # first favor B
13 job install name A
14 job favor name B
15 result transaction,problems <inline>
16 #>install A-1-1.noarch@test
17 #>install B-1-1.noarch@test
18
19 # then favor C
20 nextjob
21 job install name A
22 job favor name C
23 result transaction,problems <inline>
24 #>install A-1-1.noarch@test
25 #>install C-1-1.noarch@test
26
27 # check disfavor 
28 nextjob
29 job install name A
30 job disfavor name B
31 result transaction,problems <inline>
32 #>install A-1-1.noarch@test
33 #>install C-1-1.noarch@test
34
35 nextjob
36 job install name A
37 job disfavor name C
38 result transaction,problems <inline>
39 #>install A-1-1.noarch@test
40 #>install B-1-1.noarch@test
41
42 # check disfavor both, this is different from
43 # the requires case
44
45 nextjob
46 job install name A
47 job disfavor name B
48 job disfavor name C
49 result transaction,problems <inline>
50 #>install A-1-1.noarch@test