From: Michael Schroeder Date: Sat, 18 Nov 2017 21:27:22 +0000 (+0100) Subject: Add more name/provides tests, test filelist matching X-Git-Tag: 0.6.31~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=357cac24ccecc947a26e2984720cb1dbbe21e7df;p=thirdparty%2Flibsolv.git Add more name/provides tests, test filelist matching --- diff --git a/test/testcases/selection/selection_filelist.t b/test/testcases/selection/selection_filelist.t new file mode 100644 index 00000000..20056438 --- /dev/null +++ b/test/testcases/selection/selection_filelist.t @@ -0,0 +1,20 @@ +repo available 0 testtags +#>=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 +#>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 +#>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_name.t b/test/testcases/selection/selection_name.t index a12386f6..b0a8520d 100644 --- a/test/testcases/selection/selection_name.t +++ b/test/testcases/selection/selection_name.t @@ -6,8 +6,19 @@ repo available 0 testtags #>=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 #>job noop name A @@ -32,3 +43,43 @@ job noop selection A=2-2 name,dotarch,rel,withbadarch result jobs #>job noop oneof A-2-2.i686@available A-2-2.badarch@available [setevr] +nextjob +job noop selection C name,withbadarch +result jobs +#>job noop pkg C-2-2.badarch@available [noautoset] + +nextjob +job noop selection D name,withbadarch +result jobs +#>job noop oneof D-2-2.noarch@available D-2-2.badarch@available + +nextjob +job noop selection E name,sourceonly,withdisabled +result jobs +#>job noop pkg E-1-1.src@available [noautoset] + +nextjob +job noop selection E name,withsource,withdisabled +result jobs +#>job noop pkg E-1-1.src@available [noautoset] + +nextjob +job noop selection F name,sourceonly,withdisabled +result jobs +#>job noop oneof F-1-1.src@available F-1-2.src@available + +nextjob +job noop selection F name,withsource,withdisabled +result jobs +#>job noop oneof F-1-1.src@available F-1-2.src@available + +nextjob +job noop selection G name,sourceonly,withdisabled +result jobs +#>job noop name G . src + +nextjob +job noop selection G name,withsource,withdisabled +result jobs +#>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 index 87e523ad..cb3a0295 100644 --- a/test/testcases/selection/selection_provides.t +++ b/test/testcases/selection/selection_provides.t @@ -6,6 +6,9 @@ repo available 0 testtags #>=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 @@ -25,7 +28,7 @@ result jobs nextjob job noop selection A* glob,provides,withbadarch result jobs -#>job noop provides A +#>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 @@ -34,3 +37,13 @@ result jobs #>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 +#>job noop pkg C-2-2.badarch@available [noautoset] + + +nextjob +job noop selection D provides,withbadarch +result jobs +#>job noop oneof D-2-2.badarch@available D-2-2.noarch@available