diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/testcases/favor/recommends2.t | 20 | ||||
-rw-r--r-- | test/testcases/favor/single.t | 30 | ||||
-rw-r--r-- | test/testcases/lockstep/infarch_install_best.t | 20 | ||||
-rw-r--r-- | test/testcases/strongrecommends/disfavored.t | 34 |
4 files changed, 104 insertions, 0 deletions
diff --git a/test/testcases/favor/recommends2.t b/test/testcases/favor/recommends2.t new file mode 100644 index 0000000..9950661 --- /dev/null +++ b/test/testcases/favor/recommends2.t @@ -0,0 +1,20 @@ +repo system 0 empty +repo available 0 testtags <inline> +#>=Pkg: a 1 1 noarch +#>=Req: b +#>=Rec: b1 +#>=Pkg: b1 1 1 noarch +#>=Prv: b +#>=Pkg: b2 1 1 noarch +#>=Prv: b +system x86_64 rpm system +poolflags implicitobsoleteusescolors +solverflags ignorerecommended +job install pkg a-1-1.noarch@available +job favor name b2 +result transaction,problems,alternatives <inline> +#>alternative 64eb4d87 0 a-1-1.noarch@available requires b +#>alternative 64eb4d87 1 + b2-1-1.noarch@available +#>alternative 64eb4d87 2 b1-1-1.noarch@available +#>install a-1-1.noarch@available +#>install b2-1-1.noarch@available diff --git a/test/testcases/favor/single.t b/test/testcases/favor/single.t new file mode 100644 index 0000000..3a1d93b --- /dev/null +++ b/test/testcases/favor/single.t @@ -0,0 +1,30 @@ +repo system 0 empty +repo available 0 testtags <inline> +#>=Pkg: gcc 5 1 noarch +#>=Prv: gcc +#>=Pkg: gcc 6 1 noarch +#>=Prv: gcc +#>=Pkg: build-tools 1 1 noarch +#>=Req: gcc +system unset * system + +job install name build-tools +job favor pkg gcc-5-1.noarch@available +result transaction,problems,alternatives <inline> +#>alternative 6e50ec1a 0 build-tools-1-1.noarch@available requires gcc +#>alternative 6e50ec1a 1 + gcc-5-1.noarch@available +#>alternative 6e50ec1a 2 gcc-6-1.noarch@available +#>install build-tools-1-1.noarch@available +#>install gcc-5-1.noarch@available + +nextjob + +job install name build-tools +job disfavor pkg gcc-6-1.noarch@available +result transaction,problems,alternatives <inline> +#>alternative 6e50ec1a 0 build-tools-1-1.noarch@available requires gcc +#>alternative 6e50ec1a 1 + gcc-5-1.noarch@available +#>alternative 6e50ec1a 2 gcc-6-1.noarch@available +#>install build-tools-1-1.noarch@available +#>install gcc-5-1.noarch@available + diff --git a/test/testcases/lockstep/infarch_install_best.t b/test/testcases/lockstep/infarch_install_best.t new file mode 100644 index 0000000..e9c4859 --- /dev/null +++ b/test/testcases/lockstep/infarch_install_best.t @@ -0,0 +1,20 @@ +# test for issue 292 +repo system 0 testtags <inline> +#>=Pkg: nss 3.39.0 2.fc29 x86_64 +#>=Pkg: nss-sysinit 3.39.0 2.fc29 x86_64 +#>=Req: nss = 3.39.0-2.fc29 +repo available 0 testtags <inline> +#>=Pkg: nss 3.39.0 2.fc29 i686 +#>=Pkg: nss 3.41.0 1.fc29 x86_64 +#>=Pkg: nss-sysinit 3.41.0 1.fc29 x86_64 +#>=Req: nss = 3.41.0-1.fc29 + +system x86_64 rpm system + +poolflags implicitobsoleteusescolors +solverflags allowvendorchange keepexplicitobsoletes bestobeypolicy keeporphans yumobsoletes + +job install oneof nss-3.41.0-1.fc29.x86_64@available [setevr,setarch] +result transaction,problems <inline> +#>upgrade nss-3.39.0-2.fc29.x86_64@system nss-3.41.0-1.fc29.x86_64@available +#>upgrade nss-sysinit-3.39.0-2.fc29.x86_64@system nss-sysinit-3.41.0-1.fc29.x86_64@available diff --git a/test/testcases/strongrecommends/disfavored.t b/test/testcases/strongrecommends/disfavored.t new file mode 100644 index 0000000..14792fa --- /dev/null +++ b/test/testcases/strongrecommends/disfavored.t @@ -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 |