diff options
author | Michael Schroeder <mls@suse.de> | 2012-11-30 16:54:25 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-11-30 16:54:25 +0100 |
commit | a58282026fd9fae5927e33389542851b0d1f0c94 (patch) | |
tree | 9fffb82cf6b5b0c9196047fe0645edf844149dc3 /test | |
parent | ff65a8497269705a6105f22f0db6ec0bb5300b0c (diff) | |
download | libsolv-a58282026fd9fae5927e33389542851b0d1f0c94.tar.gz libsolv-a58282026fd9fae5927e33389542851b0d1f0c94.tar.bz2 libsolv-a58282026fd9fae5927e33389542851b0d1f0c94.zip |
expand testcases
Diffstat (limited to 'test')
-rw-r--r-- | test/testcases/targeted/targeted_dup.t | 49 | ||||
-rw-r--r-- | test/testcases/targeted/targeted_up.t | 38 |
2 files changed, 84 insertions, 3 deletions
diff --git a/test/testcases/targeted/targeted_dup.t b/test/testcases/targeted/targeted_dup.t index 4815941..274f58a 100644 --- a/test/testcases/targeted/targeted_dup.t +++ b/test/testcases/targeted/targeted_dup.t @@ -1,20 +1,46 @@ repo system 0 testtags <inline> #>=Pkg: A 1 1 noarch #>+Prv: -#>A = 1-1 +#>A = 1-1 #>-Prv: +#>=Pkg: D 1 1 noarch +#>+Prv: +#>D = 1-1 +#>-Prv: +#>=Pkg: Z 1 1 noarch +#>+Prv: +#>Z = 1-1 +#>-Prv: +#>+Con: +#>D = 2-1 +#>-Con: repo available 0 testtags <inline> #>=Pkg: A 2 1 noarch #>+Prv: -#>A = 2-1 +#>A = 2-1 #>-Prv: #>=Pkg: B 1 0 noarch #>+Prv: -#>B = 1-0 +#>B = 1-0 #>-Prv: #>+Obs: #>A #>-Obs: +#>=Pkg: C 1 0 noarch +#>+Prv: +#>C = 1-0 +#>-Prv: +#>+Obs: +#>A = 1-1 +#>-Obs: +#>=Pkg: D 2 1 noarch +#>+Prv: +#>D = 2-1 +#>-Prv: +#>=Pkg: D 3 1 noarch +#>+Prv: +#>D = 3-1 +#>-Prv: system i686 rpm system # first check untargeted @@ -46,3 +72,20 @@ nextjob solverflags noautotarget job distupgrade name A = 2-1 result transaction,problems <inline> + +# then targeted to D +nextjob +job distupgrade name D +result transaction,problems <inline> +#>upgrade D-1-1.noarch@system D-3-1.noarch@available + +# then targeted to D-2-1 (should not go to D-3-1) +nextjob +job distupgrade name D = 2-1 +result transaction,problems <inline> +#>problem 840e2c39 info package Z-1-1.noarch conflicts with D = 2-1 provided by D-2-1.noarch +#>problem 840e2c39 solution 3158736f erase Z-1-1.noarch@system +#>problem 840e2c39 solution 42076df5 erase D-1-1.noarch@system +#>problem 840e2c39 solution cdacbabe allow D-3-1.noarch@available +#>upgrade D-1-1.noarch@system D-3-1.noarch@available + diff --git a/test/testcases/targeted/targeted_up.t b/test/testcases/targeted/targeted_up.t index 4e5c4bc..8cfba41 100644 --- a/test/testcases/targeted/targeted_up.t +++ b/test/testcases/targeted/targeted_up.t @@ -3,6 +3,17 @@ repo system 0 testtags <inline> #>+Prv: #>A = 1-1 #>-Prv: +#>=Pkg: D 1 1 noarch +#>+Prv: +#>D = 1-1 +#>-Prv: +#>=Pkg: Z 1 1 noarch +#>+Prv: +#>Z = 1-1 +#>-Prv: +#>+Con: +#>D = 2-1 +#>-Con: repo available 0 testtags <inline> #>=Pkg: A 2 1 noarch #>+Prv: @@ -15,6 +26,21 @@ repo available 0 testtags <inline> #>+Obs: #>A #>-Obs: +#>=Pkg: C 1 0 noarch +#>+Prv: +#>C = 1-0 +#>-Prv: +#>+Obs: +#>A = 1-1 +#>-Obs: +#>=Pkg: D 2 1 noarch +#>+Prv: +#>D = 2-1 +#>-Prv: +#>=Pkg: D 3 1 noarch +#>+Prv: +#>D = 3-1 +#>-Prv: system i686 rpm system # first check untargeted @@ -46,3 +72,15 @@ nextjob solverflags noautotarget job distupgrade name A = 2-1 result transaction,problems <inline> + +# then targeted to D +nextjob +job update name D +result transaction,problems <inline> +#>upgrade D-1-1.noarch@system D-3-1.noarch@available + +# then targeted to D-2-1 (should not go to D-3-1) +nextjob +job update name D = 2-1 +result transaction,problems <inline> + |