summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/testcases/multiversion/multiversion.t30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/testcases/multiversion/multiversion.t b/test/testcases/multiversion/multiversion.t
new file mode 100644
index 0000000..8dad288
--- /dev/null
+++ b/test/testcases/multiversion/multiversion.t
@@ -0,0 +1,30 @@
+repo system 0 testtags <inline>
+#>=Pkg: A 1 1 noarch
+#>=Pkg: B 1 1 noarch
+repo test 0 testtags <inline>
+#>=Pkg: A 2 1 noarch
+#>=Obs: B
+system i686 rpm system
+
+solverflags keepexplicitobsoletes
+job multiversion name A
+job install name A = 2
+result transaction,problems <inline>
+#>erase B-1-1.noarch@system A-2-1.noarch@test
+#>install A-2-1.noarch@test
+
+nextjob
+solverflags keepexplicitobsoletes
+poolflags noobsoletesmultiversion
+job multiversion name A
+job install name A = 2
+result transaction,problems <inline>
+#>erase B-1-1.noarch@system
+#>install A-2-1.noarch@test
+
+nextjob
+poolflags !noobsoletesmultiversion
+job multiversion name A
+job install name A = 2
+result transaction,problems <inline>
+#>install A-2-1.noarch@test