diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/testcases/allowuninstall/conflict.t | 14 | ||||
-rw-r--r-- | test/testcases/allowuninstall/forcebest.t | 19 | ||||
-rw-r--r-- | test/testcases/evrcmp/caret.t | 74 | ||||
-rw-r--r-- | test/testcases/namespace/namespaceprovides.t | 24 |
4 files changed, 131 insertions, 0 deletions
diff --git a/test/testcases/allowuninstall/conflict.t b/test/testcases/allowuninstall/conflict.t new file mode 100644 index 0000000..a66d322 --- /dev/null +++ b/test/testcases/allowuninstall/conflict.t @@ -0,0 +1,14 @@ +repo system 0 testtags <inline> +#>=Pkg: a 1 1 noarch +#>=Con: b +repo available 0 testtags <inline> +#>=Pkg: b 1 1 noarch + +system x86_64 rpm system +solverflags allowuninstall +disable pkg a-1-1.noarch@system +job install name b +result transaction,problems <inline> +#>problem a658cbaf info package a-1-1.noarch conflicts with b provided by b-1-1.noarch +#>problem a658cbaf solution 567aa15d erase a-1-1.noarch@system +#>problem a658cbaf solution e98e1a37 deljob install name b diff --git a/test/testcases/allowuninstall/forcebest.t b/test/testcases/allowuninstall/forcebest.t new file mode 100644 index 0000000..38ade6f --- /dev/null +++ b/test/testcases/allowuninstall/forcebest.t @@ -0,0 +1,19 @@ +repo system 0 testtags <inline> +#>=Pkg: a 1 1 noarch +#>=Req: b = 1-1 +#>=Pkg: b 1 1 noarch +repo available 0 testtags <inline> +#>=Pkg: a 2 1 noarch +#>=Req: b = 2-1 +#>=Pkg: b 2 1 noarch + +system x86_64 rpm system +disable pkg b-1-1.noarch@system +disable pkg b-2-1.noarch@available +job allowuninstall pkg a-1-1.noarch@system +job allowuninstall pkg b-1-1.noarch@system +job update name a [forcebest] +result transaction,problems <inline> +#>problem e6d3911d info nothing provides b = 2-1 needed by a-2-1.noarch +#>problem e6d3911d solution 0011b04f allow a-1-1.noarch@system +#>problem e6d3911d solution 44d189a0 erase a-1-1.noarch@system diff --git a/test/testcases/evrcmp/caret.t b/test/testcases/evrcmp/caret.t new file mode 100644 index 0000000..d0c3a07 --- /dev/null +++ b/test/testcases/evrcmp/caret.t @@ -0,0 +1,74 @@ +repo system 0 empty +repo available 0 testtags <inline> +#>=Pkg: A1 1.0 0 +#>=Pkg: A2 1.0^ 0 +system i686 rpm system + +evrcmp 1.0~rc1 1.0~rc1 +evrcmp 1.0~rc1 1.0 +evrcmp 1.0 1.0~rc1 +evrcmp 1.0~rc1 1.0~rc2 +evrcmp 1.0~rc2 1.0~rc1 +evrcmp 1.0~rc1~git123 1.0~rc1~git123 +evrcmp 1.0~rc1~git123 1.0~rc1 +evrcmp 1.0~rc1 1.0~rc1~git123 + +evrcmp 1.0^ 1.0^ +evrcmp 1.0^ 1.0 +evrcmp 1.0 1.0^ +evrcmp 1.0^git1 1.0^git1 +evrcmp 1.0^git1 1.0 +evrcmp 1.0 1.0^git1 +evrcmp 1.0^git1 1.0^git2 +evrcmp 1.0^git2 1.0^git1 +evrcmp 1.0^git1 1.01 +evrcmp 1.01 1.0^git1 +evrcmp 1.0^20160101 1.0^20160101 +evrcmp 1.0^20160101 1.0.1 +evrcmp 1.0.1 1.0^20160101 +evrcmp 1.0^20160101^git1 1.0^20160101^git1 +evrcmp 1.0^20160102 1.0^20160101^git1 +evrcmp 1.0^20160101^git1 1.0^20160102 + +evrcmp 1.0~rc1^git1 1.0~rc1^git1 +evrcmp 1.0~rc1^git1 1.0~rc1 +evrcmp 1.0~rc1 1.0~rc1^git1 +evrcmp 1.0^git1~pre 1.0^git1~pre +evrcmp 1.0^git1 1.0^git1~pre +evrcmp 1.0^git1~pre 1.0^git1 +evrcmp 1.0^1 1.0~1 +evrcmp 1.0~1 1.0^1 + +result jobs <inline> +#>job noop provides 1.0~rc1 = 1.0~rc1 +#>job noop provides 1.0~rc1 < 1.0 +#>job noop provides 1.0 > 1.0~rc1 +#>job noop provides 1.0~rc1 < 1.0~rc2 +#>job noop provides 1.0~rc2 > 1.0~rc1 +#>job noop provides 1.0~rc1~git123 = 1.0~rc1~git123 +#>job noop provides 1.0~rc1~git123 < 1.0~rc1 +#>job noop provides 1.0~rc1 > 1.0~rc1~git123 +#>job noop provides 1.0^ = 1.0^ +#>job noop provides 1.0^ > 1.0 +#>job noop provides 1.0 < 1.0^ +#>job noop provides 1.0^git1 = 1.0^git1 +#>job noop provides 1.0^git1 > 1.0 +#>job noop provides 1.0 < 1.0^git1 +#>job noop provides 1.0^git1 < 1.0^git2 +#>job noop provides 1.0^git2 > 1.0^git1 +#>job noop provides 1.0^git1 < 1.01 +#>job noop provides 1.01 > 1.0^git1 +#>job noop provides 1.0^20160101 = 1.0^20160101 +#>job noop provides 1.0^20160101 < 1.0.1 +#>job noop provides 1.0.1 > 1.0^20160101 +#>job noop provides 1.0^20160101^git1 = 1.0^20160101^git1 +#>job noop provides 1.0^20160102 > 1.0^20160101^git1 +#>job noop provides 1.0^20160101^git1 < 1.0^20160102 +#>job noop provides 1.0~rc1^git1 = 1.0~rc1^git1 +#>job noop provides 1.0~rc1^git1 > 1.0~rc1 +#>job noop provides 1.0~rc1 < 1.0~rc1^git1 +#>job noop provides 1.0^git1~pre = 1.0^git1~pre +#>job noop provides 1.0^git1 > 1.0^git1~pre +#>job noop provides 1.0^git1~pre < 1.0^git1 +#>job noop provides 1.0^1 > 1.0~1 +#>job noop provides 1.0~1 < 1.0^1 diff --git a/test/testcases/namespace/namespaceprovides.t b/test/testcases/namespace/namespaceprovides.t index 62ca982..609b58a 100644 --- a/test/testcases/namespace/namespaceprovides.t +++ b/test/testcases/namespace/namespaceprovides.t @@ -11,6 +11,13 @@ repo test 0 testtags <inline> #>=Prv: locale(C:de) #>=Pkg: C-en 1 1 noarch #>=Prv: locale(C:en) +#>=Pkg: D 1 1 noarch +#>=Sup: C +#>=Pkg: E 1 1 noarch +#>=Prv: locale(F:de) +#>=Pkg: F 1 1 noarch +#>=Pkg: G 1 1 noarch +#>=Sup: F system i686 rpm system # first test an empty job @@ -24,6 +31,7 @@ solverflags addalreadyrecommended result transaction,problems <inline> #>install A-1-1.noarch@test #>install C-de-1-1.noarch@test +#>install D-1-1.noarch@test nextjob namespace namespace:language(de) @SYSTEM @@ -59,3 +67,19 @@ result transaction,problems <inline> #>erase B-1-1.noarch@system #>install A-1-1.noarch@test #>install C-de-1-1.noarch@test + +nextjob +namespace namespace:language(de) @SYSTEM +solverflags addalreadyrecommended onlynamespacerecommended +result transaction,problems <inline> +#>install A-1-1.noarch@test +#>install C-de-1-1.noarch@test + +nextjob +namespace namespace:language(de) @SYSTEM +solverflags onlynamespacerecommended +job install name F +result transaction,problems <inline> +#>install E-1-1.noarch@test +#>install F-1-1.noarch@test + |