Skip to content

Commit e90ef86

Browse files
committed
Add testcase for the last commit
1 parent 841ea42 commit e90ef86

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

ext/testcase.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,6 +1818,7 @@ static struct rclass2str {
18181818
{ SOLVER_RULE_LEARNT, "learnt" },
18191819
{ SOLVER_RULE_BEST, "best" },
18201820
{ SOLVER_RULE_YUMOBS, "yumobs" },
1821+
{ SOLVER_RULE_RECOMMENDS, "recommends" },
18211822
{ 0, 0 }
18221823
};
18231824

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# test strong recommends
2+
#
3+
# with normal recommends, the solver will
4+
# not backtrack to fulfill them.
5+
#
6+
repo system 0 testtags <inline>
7+
#>=Pkg: A 1 1 noarch
8+
#>=Con: C
9+
#>=Pkg: A2 1 1 noarch
10+
#>=Con: C2
11+
repo available 0 testtags <inline>
12+
#>=Pkg: A 1 2 noarch
13+
#>=Pkg: B 1 1 noarch
14+
#>=Rec: C
15+
#>=Pkg: C 1 1 noarch
16+
#>=Pkg: B2 1 1 noarch
17+
#>=Rec: C2
18+
#>=Pkg: C2 1 1 noarch
19+
#>=Pkg: D 1 1 noarch
20+
#>=Prv: C
21+
#>=Pkg: E 1 1 noarch
22+
#>=Prv: C
23+
system i686 rpm system
24+
solverflags strongrecommends
25+
job install name B
26+
job install name B2
27+
job disfavor name C
28+
result transaction,problems,alternatives <inline>
29+
#>alternative 6b91d100 1 + D-1-1.noarch@available
30+
#>alternative 6b91d100 2 E-1-1.noarch@available
31+
#>install B-1-1.noarch@available
32+
#>install B2-1-1.noarch@available
33+
#>install D-1-1.noarch@available
34+
#>upgrade A-1-1.noarch@system A-1-2.noarch@available

0 commit comments

Comments
 (0)