From: Michael Schroeder Date: Thu, 25 May 2017 12:47:42 +0000 (+0200) Subject: add strong recommends testcase, fix break testcase X-Git-Tag: 0.6.28~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=419c4cb3dbe30b6f721100252fa710576bd81282;p=thirdparty%2Flibsolv.git add strong recommends testcase, fix break testcase --- diff --git a/test/testcases/strongrecommends/break.t b/test/testcases/strongrecommends/break.t index 64a12a3e..54031c0c 100644 --- a/test/testcases/strongrecommends/break.t +++ b/test/testcases/strongrecommends/break.t @@ -23,3 +23,6 @@ repo available 0 testtags system i686 rpm system solverflags strongrecommends job install name A +result transaction,problems +#>install A-1-2.noarch@available +#>install B-1-1.noarch@available diff --git a/test/testcases/strongrecommends/strongr.t b/test/testcases/strongrecommends/strongr.t new file mode 100644 index 00000000..e6f52951 --- /dev/null +++ b/test/testcases/strongrecommends/strongr.t @@ -0,0 +1,27 @@ +# test strong recommends +# +# with normal recommends, the solver will +# not backtrack to fulfill them. +# +repo system 0 testtags +#>=Pkg: A 1 1 noarch +#>=Con: C +#>=Pkg: A2 1 1 noarch +#>=Con: C2 +repo available 0 testtags +#>=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 +system i686 rpm system +solverflags strongrecommends +job install name B +job install name B2 +result transaction,problems +#>install B-1-1.noarch@available +#>install B2-1-1.noarch@available +#>install C-1-1.noarch@available +#>upgrade A-1-1.noarch@system A-1-2.noarch@available