summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/testcases/choose/default.t13
-rw-r--r--test/testcases/choose/enhanced.t14
-rw-r--r--test/testcases/choose/oldversion.t16
-rw-r--r--test/testcases/choose/suggested.t14
-rw-r--r--test/testcases/choose/versioned.t15
-rw-r--r--test/testcases/choose/versioned2.t15
-rw-r--r--test/testcases/namespace/namespaceprovides.t2
7 files changed, 89 insertions, 0 deletions
diff --git a/test/testcases/choose/default.t b/test/testcases/choose/default.t
new file mode 100644
index 0000000..bb5b9f4
--- /dev/null
+++ b/test/testcases/choose/default.t
@@ -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
index 0000000..da6cfd5
--- /dev/null
+++ b/test/testcases/choose/enhanced.t
@@ -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
index 0000000..d83e2b6
--- /dev/null
+++ b/test/testcases/choose/oldversion.t
@@ -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
index 0000000..cad4742
--- /dev/null
+++ b/test/testcases/choose/suggested.t
@@ -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
index 0000000..d5089c8
--- /dev/null
+++ b/test/testcases/choose/versioned.t
@@ -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
index 0000000..99c5712
--- /dev/null
+++ b/test/testcases/choose/versioned2.t
@@ -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
diff --git a/test/testcases/namespace/namespaceprovides.t b/test/testcases/namespace/namespaceprovides.t
index 1dc8872..62ca982 100644
--- a/test/testcases/namespace/namespaceprovides.t
+++ b/test/testcases/namespace/namespaceprovides.t
@@ -1,8 +1,10 @@
repo system 0 testtags <inline>
+#>=Ver: 2
#>=Pkg: B 1 1 noarch
#>=Prv: locale(en)
#>=Pkg: C 1 1 noarch
repo test 0 testtags <inline>
+#>=Ver: 2
#>=Pkg: A 1 1 noarch
#>=Prv: locale(de)
#>=Pkg: C-de 1 1 noarch