mirror of
https://github.com/openSUSE/libsolv.git
synced 2026-02-05 12:45:46 +01:00
Add testcase for the last commit
This commit is contained in:
@@ -1818,6 +1818,7 @@ static struct rclass2str {
|
||||
{ SOLVER_RULE_LEARNT, "learnt" },
|
||||
{ SOLVER_RULE_BEST, "best" },
|
||||
{ SOLVER_RULE_YUMOBS, "yumobs" },
|
||||
{ SOLVER_RULE_RECOMMENDS, "recommends" },
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
|
||||
34
test/testcases/strongrecommends/disfavored.t
Normal file
34
test/testcases/strongrecommends/disfavored.t
Normal file
@@ -0,0 +1,34 @@
|
||||
# test strong recommends
|
||||
#
|
||||
# with normal recommends, the solver will
|
||||
# not backtrack to fulfill them.
|
||||
#
|
||||
repo system 0 testtags <inline>
|
||||
#>=Pkg: A 1 1 noarch
|
||||
#>=Con: C
|
||||
#>=Pkg: A2 1 1 noarch
|
||||
#>=Con: C2
|
||||
repo available 0 testtags <inline>
|
||||
#>=Pkg: A 1 2 noarch
|
||||
#>=Pkg: B 1 1 noarch
|
||||
#>=Rec: C
|
||||
#>=Pkg: C 1 1 noarch
|
||||
#>=Pkg: B2 1 1 noarch
|
||||
#>=Rec: C2
|
||||
#>=Pkg: C2 1 1 noarch
|
||||
#>=Pkg: D 1 1 noarch
|
||||
#>=Prv: C
|
||||
#>=Pkg: E 1 1 noarch
|
||||
#>=Prv: C
|
||||
system i686 rpm system
|
||||
solverflags strongrecommends
|
||||
job install name B
|
||||
job install name B2
|
||||
job disfavor name C
|
||||
result transaction,problems,alternatives <inline>
|
||||
#>alternative 6b91d100 1 + D-1-1.noarch@available
|
||||
#>alternative 6b91d100 2 E-1-1.noarch@available
|
||||
#>install B-1-1.noarch@available
|
||||
#>install B2-1-1.noarch@available
|
||||
#>install D-1-1.noarch@available
|
||||
#>upgrade A-1-1.noarch@system A-1-2.noarch@available
|
||||
Reference in New Issue
Block a user