File tree Expand file tree Collapse file tree
test/testcases/choicerules Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #
2+ # Rule #2:
3+ # !A-2-1.noarch [3] (w1)
4+ # B-2-1.noarch [4] (w2)
5+ # C-2-1.noarch [5]
6+ #
7+ # ==> Choice Rule
8+ # !A-2-1.noarch [3] (w1)
9+ # B-2-1.noarch [4] (w2)
10+ #
11+ repo system 0 testtags <inline >
12+ # >=Pkg: B 1 1 noarch
13+ # >=Prv: P = 1
14+ repo available 0 testtags <inline >
15+ # >=Pkg: A 2 1 noarch
16+ # >=Req: P = 2
17+ # >=Pkg: B 2 1 noarch
18+ # >=Prv: P = 2
19+ # >=Pkg: C 2 1 noarch
20+ # >=Prv: P = 2
21+ system i686 rpm system
22+
23+ job install name A
24+ result transaction,problems <inline >
25+ result transaction,problems <inline >
26+ # >install A-2-1.noarch@available
27+ # >upgrade B-1-1.noarch@system B-2-1.noarch@available
Original file line number Diff line number Diff line change 1+ repo system 0 testtags <inline >
2+ # >=Pkg: B 1 1 noarch
3+ # >=Prv: P = 1
4+ repo available 0 testtags <inline >
5+ # >=Pkg: X 1 1 noarch
6+ # >=Pkg: Y 1 1 noarch
7+ # >=Pkg: A 2 1 noarch
8+ # >=Req: P = 2 <IF> (X & Y)
9+ # >=Pkg: B 2 1 noarch
10+ # >=Prv: P = 2
11+ # >=Pkg: C 2 1 noarch
12+ # >=Prv: P = 2
13+ system i686 rpm system
14+
15+ job install name A
16+ result transaction,problems <inline >
17+ result transaction,problems <inline >
18+ # >install A-2-1.noarch@available
Original file line number Diff line number Diff line change 1+ #
2+ # Test that updating package B will update package A
3+ # instead of pulling in new package C
4+ #
5+ # Rule #5:
6+ # !A-2-2.noarch [5] (w1)
7+ # B-2-1.noarch [6] (w2)
8+ # C-2-1.noarch [8]
9+ # Rule #7:
10+ # !A-2-1.noarch [4] (w1)
11+ # B-2-1.noarch [6] (w2)
12+ # C-2-1.noarch [8]
13+ # Rule #8:
14+ # !A-1-1.noarch [2]I (w1)
15+ # B-1-1.noarch [3]I (w2)
16+ # C-1-1.noarch [7]
17+ #
18+ # ==> Choice Rule for #8:
19+ # !A-1-1.noarch [2]I (w1)
20+ # B-1-1.noarch [3]I (w2)
21+ #
122repo system 0 testtags <inline >
223# >=Pkg: A 1 1 noarch
324# >=Req: P = 1
Original file line number Diff line number Diff line change 1+ #
2+ # Test that updating package B will update package A
3+ # instead of pulling in new package C
4+ #
5+ # Rule #5:
6+ # !A-2-2.noarch [5] (w1)
7+ # B-2-1.noarch [6] (w2)
8+ # C-2-1.noarch [8]
9+ # Rule #7:
10+ # !A-2-1.noarch [4] (w1)
11+ # B-2-1.noarch [6] (w2)
12+ # C-2-1.noarch [8]
13+ # Rule #8:
14+ # !A-1-1.noarch [2]I (w1)
15+ # B-1-1.noarch [3]I (w2)
16+ # C-1-1.noarch [7]
17+ #
18+ # ==> Choice Rule for #8:
19+ # !A-1-1.noarch [2]I (w1)
20+ # B-1-1.noarch [3]I (w2)
21+ #
22+ repo system 0 testtags <inline >
23+ # >=Pkg: A 1 1 noarch
24+ # >=Req: P = 1
25+ # >=Pkg: B 1 1 noarch
26+ # >=Prv: P = 1
27+ repo available 0 testtags <inline >
28+ # >=Pkg: A 1 1 noarch
29+ # >=Req: P = 1
30+ # >=Pkg: B 1 1 noarch
31+ # >=Prv: P = 1
32+ # >=Pkg: A 2 1 noarch
33+ # >=Req: P = 2
34+ # >=Pkg: A 2 2 noarch
35+ # >=Req: P = 2
36+ # >=Pkg: B 2 1 noarch
37+ # >=Prv: P = 2
38+ # >=Pkg: C 1 1 noarch
39+ # >=Prv: P = 1
40+ # >=Pkg: C 2 1 noarch
41+ # >=Prv: P = 2
42+ system i686 rpm system
43+
44+ job update name B
45+ result transaction,problems <inline >
46+ # >upgrade A-1-1.noarch@system A-2-2.noarch@available
47+ # >upgrade B-1-1.noarch@system B-2-1.noarch@available
Original file line number Diff line number Diff line change 1+ # Do not block an update because of a choice rule
2+ #
3+ # Rule #3:
4+ # !B-1-1.noarch [4] (w1)
5+ # A-1-1.noarch [2]I (w2)
6+ # Anew-2-1.noarch [6]
7+ # Rule #4:
8+ # !B-1-1.noarch [3]I (w1)
9+ # A-1-1.noarch [2]I (w2)
10+ # Anew-2-1.noarch [6]
11+ #
12+ # ==> No choice rule for Rule#4!
13+ # ==> Choice Rule for #3:
14+ # !B-1-1.noarch [4] (w1)
15+ # A-1-1.noarch [2]I (w2)
16+ #
117repo system 0 testtags <inline >
218# >=Pkg: A 1 1 noarch
319# >=Prv: libA
Original file line number Diff line number Diff line change 1+ # Do not block an update because of a choice rule
2+ #
3+ # Rule #3:
4+ # !B-1-1.noarch [4] (w1)
5+ # A-1-1.noarch [2]I (w2)
6+ # Anew-2-1.noarch [6]
7+ # Rule #4:
8+ # !B-1-1.noarch [3]I (w1)
9+ # A-1-1.noarch [2]I (w2)
10+ # Anew-2-1.noarch [6]
11+ #
12+ # ==> No choice rule for Rule#4!
13+ # ==> Choice Rule for #3:
14+ # !B-1-1.noarch [4] (w1)
15+ # A-1-1.noarch [2]I (w2)
16+ #
17+ repo system 0 testtags <inline >
18+ # >=Pkg: A 1 1 noarch
19+ # >=Prv: libA
20+ # >=Pkg: B 1 1 noarch
21+ # >=Req: libA
22+ repo available 0 testtags <inline >
23+ # >=Pkg: A 2 1 noarch
24+ # >=Pkg: Anew 2 1 noarch
25+ # >=Prv: libA
26+ system i686 rpm system
27+
28+ job update all packages
29+ result transaction,problems <inline >
30+ # >install Anew-2-1.noarch@available
31+ # >upgrade A-1-1.noarch@system A-2-1.noarch@available
Original file line number Diff line number Diff line change 1+ # This tests that A is updated instead of Anew being installed
2+ #
3+ # Rule #4:
4+ # !B-2-2.noarch [11] (w1)
5+ # A-2-2.noarch [9] (w2)
6+ # Anew-2-2.noarch [10]
7+ # Rule #11:
8+ # !B-2-1.noarch [8] (w1)
9+ # A-2-1.noarch [6] (w2)
10+ # Anew-2-1.noarch [7]
11+ #
12+ # Choice Rule for #4:
13+ # !B-2-2.noarch [11] (w1)
14+ # A-2-2.noarch [9] (w2)
15+ # Choice Rule for #11
16+ # !B-2-1.noarch [8] (w1)
17+ # A-2-1.noarch [6] (w2)
18+ #
119repo system 0 testtags <inline >
220# >=Pkg: A 1 1 noarch
321# >=Prv: libA = 1-1
Original file line number Diff line number Diff line change 1+ #
2+ # test that a package split does not update unrelated packages
3+ #
4+ repo system 0 testtags <inline >
5+ # >=Pkg: A 1 1 noarch
6+ # >=Prv: libA
7+ # >=Pkg: B 1 1 noarch
8+ # >=Req: libA
9+ repo available 0 testtags <inline >
10+ # >=Pkg: A 1 1 noarch
11+ # >=Prv: libA
12+ # >=Pkg: A 2 1 noarch
13+ # >=Pkg: Asplit 2 1 noarch
14+ # >=Prv: libA
15+ # >=Pkg: B 2 1 noarch
16+ # >=Req: libA
17+ system i686 rpm system
18+ job update name A
19+ result transaction,problems <inline >
20+ # >install Asplit-2-1.noarch@available
21+ # >upgrade A-1-1.noarch@system A-2-1.noarch@available
Original file line number Diff line number Diff line change 1+ # Rule #4:
2+ # !php-fpm-7.2.24-1.noarch [5] (w1)
3+ # glibc-2.17-325.noarch [2]I (w2)
4+ # libcrypt-4.1.1-6.noarch [7]
5+ # => no choice rule for #4
6+ #
7+ repo @ System 0 testtags <inline >
8+ # >=Pkg: glibc 2.17 325 noarch
9+ # >=Prv: libcrypt
10+ # >=Pkg: php 5.4.16 48 noarch
11+ repo available 0 testtags <inline >
12+ # >=Pkg: php 7.2.24 1 noarch
13+ # >=Rec: php-fpm = 7.2.24-1
14+ # >=Pkg: php-fpm 7.2.24 1 noarch
15+ # >=Req: libcrypt
16+ # >=Pkg: php-fpm 8.0.13 2 noarch
17+ # >=Req: libcrypt
18+ # >=Pkg: libcrypt 4.1.1 6 noarch
19+ # >=Req: libc
20+ # >=Pkg: glibc 2.28 181 noarch
21+ # >=Prv: libc
22+ system i686 rpm @ System
23+ job update all packages
24+ result transaction,problems <inline >
25+ # >install libcrypt-4.1.1-6.noarch@available
26+ # >install php-fpm-7.2.24-1.noarch@available
27+ # >upgrade glibc-2.17-325.noarch@@System glibc-2.28-181.noarch@available
28+ # >upgrade php-5.4.16-48.noarch@@System php-7.2.24-1.noarch@available
You can’t perform that action at this time.
0 commit comments