summaryrefslogtreecommitdiffstats
path: root/tests/t-db
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t-db')
-rw-r--r--tests/t-db/Makefile10
-rw-r--r--tests/t-db/db-bogus-versioned-provides-update/status10
-rw-r--r--tests/t-db/db-bogus-versioned-provides-update/updates/.keep0
-rw-r--r--tests/t-db/db-bogus-versioned-provides-update/updates/000110
-rw-r--r--tests/t-db/db-bogus-versioned-provides/status21
-rw-r--r--tests/t-db/db-bogus-versioned-provides/updates/.keep0
6 files changed, 51 insertions, 0 deletions
diff --git a/tests/t-db/Makefile b/tests/t-db/Makefile
index 2e5b621..a64e28c 100644
--- a/tests/t-db/Makefile
+++ b/tests/t-db/Makefile
@@ -16,6 +16,8 @@ TEST_CASES += test-bogus-dupe-same-single
TEST_CASES += test-bogus-dupe-diff-single
TEST_CASES += test-bogus-multi
TEST_CASES += test-bogus-multi-update
+TEST_CASES += test-bogus-versioned-provides
+TEST_CASES += test-bogus-versioned-provides-update
test-case: $(TEST_CASES)
@@ -58,3 +60,11 @@ test-bogus-multi:
test-bogus-multi-update: override DPKG_ADMINDIR = db-bogus-multi-update
test-bogus-multi-update:
$(call stderr_has,$(PKG_TUPLE),error)
+
+test-bogus-versioned-provides: override DPKG_ADMINDIR = db-bogus-versioned-provides
+test-bogus-versioned-provides:
+ $(call stderr_has,$(PKG_TUPLE),warning)
+
+test-bogus-versioned-provides-update: override DPKG_ADMINDIR = db-bogus-versioned-provides-update
+test-bogus-versioned-provides-update:
+ $(call stderr_has,$(PKG_TUPLE),warning)
diff --git a/tests/t-db/db-bogus-versioned-provides-update/status b/tests/t-db/db-bogus-versioned-provides-update/status
new file mode 100644
index 0000000..ce0b2eb
--- /dev/null
+++ b/tests/t-db/db-bogus-versioned-provides-update/status
@@ -0,0 +1,10 @@
+Package: pkg-correct-versioned-provides
+Status: install ok installed
+Priority: extra
+Section: test
+Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org>
+Architecture: amd64
+Version: 1.0
+Provides: pkg-correct (= 1.0)
+Description: test package
+ Correct versioned Provides with equal operator.
diff --git a/tests/t-db/db-bogus-versioned-provides-update/updates/.keep b/tests/t-db/db-bogus-versioned-provides-update/updates/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/t-db/db-bogus-versioned-provides-update/updates/.keep
diff --git a/tests/t-db/db-bogus-versioned-provides-update/updates/0001 b/tests/t-db/db-bogus-versioned-provides-update/updates/0001
new file mode 100644
index 0000000..4851dfb
--- /dev/null
+++ b/tests/t-db/db-bogus-versioned-provides-update/updates/0001
@@ -0,0 +1,10 @@
+Package: pkg-bogus-versioned-provides
+Status: install ok installed
+Priority: extra
+Section: test
+Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org>
+Architecture: amd64
+Version: 1.0
+Provides: pkg-bogus (>= 1.0)
+Description: test package
+ Bogus versioned provides with non-equal operator.
diff --git a/tests/t-db/db-bogus-versioned-provides/status b/tests/t-db/db-bogus-versioned-provides/status
new file mode 100644
index 0000000..bd3858c
--- /dev/null
+++ b/tests/t-db/db-bogus-versioned-provides/status
@@ -0,0 +1,21 @@
+Package: pkg-bogus-versioned-provides
+Status: install ok installed
+Priority: extra
+Section: test
+Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org>
+Architecture: amd64
+Version: 1.0
+Provides: pkg-bogus (>= 1.0)
+Description: test package
+ Bogus versioned provides with non-equal operator.
+
+Package: pkg-correct-versioned-provides
+Status: install ok installed
+Priority: extra
+Section: test
+Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org>
+Architecture: amd64
+Version: 1.0
+Provides: pkg-correct (= 1.0)
+Description: test package
+ Correct versioned Provides with equal operator.
diff --git a/tests/t-db/db-bogus-versioned-provides/updates/.keep b/tests/t-db/db-bogus-versioned-provides/updates/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/t-db/db-bogus-versioned-provides/updates/.keep