Add ENABLE_COMPLEX_DEPS flag
[platform/upstream/libsolv.git] / test / testcases / favor / supplements.t
1 repo system 0 empty
2 repo test 0 testtags <inline>
3 #>=Ver: 2.0
4 #>=Pkg: A 1 1 noarch
5 #>=Pkg: B 1 1 noarch
6 #>=Sup: A
7 #>=Pkg: C 1 1 noarch
8 #>=Sup: A
9 #>=Pkg: A2 1 1 noarch
10 #>=Pkg: B2 1 1 noarch
11 #>=Sup: A2
12 #>=Pkg: C2 1 1 noarch
13 #>=Sup: A2
14 #>=Con: B2
15 system unset * system
16
17 # first favor B
18 job install name A
19 job favor name B
20 result transaction,problems <inline>
21 #>install A-1-1.noarch@test
22 #>install B-1-1.noarch@test
23 #>install C-1-1.noarch@test
24
25 # then favor C
26 nextjob
27 job install name A
28 job favor name C
29 result transaction,problems <inline>
30 #>install A-1-1.noarch@test
31 #>install B-1-1.noarch@test
32 #>install C-1-1.noarch@test
33
34 # same with A2 where B2 and C2 conflict
35
36 nextjob
37 job install name A2
38 job favor name B2
39 result transaction,problems <inline>
40 #>install A2-1-1.noarch@test
41 #>install B2-1-1.noarch@test
42
43 nextjob
44 job install name A2
45 job favor name C2
46 result transaction,problems <inline>
47 #>install A2-1-1.noarch@test
48 #>install C2-1-1.noarch@test
49
50
51 # check disfavor 
52 nextjob
53 job install name A
54 job disfavor name B
55 result transaction,problems <inline>
56 #>install A-1-1.noarch@test
57 #>install C-1-1.noarch@test
58
59 nextjob
60 job install name A
61 job disfavor name C
62 result transaction,problems <inline>
63 #>install A-1-1.noarch@test
64 #>install B-1-1.noarch@test
65
66 nextjob
67 job install name A
68 job disfavor name B
69 job disfavor name C
70 result transaction,problems <inline>
71 #>install A-1-1.noarch@test