]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Add more name/provides tests, test filelist matching
authorMichael Schroeder <mls@suse.de>
Sat, 18 Nov 2017 21:27:22 +0000 (22:27 +0100)
committerMichael Schroeder <mls@suse.de>
Sat, 18 Nov 2017 21:27:22 +0000 (22:27 +0100)
test/testcases/selection/selection_filelist.t [new file with mode: 0644]
test/testcases/selection/selection_name.t
test/testcases/selection/selection_provides.t

diff --git a/test/testcases/selection/selection_filelist.t b/test/testcases/selection/selection_filelist.t
new file mode 100644 (file)
index 0000000..2005643
--- /dev/null
@@ -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
index a12386f68367782f1a48ee8d941890faa05e7683..b0a8520d96f6abac1a249eb9c6d5b420c79ef219 100644 (file)
@@ -6,8 +6,19 @@ repo available 0 testtags <inline>
 #>=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
@@ -32,3 +43,43 @@ 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
+
index 87e523ad6eb5d45d4d89017101da50d9ec7463f4..cb3a02959efc77b4ff1cabb34532610bfa6d99ed 100644 (file)
@@ -6,6 +6,9 @@ repo available 0 testtags <inline>
 #>=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 <inline>
 nextjob
 job noop selection A* glob,provides,withbadarch
 result jobs <inline>
-#>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 <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