Imported Upstream version 0.6.11
[platform/upstream/libsolv.git] / test / testcases / targeted / targeted_up.t
1 repo system 0 testtags <inline>
2 #>=Pkg: A 1 1 noarch
3 #>=Pkg: D 1 1 noarch
4 #>=Pkg: Z 1 1 noarch
5 #>=Con: D = 2-1
6 repo available 0 testtags <inline>
7 #>=Pkg: A 2 1 noarch
8 #>=Pkg: B 1 0 noarch
9 #>=Obs: A
10 #>=Pkg: C 1 0 noarch
11 #>=Obs: A = 1-1
12 #>=Pkg: D 2 1 noarch
13 #>=Pkg: D 3 1 noarch
14 system unset * system
15
16 # first check untargeted
17 job update name A = 1-1
18 result transaction,problems <inline>
19 #>erase A-1-1.noarch@system B-1-0.noarch@available
20 #>install B-1-0.noarch@available
21
22 # then targeted to A-2-1
23 nextjob
24 job update name A = 2-1
25 result transaction,problems <inline>
26 #>upgrade A-1-1.noarch@system A-2-1.noarch@available
27
28 # then targeted to B
29 nextjob
30 job update name B
31 result transaction,problems <inline>
32 #>erase A-1-1.noarch@system B-1-0.noarch@available
33 #>install B-1-0.noarch@available
34
35 # first check forced to targeted
36 nextjob
37 job update name A = 1-1 [targeted]
38 result transaction,problems <inline>
39
40 # second check forced to untargeted
41 nextjob
42 solverflags noautotarget
43 job distupgrade name A = 2-1
44 result transaction,problems <inline>
45
46 # then targeted to D
47 nextjob
48 job update name D
49 result transaction,problems <inline>
50 #>upgrade D-1-1.noarch@system D-3-1.noarch@available
51
52 # then targeted to D-2-1 (should not go to D-3-1)
53 nextjob
54 job update name D = 2-1
55 result transaction,problems <inline>
56