]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
add strong recommends testcase, fix break testcase
authorMichael Schroeder <mls@suse.de>
Thu, 25 May 2017 12:47:42 +0000 (14:47 +0200)
committerMichael Schroeder <mls@suse.de>
Thu, 25 May 2017 12:47:42 +0000 (14:47 +0200)
test/testcases/strongrecommends/break.t
test/testcases/strongrecommends/strongr.t [new file with mode: 0644]

index 64a12a3e828f3eada3f592a370f0b97d81e14b35..54031c0c1eb2b16b146739a013147501d991bab2 100644 (file)
@@ -23,3 +23,6 @@ repo available 0 testtags <inline>
 system i686 rpm system
 solverflags strongrecommends
 job install name A
+result transaction,problems <inline>
+#>install A-1-2.noarch@available
+#>install B-1-1.noarch@available
diff --git a/test/testcases/strongrecommends/strongr.t b/test/testcases/strongrecommends/strongr.t
new file mode 100644 (file)
index 0000000..e6f5295
--- /dev/null
@@ -0,0 +1,27 @@
+# test strong recommends
+#
+# with normal recommends, the solver will
+# not backtrack to fulfill them.
+#
+repo system 0 testtags <inline>
+#>=Pkg: A 1 1 noarch
+#>=Con: C
+#>=Pkg: A2 1 1 noarch
+#>=Con: C2
+repo available 0 testtags <inline>
+#>=Pkg: A 1 2 noarch
+#>=Pkg: B 1 1 noarch
+#>=Rec: C
+#>=Pkg: C 1 1 noarch
+#>=Pkg: B2 1 1 noarch
+#>=Rec: C2
+#>=Pkg: C2 1 1 noarch
+system i686 rpm system
+solverflags strongrecommends
+job install name B
+job install name B2
+result transaction,problems <inline>
+#>install B-1-1.noarch@available
+#>install B2-1-1.noarch@available
+#>install C-1-1.noarch@available
+#>upgrade A-1-1.noarch@system A-1-2.noarch@available