8be31901e5999262a9adbfa3ed4ecc69b74f9654
[platform/upstream/libsolv.git] / test / testcases / distupgrade / dup_multiversion3.t
1 # test dup with multiversion packages where we cannot install the
2 # target. Should give problems except for allowuninstall.
3 #
4 # part 1: simple update
5 repo system 0 testtags <inline>
6 #>=Pkg: a 1 1 i686
7 repo available 0 testtags <inline>
8 #>=Pkg: a 2 1 i686
9 #>=Req: c
10 system i686 * system
11
12 job multiversion name a
13 job distupgrade all packages
14 result transaction,problems <inline>
15 #>problem 251f1f35 info nothing provides c needed by a-2-1.i686
16 #>problem 251f1f35 solution 2f2d254c allow a-1-1.i686@system
17
18 nextjob
19
20 job multiversion name a
21 job distupgrade repo available
22 result transaction,problems <inline>
23 #>erase a-1-1.i686@system
24 #>problem 251f1f35 info nothing provides c needed by a-2-1.i686
25 #>problem 251f1f35 solution 2f2d254c allow a-1-1.i686@system
26
27 ### same with keeporphans
28
29 nextjob
30
31 solverflags keeporphans
32 job multiversion name a
33 job distupgrade all packages
34 result transaction,problems <inline>
35 #>problem 771581fd info nothing provides c needed by a-2-1.i686
36 #>problem 771581fd solution 179b72ed allow a-1-1.i686@system
37 #>problem 771581fd solution 2cf4745c erase a-1-1.i686@system
38
39 nextjob
40
41 solverflags keeporphans
42 job multiversion name a
43 job distupgrade repo available
44 result transaction,problems <inline>
45 #>problem 771581fd info nothing provides c needed by a-2-1.i686
46 #>problem 771581fd solution 179b72ed allow a-1-1.i686@system
47 #>problem 771581fd solution 2cf4745c erase a-1-1.i686@system
48
49 ### same with allowuninstall
50
51 nextjob
52
53 solverflags allowuninstall
54 job multiversion name a
55 job distupgrade all packages
56 result transaction,problems <inline>
57 #>erase a-1-1.i686@system
58
59
60 nextjob
61
62 solverflags allowuninstall
63 job multiversion name a
64 job distupgrade repo available
65 result transaction,problems <inline>
66 #>erase a-1-1.i686@system
67
68
69 ### same with allowuninstall and keeporphans
70
71 nextjob
72
73 solverflags allowuninstall keeporphans
74 job multiversion name a
75 job distupgrade all packages
76 result transaction,problems <inline>
77 #>erase a-1-1.i686@system
78
79
80 nextjob
81
82 solverflags allowuninstall keeporphans
83 job multiversion name a
84 job distupgrade repo available
85 result transaction,problems <inline>
86 #>erase a-1-1.i686@system
87
88