diff options
Diffstat (limited to 'test/testcases')
-rw-r--r-- | test/testcases/forcebest/forcebest_in.t | 8 | ||||
-rw-r--r-- | test/testcases/selection/selection_canon_rpm.t | 53 | ||||
-rw-r--r-- | test/testcases/selection/selection_filelist.t | 20 | ||||
-rw-r--r-- | test/testcases/selection/selection_matchdeps.t | 54 | ||||
-rw-r--r-- | test/testcases/selection/selection_name.t | 85 | ||||
-rw-r--r-- | test/testcases/selection/selection_provides.t | 49 |
6 files changed, 263 insertions, 6 deletions
diff --git a/test/testcases/forcebest/forcebest_in.t b/test/testcases/forcebest/forcebest_in.t index aaf2aa1..93165c8 100644 --- a/test/testcases/forcebest/forcebest_in.t +++ b/test/testcases/forcebest/forcebest_in.t @@ -11,19 +11,15 @@ system i686 rpm system job install name A [forcebest] result transaction,problems <inline> -#>erase D-1-1.noarch@system -#>install A-3-1.noarch@available #>problem 1210fdfb info package D-1-1.noarch conflicts with A = 3-1 provided by A-3-1.noarch #>problem 1210fdfb solution 0d75a914 erase D-1-1.noarch@system -#>problem 1210fdfb solution d85f7c4e deljob install name A [forcebest] +#>problem 1210fdfb solution ee74e60f deljob install name A [forcebest] # currently bestobeypolicy is a noop for install jobs nextjob solverflags bestobeypolicy job install name A [forcebest] result transaction,problems <inline> -#>erase D-1-1.noarch@system -#>install A-3-1.noarch@available #>problem 1210fdfb info package D-1-1.noarch conflicts with A = 3-1 provided by A-3-1.noarch #>problem 1210fdfb solution 0d75a914 erase D-1-1.noarch@system -#>problem 1210fdfb solution d85f7c4e deljob install name A [forcebest] +#>problem 1210fdfb solution ee74e60f deljob install name A [forcebest] diff --git a/test/testcases/selection/selection_canon_rpm.t b/test/testcases/selection/selection_canon_rpm.t new file mode 100644 index 0000000..018db31 --- /dev/null +++ b/test/testcases/selection/selection_canon_rpm.t @@ -0,0 +1,53 @@ +repo available 0 testtags <inline> +#>=Pkg: A 1 1 noarch +#>=Pkg: A 2 1 noarch +#>=Prv: A = 3.1 +#>=Pkg: A 2 2 i686 +#>=Pkg: A 1:1 1 i686 +#>=Pkg: A 2 2 badarch +#>=Pkg: A 1:3 1 i686 +system i686 rpm + +disable pkg E-1-1.src@available +disable pkg F-1-1.src@available + +job noop selection A-2 canon +result jobs <inline> +#>job noop name A = 2 [setev] + +nextjob +job noop selection A-2-1 canon +result jobs <inline> +#>job noop name A = 2-1 [setevr] + +nextjob +job noop selection A-3 canon +result jobs <inline> +#>job noop name A = 1:3 [setev] + +nextjob +job noop selection A-3-1 canon +result jobs <inline> +#>job noop name A = 1:3-1 [setevr] + +nextjob +job noop selection A-1 canon +result jobs <inline> +#>job noop oneof A-1-1.noarch@available A-1:1-1.i686@available + +nextjob +job noop selection A-1-1 canon +result jobs <inline> +#>job noop oneof A-1-1.noarch@available A-1:1-1.i686@available + + +nextjob +job noop selection A-0:1-1 canon +result jobs <inline> +#>job noop name A = 0:1-1 [setevr] + +nextjob +job noop selection A-1:1-1 canon +result jobs <inline> +#>job noop name A = 1:1-1 [setevr] + diff --git a/test/testcases/selection/selection_filelist.t b/test/testcases/selection/selection_filelist.t new file mode 100644 index 0000000..2005643 --- /dev/null +++ b/test/testcases/selection/selection_filelist.t @@ -0,0 +1,20 @@ +repo available 0 testtags <inline> +#>=Pkg: bash 1 1 noarch +#>=Fls: /usr/bin/bash +#>=Fls: /usr/bin/bashbug +#>=Pkg: bash 2 1 noarch +#>=Fls: /usr/bin/bash +#>=Fls: /usr/bin/bashbug +#>=Pkg: coreutils 1 1 noarch +#>=Fls: /usr/bin/basename +system i686 rpm + +job noop selection /usr/bin/ba* filelist,glob +result jobs <inline> +#>job noop oneof bash-1-1.noarch@available bash-2-1.noarch@available +#>job noop pkg coreutils-1-1.noarch@available [noautoset] + +nextjob +job noop selection /usr/bin/ba* filelist,glob,flat +result jobs <inline> +#>job noop oneof bash-1-1.noarch@available bash-2-1.noarch@available coreutils-1-1.noarch@available diff --git a/test/testcases/selection/selection_matchdeps.t b/test/testcases/selection/selection_matchdeps.t new file mode 100644 index 0000000..cdf9ebc --- /dev/null +++ b/test/testcases/selection/selection_matchdeps.t @@ -0,0 +1,54 @@ +repo available 0 testtags <inline> +#>=Pkg: A 2 1 noarch +#>=Pkg: AP 3 1 noarch +#>=Prv: A = 3.1 +#>=Pkg: A 2 2 i686 +#>=Req: BBB > 5 +#>=Pkg: B 1 1 src +#>=Pkg: A 2 2 badarch +system i686 rpm + +job noop selection_matchdeps solvable:name a = 2 rel,flat,nocase +result jobs <inline> +#>job noop oneof A-2-1.noarch@available A-2-2.i686@available + +nextjob +job noop selection_matchdeps solvable:name a = 2-* flat,glob,nocase,depstr +result jobs <inline> +#>job noop oneof A-2-1.noarch@available A-2-2.i686@available + +nextjob +job noop selection_matchdepid solvable:name A = 2-1 flat +result jobs <inline> +#>job noop pkg A-2-1.noarch@available [noautoset] + +nextjob +job noop selection_matchdepid solvable:name A = 2-2 flat,depstr +result jobs <inline> +#>job noop pkg A-2-2.i686@available [noautoset] + +nextjob +job noop selection_matchdepid solvable:name A = 2-2 flat,depstr,withbadarch +result jobs <inline> +#>job noop oneof A-2-2.i686@available A-2-2.badarch@available + +nextjob +job noop selection_matchdeps solvable:requires bbb < 10 rel,flat,nocase +result jobs <inline> +#>job noop pkg A-2-2.i686@available [noautoset] + +nextjob +job noop selection_matchdeps solvable:requires bbb >* depstr,glob,flat,nocase +result jobs <inline> +#>job noop pkg A-2-2.i686@available [noautoset] + +nextjob +job noop selection_matchdepid solvable:requires BBB < 10 flat +result jobs <inline> +#>job noop pkg A-2-2.i686@available [noautoset] + +nextjob +job noop selection_matchdepid solvable:requires BBB > 5 flat,depstr +result jobs <inline> +#>job noop pkg A-2-2.i686@available [noautoset] + diff --git a/test/testcases/selection/selection_name.t b/test/testcases/selection/selection_name.t new file mode 100644 index 0000000..b0a8520 --- /dev/null +++ b/test/testcases/selection/selection_name.t @@ -0,0 +1,85 @@ +repo available 0 testtags <inline> +#>=Pkg: A 2 1 noarch +#>=Pkg: AP 3 1 noarch +#>=Prv: A = 3.1 +#>=Pkg: A 2 2 i686 +#>=Req: BBB > 5 +#>=Pkg: B 1 1 src +#>=Pkg: A 2 2 badarch +#>=Pkg: C 2 2 badarch +#>=Pkg: D 2 2 noarch +#>=Pkg: D 2 2 badarch +#>=Pkg: E 1 1 src +#>=Pkg: F 1 1 src +#>=Pkg: F 1 2 src +#>=Pkg: G 1 1 src +#>=Pkg: G 1 2 src +system i686 rpm + +disable pkg E-1-1.src@available +disable pkg F-1-1.src@available + +job noop selection A name +result jobs <inline> +#>job noop name A + +nextjob +job noop selection A.i686 name,dotarch +result jobs <inline> +#>job noop name A . i686 [setarch] + +nextjob +job noop selection A.i686>1 name,dotarch,rel +result jobs <inline> +#>job noop name (A . i686) > 1 [setarch] + +nextjob +job noop selection B* glob,name,withsource +result jobs <inline> +#>job noop pkg B-1-1.src@available [noautoset] + +nextjob +job noop selection A=2-2 name,dotarch,rel,withbadarch +result jobs <inline> +#>job noop oneof A-2-2.i686@available A-2-2.badarch@available [setevr] + +nextjob +job noop selection C name,withbadarch +result jobs <inline> +#>job noop pkg C-2-2.badarch@available [noautoset] + +nextjob +job noop selection D name,withbadarch +result jobs <inline> +#>job noop oneof D-2-2.noarch@available D-2-2.badarch@available + +nextjob +job noop selection E name,sourceonly,withdisabled +result jobs <inline> +#>job noop pkg E-1-1.src@available [noautoset] + +nextjob +job noop selection E name,withsource,withdisabled +result jobs <inline> +#>job noop pkg E-1-1.src@available [noautoset] + +nextjob +job noop selection F name,sourceonly,withdisabled +result jobs <inline> +#>job noop oneof F-1-1.src@available F-1-2.src@available + +nextjob +job noop selection F name,withsource,withdisabled +result jobs <inline> +#>job noop oneof F-1-1.src@available F-1-2.src@available + +nextjob +job noop selection G name,sourceonly,withdisabled +result jobs <inline> +#>job noop name G . src + +nextjob +job noop selection G name,withsource,withdisabled +result jobs <inline> +#>job noop oneof G-1-1.src@available G-1-2.src@available + diff --git a/test/testcases/selection/selection_provides.t b/test/testcases/selection/selection_provides.t new file mode 100644 index 0000000..cb3a029 --- /dev/null +++ b/test/testcases/selection/selection_provides.t @@ -0,0 +1,49 @@ +repo available 0 testtags <inline> +#>=Pkg: A 2 1 noarch +#>=Pkg: AP 3 1 noarch +#>=Prv: A = 3.1 +#>=Pkg: A 2 2 i686 +#>=Req: BBB > 5 +#>=Pkg: B 1 1 src +#>=Pkg: A 2 2 badarch +#>=Pkg: C 2 2 badarch +#>=Pkg: D 2 2 badarch +#>=Pkg: D 2 2 noarch +system i686 rpm + +job noop selection A provides +result jobs <inline> +#>job noop provides A + +nextjob +job noop selection A.i686 provides,dotarch +result jobs <inline> +#>job noop provides A . i686 [setarch] + +nextjob +job noop selection A.i686>1 provides,dotarch,rel +result jobs <inline> +#>job noop provides (A . i686) > 1 [setarch] + +nextjob +job noop selection A* glob,provides,withbadarch +result jobs <inline> +#>job noop oneof A-2-1.noarch@available AP-3-1.noarch@available A-2-2.i686@available A-2-2.badarch@available +#>job noop provides AP + +nextjob +job noop selection A*>=2 glob,provides,dotarch,rel,withbadarch +result jobs <inline> +#>job noop oneof A-2-1.noarch@available AP-3-1.noarch@available A-2-2.i686@available A-2-2.badarch@available +#>job noop provides AP >= 2 + +nextjob +job noop selection C provides,withbadarch +result jobs <inline> +#>job noop pkg C-2-2.badarch@available [noautoset] + + +nextjob +job noop selection D provides,withbadarch +result jobs <inline> +#>job noop oneof D-2-2.badarch@available D-2-2.noarch@available |