Imported Upstream version 0.6.16
[platform/upstream/libsolv.git] / test / testcases / distupgrade / dup_multiversion2.t
1 # test dup with multiversion packages
2 # same as with dup_multiversion1, but we can't keep the orphan
3
4 #
5 # part 1: simple update
6 repo system 0 testtags <inline>
7 #>=Pkg: a 1 1 i686
8 #>=Pkg: b 1 1 i686
9 repo available 0 testtags <inline>
10 #>=Pkg: a 2 1 i686
11 #>=Pkg: b 2 1 i686
12 #>=Con: a = 1-1
13 system i686 * system
14
15 job multiversion name a
16 job distupgrade all packages
17 result transaction,problems <inline>
18 #>erase a-1-1.i686@system
19 #>install a-2-1.i686@available
20 #>upgrade b-1-1.i686@system b-2-1.i686@available
21
22 nextjob
23
24 job multiversion name a
25 job distupgrade repo available
26 result transaction,problems <inline>
27 #>erase a-1-1.i686@system
28 #>install a-2-1.i686@available
29 #>upgrade b-1-1.i686@system b-2-1.i686@available
30
31
32 ### same with keeporphans, this will result in problems as we cannot keep the orphan
33
34 nextjob
35
36 solverflags keeporphans
37 job multiversion name a
38 job distupgrade all packages
39 result transaction,problems <inline>
40 #>install a-2-1.i686@available
41 #>problem 4d4de423 info package b-2-1.i686 conflicts with a = 1-1 provided by a-1-1.i686
42 #>problem 4d4de423 solution 2cf4745c erase a-1-1.i686@system
43 #>problem 4d4de423 solution 2cf4745c replace a-1-1.i686@system a-2-1.i686@available
44 #>problem 4d4de423 solution 5a433aff allow b-1-1.i686@system
45 #>problem 4d4de423 solution ce4305f2 erase b-1-1.i686@system
46
47 nextjob
48
49 solverflags keeporphans
50 job multiversion name a
51 job distupgrade repo available
52 result transaction,problems <inline>
53 #>install a-2-1.i686@available
54 #>problem 4d4de423 info package b-2-1.i686 conflicts with a = 1-1 provided by a-1-1.i686
55 #>problem 4d4de423 solution 2cf4745c erase a-1-1.i686@system
56 #>problem 4d4de423 solution 2cf4745c replace a-1-1.i686@system a-2-1.i686@available
57 #>problem 4d4de423 solution 5a433aff allow b-1-1.i686@system
58 #>problem 4d4de423 solution ce4305f2 erase b-1-1.i686@system
59
60 ### same with allowuninstall
61
62 nextjob
63
64 solverflags allowuninstall
65 job multiversion name a
66 job distupgrade all packages
67 result transaction,problems <inline>
68 #>erase a-1-1.i686@system
69 #>install a-2-1.i686@available
70 #>upgrade b-1-1.i686@system b-2-1.i686@available
71
72 nextjob
73
74 solverflags allowuninstall
75 job multiversion name a
76 job distupgrade repo available
77 result transaction,problems <inline>
78 #>erase a-1-1.i686@system
79 #>install a-2-1.i686@available
80 #>upgrade b-1-1.i686@system b-2-1.i686@available
81
82
83 ### same with allowuninstall and keeporphans
84
85 nextjob
86
87 solverflags allowuninstall keeporphans
88 job multiversion name a
89 job distupgrade all packages
90 # a-1-1 is treated as orphaned and stays behind
91 result transaction,problems <inline>
92 #>erase a-1-1.i686@system
93 #>install a-2-1.i686@available
94 #>upgrade b-1-1.i686@system b-2-1.i686@available
95
96
97
98 nextjob
99
100 solverflags allowuninstall keeporphans
101 job multiversion name a
102 job distupgrade repo available
103 # a-1-1 is treated as orphaned and stays behind
104 result transaction,problems <inline>
105 #>erase a-1-1.i686@system
106 #>install a-2-1.i686@available
107 #>upgrade b-1-1.i686@system b-2-1.i686@available
108
109