]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Add testcases for the last change
authorMichael Schroeder <mls@suse.de>
Tue, 24 Feb 2015 18:00:00 +0000 (19:00 +0100)
committerMichael Schroeder <mls@suse.de>
Tue, 24 Feb 2015 18:00:00 +0000 (19:00 +0100)
test/testcases/choose/default.t [new file with mode: 0644]
test/testcases/choose/enhanced.t [new file with mode: 0644]
test/testcases/choose/oldversion.t [new file with mode: 0644]
test/testcases/choose/suggested.t [new file with mode: 0644]
test/testcases/choose/versioned.t [new file with mode: 0644]
test/testcases/choose/versioned2.t [new file with mode: 0644]

diff --git a/test/testcases/choose/default.t b/test/testcases/choose/default.t
new file mode 100644 (file)
index 0000000..bb5b9f4
--- /dev/null
@@ -0,0 +1,13 @@
+repo system 0 empty
+repo test 0 testtags <inline>
+#>=Pkg: X 1 1 noarch
+#>=Req: Y
+#>=Pkg: B 1 1 noarch
+#>=Prv: Y
+#>=Pkg: A 1 1 noarch
+#>=Prv: Y
+system i686 rpm system
+job install name X
+result transaction,problems <inline>
+#>install A-1-1.noarch@test
+#>install X-1-1.noarch@test
diff --git a/test/testcases/choose/enhanced.t b/test/testcases/choose/enhanced.t
new file mode 100644 (file)
index 0000000..da6cfd5
--- /dev/null
@@ -0,0 +1,14 @@
+repo system 0 empty
+repo test 0 testtags <inline>
+#>=Pkg: X 1 1 noarch
+#>=Req: Y
+#>=Pkg: B 1 1 noarch
+#>=Prv: Y
+#>=Enh: X
+#>=Pkg: A 1 1 noarch
+#>=Prv: Y
+system i686 rpm system
+job install name X
+result transaction,problems <inline>
+#>install B-1-1.noarch@test
+#>install X-1-1.noarch@test
diff --git a/test/testcases/choose/oldversion.t b/test/testcases/choose/oldversion.t
new file mode 100644 (file)
index 0000000..d83e2b6
--- /dev/null
@@ -0,0 +1,16 @@
+repo system 0 empty
+repo test 0 testtags <inline>
+#>=Pkg: X 1 1 noarch
+#>=Req: Y
+#>=Pkg: B 1 1 noarch
+#>=Prv: Y
+#>=Pkg: C 1 1 noarch
+#>=Prv: Y
+#>=Pkg: A 1 1 noarch
+#>=Prv: Y
+#>=Pkg: A 2 1 noarch
+system i686 rpm system
+job install name X
+result transaction,problems <inline>
+#>install B-1-1.noarch@test
+#>install X-1-1.noarch@test
diff --git a/test/testcases/choose/suggested.t b/test/testcases/choose/suggested.t
new file mode 100644 (file)
index 0000000..cad4742
--- /dev/null
@@ -0,0 +1,14 @@
+repo system 0 empty
+repo test 0 testtags <inline>
+#>=Pkg: X 1 1 noarch
+#>=Req: Y
+#>=Sug: B
+#>=Pkg: B 1 1 noarch
+#>=Prv: Y
+#>=Pkg: A 1 1 noarch
+#>=Prv: Y
+system i686 rpm system
+job install name X
+result transaction,problems <inline>
+#>install B-1-1.noarch@test
+#>install X-1-1.noarch@test
diff --git a/test/testcases/choose/versioned.t b/test/testcases/choose/versioned.t
new file mode 100644 (file)
index 0000000..d5089c8
--- /dev/null
@@ -0,0 +1,15 @@
+repo system 0 empty
+repo test 0 testtags <inline>
+#>=Pkg: X 1 1 noarch
+#>=Req: Y
+#>=Pkg: B 1 1 noarch
+#>=Prv: Y = 2
+#>=Pkg: C 1 1 noarch
+#>=Prv: Y = 1.1
+#>=Pkg: A 1 1 noarch
+#>=Prv: Y = 1
+system i686 rpm system
+job install name X
+result transaction,problems <inline>
+#>install B-1-1.noarch@test
+#>install X-1-1.noarch@test
diff --git a/test/testcases/choose/versioned2.t b/test/testcases/choose/versioned2.t
new file mode 100644 (file)
index 0000000..99c5712
--- /dev/null
@@ -0,0 +1,15 @@
+repo system 0 empty
+repo test 0 testtags <inline>
+#>=Pkg: X 1 1 noarch
+#>=Req: Y
+#>=Pkg: B 1 1 noarch
+#>=Prv: Y < 2
+#>=Pkg: C 1 1 noarch
+#>=Prv: Y <= 2
+#>=Pkg: A 1 1 noarch
+#>=Prv: Y = 1
+system i686 rpm system
+job install name X
+result transaction,problems <inline>
+#>install C-1-1.noarch@test
+#>install X-1-1.noarch@test