diff options
Diffstat (limited to '')
52 files changed, 1018 insertions, 0 deletions
diff --git a/tests/t-provides-arch-implicit/Makefile b/tests/t-provides-arch-implicit/Makefile new file mode 100644 index 0000000..4b1ffe3 --- /dev/null +++ b/tests/t-provides-arch-implicit/Makefile @@ -0,0 +1,24 @@ +TESTS_DEB := pkg-a pkg-b pkg-dep + +include ../Test.mk + +test-case: + $(DPKG) --add-architecture i386 + $(DPKG) --add-architecture amd64 + $(DPKG_INSTALL) pkg-a.deb + $(DPKG_INSTALL) pkg-b.deb + $(DPKG_INSTALL) pkg-dep.deb + ! $(DPKG_PURGE) pkg-b + $(DPKG_PURGE) pkg-a + $(DPKG_PURGE) pkg-dep + $(DPKG_PURGE) pkg-b + + $(DPKG_INSTALL) pkg-a.deb + ! $(DPKG_INSTALL) pkg-dep.deb + $(DPKG_PURGE) pkg-a + +test-clean: + $(DPKG_PURGE) pkg-dep + $(DPKG_PURGE) pkg-b pkg-b + $(DPKG) --remove-architecture i386 + $(DPKG) --remove-architecture amd64 diff --git a/tests/t-provides-arch-implicit/pkg-a/DEBIAN/control b/tests/t-provides-arch-implicit/pkg-a/DEBIAN/control new file mode 100644 index 0000000..c2cab2e --- /dev/null +++ b/tests/t-provides-arch-implicit/pkg-a/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-a +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: i386 +Provides: pkg-v +Description: test package - provides a virtual package + diff --git a/tests/t-provides-arch-implicit/pkg-b/DEBIAN/control b/tests/t-provides-arch-implicit/pkg-b/DEBIAN/control new file mode 100644 index 0000000..b7446bc --- /dev/null +++ b/tests/t-provides-arch-implicit/pkg-b/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-b +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: amd64 +Provides: pkg-v +Description: test package - provides a virtual package + diff --git a/tests/t-provides-arch-implicit/pkg-dep/DEBIAN/control b/tests/t-provides-arch-implicit/pkg-dep/DEBIAN/control new file mode 100644 index 0000000..b0eec43 --- /dev/null +++ b/tests/t-provides-arch-implicit/pkg-dep/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-dep +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: amd64 +Depends: pkg-v +Description: test package - depends on a virtual package + diff --git a/tests/t-provides-arch-qualified/Makefile b/tests/t-provides-arch-qualified/Makefile new file mode 100644 index 0000000..0334b19 --- /dev/null +++ b/tests/t-provides-arch-qualified/Makefile @@ -0,0 +1,16 @@ +TESTS_DEB := pkg-a pkg-b + +include ../Test.mk + +test-case: + $(DPKG) --add-architecture i386 + $(DPKG) --add-architecture amd64 + $(DPKG_INSTALL) pkg-a.deb + # test if the conflicting package fails on install + ! $(DPKG_INSTALL) pkg-b.deb + +test-clean: + $(DPKG_PURGE) pkg-b + $(DPKG_PURGE) pkg-a + $(DPKG) --remove-architecture i386 + $(DPKG) --remove-architecture amd64 diff --git a/tests/t-provides-arch-qualified/pkg-a/DEBIAN/control b/tests/t-provides-arch-qualified/pkg-a/DEBIAN/control new file mode 100644 index 0000000..5b69929 --- /dev/null +++ b/tests/t-provides-arch-qualified/pkg-a/DEBIAN/control @@ -0,0 +1,10 @@ +Package: pkg-a +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: i386 +Multi-Arch: foreign +Provides: pkg-v:armel +Description: test package - provide an arch-qualified virtual package + diff --git a/tests/t-provides-arch-qualified/pkg-b/DEBIAN/control b/tests/t-provides-arch-qualified/pkg-b/DEBIAN/control new file mode 100644 index 0000000..1fe149d --- /dev/null +++ b/tests/t-provides-arch-qualified/pkg-b/DEBIAN/control @@ -0,0 +1,9 @@ +Package: pkg-b +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: amd64 +Depends: pkg-v:mips +Description: test package - unsatisfied virtual + diff --git a/tests/t-provides-self/Makefile b/tests/t-provides-self/Makefile new file mode 100644 index 0000000..caa6886 --- /dev/null +++ b/tests/t-provides-self/Makefile @@ -0,0 +1,281 @@ +TESTS_DEB := \ + pkg-provides pkg-provides-10 pkg-provides-20 pkg-provides-10-20 \ + pkg-depends pkg-depends-eq pkg-depends-le pkg-depends-ge \ + pkg-predepends pkg-predepends-eq pkg-predepends-le pkg-predepends-ge \ + pkg-breaks pkg-breaks-eq pkg-breaks-le pkg-breaks-ge \ + pkg-conflicts pkg-conflicts-eq pkg-conflicts-le pkg-conflicts-ge + +include ../Test.mk + +define PURGE_DEPENDS +$(DPKG_PURGE) pkg-depends +$(DPKG_PURGE) pkg-depends-le +$(DPKG_PURGE) pkg-depends-eq +$(DPKG_PURGE) pkg-depends-ge +endef + +test-depends: + # The provided dependency is not present, fail + ! $(DPKG_INSTALL) pkg-depends.deb + ! $(DPKG_INSTALL) pkg-depends-eq.deb + ! $(DPKG_INSTALL) pkg-depends-le.deb + ! $(DPKG_INSTALL) pkg-depends-ge.deb + + # Install the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + $(DPKG_INSTALL) pkg-depends.deb + ! $(DPKG_INSTALL) pkg-depends-eq.deb + ! $(DPKG_INSTALL) pkg-depends-le.deb + ! $(DPKG_INSTALL) pkg-depends-ge.deb + # Upgrade the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + ! $(DPKG_PURGE) pkg-provides + + $(PURGE_DEPENDS) + + # Install the providing package (pkg-provides 10) + $(DPKG_INSTALL) pkg-provides-10.deb + $(DPKG_INSTALL) pkg-depends.deb + $(DPKG_INSTALL) pkg-depends-le.deb + ! $(DPKG_INSTALL) pkg-depends-eq.deb + ! $(DPKG_INSTALL) pkg-depends-ge.deb + # Upgrade the providing package (pkg-provides 10) + $(DPKG_INSTALL) pkg-provides-10.deb + + $(PURGE_DEPENDS) + + # Install the providing package (pkg-provides 20) + $(DPKG_INSTALL) pkg-provides-20.deb + $(DPKG_INSTALL) pkg-depends.deb + $(DPKG_INSTALL) pkg-depends-eq.deb + ! $(DPKG_INSTALL) pkg-depends-le.deb + $(DPKG_INSTALL) pkg-depends-ge.deb + # Upgrade the providing package (pkg-provides 20) + $(DPKG_INSTALL) pkg-provides-20.deb + + $(PURGE_DEPENDS) + + # Install the providing package (pkg-provides 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + $(DPKG_INSTALL) pkg-depends.deb + $(DPKG_INSTALL) pkg-depends-eq.deb + $(DPKG_INSTALL) pkg-depends-le.deb + $(DPKG_INSTALL) pkg-depends-ge.deb + # Upgrade the providing package (pkg-provides 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + + $(PURGE_DEPENDS) + + # The provided dependency is removed, pass + $(DPKG_PURGE) pkg-provides + +define PURGE_PREDEPENDS +$(DPKG_PURGE) pkg-predepends +$(DPKG_PURGE) pkg-predepends-le +$(DPKG_PURGE) pkg-predepends-eq +$(DPKG_PURGE) pkg-predepends-ge +endef + +test-predepends: + # The provided predependency is not present, fail + ! $(DPKG_UNPACK) pkg-predepends.deb + ! $(DPKG_UNPACK) pkg-predepends-eq.deb + ! $(DPKG_UNPACK) pkg-predepends-le.deb + ! $(DPKG_UNPACK) pkg-predepends-ge.deb + + # Install the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + $(DPKG_UNPACK) pkg-predepends.deb + ! $(DPKG_UNPACK) pkg-predepends-eq.deb + ! $(DPKG_UNPACK) pkg-predepends-le.deb + ! $(DPKG_UNPACK) pkg-predepends-ge.deb + # Upgrade the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + ! $(DPKG_PURGE) pkg-provides + + $(PURGE_PREDEPENDS) + + # Install the providing package (pkg-provides 10) + $(DPKG_INSTALL) pkg-provides-10.deb + $(DPKG_UNPACK) pkg-predepends.deb + $(DPKG_UNPACK) pkg-predepends-le.deb + ! $(DPKG_UNPACK) pkg-predepends-eq.deb + ! $(DPKG_UNPACK) pkg-predepends-ge.deb + # Upgrade the providing package (pkg-provides 10) + $(DPKG_INSTALL) pkg-provides-10.deb + + $(PURGE_PREDEPENDS) + + # Install the providing package (pkg-provides 20) + $(DPKG_INSTALL) pkg-provides-20.deb + $(DPKG_UNPACK) pkg-predepends.deb + $(DPKG_UNPACK) pkg-predepends-eq.deb + ! $(DPKG_UNPACK) pkg-predepends-le.deb + $(DPKG_UNPACK) pkg-predepends-ge.deb + # Upgrade the providing package (pkg-provides 20) + $(DPKG_INSTALL) pkg-provides-20.deb + + $(PURGE_PREDEPENDS) + + # Install the providing package (pkg-provides 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + $(DPKG_UNPACK) pkg-predepends.deb + $(DPKG_UNPACK) pkg-predepends-eq.deb + $(DPKG_UNPACK) pkg-predepends-le.deb + $(DPKG_UNPACK) pkg-predepends-ge.deb + # Upgrade the providing package (pkg-provides 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + + $(PURGE_PREDEPENDS) + + # The provided predependency is removed, pass + $(DPKG_PURGE) pkg-provides + +define PURGE_BREAKS +$(DPKG_PURGE) pkg-breaks +$(DPKG_PURGE) pkg-breaks-le +$(DPKG_PURGE) pkg-breaks-eq +$(DPKG_PURGE) pkg-breaks-ge +endef + +test-breaks: + # The provided dependency is not present, pass + $(DPKG_INSTALL) pkg-breaks.deb + $(DPKG_INSTALL) pkg-breaks-eq.deb + $(DPKG_INSTALL) pkg-breaks-le.deb + $(DPKG_INSTALL) pkg-breaks-ge.deb + + $(PURGE_BREAKS) + + # Install the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + ! $(DPKG_INSTALL) pkg-breaks.deb + $(DPKG_INSTALL) pkg-breaks-eq.deb + $(DPKG_INSTALL) pkg-breaks-le.deb + $(DPKG_INSTALL) pkg-breaks-ge.deb + # Upgrade the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + $(DPKG_PURGE) pkg-provides + + $(PURGE_BREAKS) + + # Install the providing package (pkg-provides 10) + $(DPKG_INSTALL) pkg-provides-10.deb + ! $(DPKG_INSTALL) pkg-breaks.deb + ! $(DPKG_INSTALL) pkg-breaks-le.deb + $(DPKG_INSTALL) pkg-breaks-eq.deb + $(DPKG_INSTALL) pkg-breaks-ge.deb + # Upgrade the providing package (pkg-provides 10) + $(DPKG_INSTALL) pkg-provides-10.deb + + $(PURGE_BREAKS) + + # Install the providing package (pkg-provides 20) + $(DPKG_INSTALL) pkg-provides-20.deb + ! $(DPKG_INSTALL) pkg-breaks.deb + ! $(DPKG_INSTALL) pkg-breaks-eq.deb + $(DPKG_INSTALL) pkg-breaks-le.deb + ! $(DPKG_INSTALL) pkg-breaks-ge.deb + # Upgrade the providing package (pkg-provides 20) + $(DPKG_INSTALL) pkg-provides-20.deb + + $(PURGE_BREAKS) + + # Install the providing package (pkg-provides 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + ! $(DPKG_INSTALL) pkg-breaks.deb + ! $(DPKG_INSTALL) pkg-breaks-eq.deb + ! $(DPKG_INSTALL) pkg-breaks-le.deb + ! $(DPKG_INSTALL) pkg-breaks-ge.deb + # Upgrade the providing package (pkg-provides 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + + $(PURGE_BREAKS) + + # The provided dependency is removed, pass + $(DPKG_PURGE) pkg-provides + +define PURGE_CONFLICTS +$(DPKG_PURGE) pkg-conflicts +$(DPKG_PURGE) pkg-conflicts-le +$(DPKG_PURGE) pkg-conflicts-eq +$(DPKG_PURGE) pkg-conflicts-ge +endef + +test-conflicts: + # The provided predependency is not present, fail + $(DPKG_UNPACK) pkg-conflicts.deb + $(DPKG_UNPACK) pkg-conflicts-eq.deb + $(DPKG_UNPACK) pkg-conflicts-le.deb + $(DPKG_UNPACK) pkg-conflicts-ge.deb + + $(PURGE_CONFLICTS) + + # Install the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + ! $(DPKG_UNPACK) pkg-conflicts.deb + $(DPKG_UNPACK) pkg-conflicts-eq.deb + $(DPKG_UNPACK) pkg-conflicts-le.deb + $(DPKG_UNPACK) pkg-conflicts-ge.deb + # Upgrade the providing package (pkg-provides versionless) + $(DPKG_INSTALL) pkg-provides.deb + $(DPKG_PURGE) pkg-provides + + $(PURGE_CONFLICTS) + + # Install the providing package (pkg-provides 10) + $(DPKG_INSTALL) pkg-provides-10.deb + ! $(DPKG_UNPACK) pkg-conflicts.deb + ! $(DPKG_UNPACK) pkg-conflicts-le.deb + $(DPKG_UNPACK) pkg-conflicts-eq.deb + $(DPKG_UNPACK) pkg-conflicts-ge.deb + # Upgrade the providing package (pkg-provides 10) + $(DPKG_INSTALL) pkg-provides-10.deb + + $(PURGE_CONFLICTS) + + # Install the providing package (pkg-provides 20) + $(DPKG_INSTALL) pkg-provides-20.deb + ! $(DPKG_UNPACK) pkg-conflicts.deb + ! $(DPKG_UNPACK) pkg-conflicts-eq.deb + $(DPKG_UNPACK) pkg-conflicts-le.deb + ! $(DPKG_UNPACK) pkg-conflicts-ge.deb + # Upgrade the providing package (pkg-provides 20) + $(DPKG_INSTALL) pkg-provides-20.deb + + $(PURGE_CONFLICTS) + + # Install the providing package (pkg-provides 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + ! $(DPKG_UNPACK) pkg-conflicts.deb + ! $(DPKG_UNPACK) pkg-conflicts-eq.deb + ! $(DPKG_UNPACK) pkg-conflicts-le.deb + ! $(DPKG_UNPACK) pkg-conflicts-ge.deb + # Upgrade the providing package (pkg-provides 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + + $(PURGE_CONFLICTS) + + # The provided predependency is removed, pass + $(DPKG_PURGE) pkg-provides + +test-case: test-depends test-predepends test-breaks test-conflicts + +test-clean: + -$(DPKG_PURGE) pkg-depends + -$(DPKG_PURGE) pkg-depends-eq + -$(DPKG_PURGE) pkg-depends-ge + -$(DPKG_PURGE) pkg-depends-le + -$(DPKG_PURGE) pkg-predepends + -$(DPKG_PURGE) pkg-predepends-eq + -$(DPKG_PURGE) pkg-predepends-ge + -$(DPKG_PURGE) pkg-predepends-le + -$(DPKG_PURGE) pkg-breaks + -$(DPKG_PURGE) pkg-breaks-eq + -$(DPKG_PURGE) pkg-breaks-ge + -$(DPKG_PURGE) pkg-breaks-le + -$(DPKG_PURGE) pkg-conflicts + -$(DPKG_PURGE) pkg-conflicts-eq + -$(DPKG_PURGE) pkg-conflicts-ge + -$(DPKG_PURGE) pkg-conflicts-le + -$(DPKG_PURGE) pkg-provides diff --git a/tests/t-provides-self/pkg-breaks-eq/DEBIAN/control b/tests/t-provides-self/pkg-breaks-eq/DEBIAN/control new file mode 100644 index 0000000..b6a6edd --- /dev/null +++ b/tests/t-provides-self/pkg-breaks-eq/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-breaks-eq +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Breaks: pkg-provides (= 20) +Description: test package - package breaking on a virtual package diff --git a/tests/t-provides-self/pkg-breaks-ge/DEBIAN/control b/tests/t-provides-self/pkg-breaks-ge/DEBIAN/control new file mode 100644 index 0000000..223d00c --- /dev/null +++ b/tests/t-provides-self/pkg-breaks-ge/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-breaks-ge +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Breaks: pkg-provides (>= 20) +Description: test package - package breaking on a virtual package diff --git a/tests/t-provides-self/pkg-breaks-le/DEBIAN/control b/tests/t-provides-self/pkg-breaks-le/DEBIAN/control new file mode 100644 index 0000000..3326245 --- /dev/null +++ b/tests/t-provides-self/pkg-breaks-le/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-breaks-le +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Breaks: pkg-provides (<= 10) +Description: test package - package breaking on a virtual package diff --git a/tests/t-provides-self/pkg-breaks/DEBIAN/control b/tests/t-provides-self/pkg-breaks/DEBIAN/control new file mode 100644 index 0000000..188486f --- /dev/null +++ b/tests/t-provides-self/pkg-breaks/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-breaks +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Breaks: pkg-provides +Description: test package - package breaking on a virtual package diff --git a/tests/t-provides-self/pkg-conflicts-eq/DEBIAN/control b/tests/t-provides-self/pkg-conflicts-eq/DEBIAN/control new file mode 100644 index 0000000..0ad703c --- /dev/null +++ b/tests/t-provides-self/pkg-conflicts-eq/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conflicts-eq +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Conflicts: pkg-provides (= 20) +Description: test package - package conflicting on a virtual package diff --git a/tests/t-provides-self/pkg-conflicts-ge/DEBIAN/control b/tests/t-provides-self/pkg-conflicts-ge/DEBIAN/control new file mode 100644 index 0000000..cccc1d0 --- /dev/null +++ b/tests/t-provides-self/pkg-conflicts-ge/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conflicts-ge +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Conflicts: pkg-provides (>= 20) +Description: test package - package conflicting on a virtual package diff --git a/tests/t-provides-self/pkg-conflicts-le/DEBIAN/control b/tests/t-provides-self/pkg-conflicts-le/DEBIAN/control new file mode 100644 index 0000000..e34a5c0 --- /dev/null +++ b/tests/t-provides-self/pkg-conflicts-le/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conflicts-le +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Conflicts: pkg-provides (<= 10) +Description: test package - package conflicting on a virtual package diff --git a/tests/t-provides-self/pkg-conflicts/DEBIAN/control b/tests/t-provides-self/pkg-conflicts/DEBIAN/control new file mode 100644 index 0000000..90efe2b --- /dev/null +++ b/tests/t-provides-self/pkg-conflicts/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conflicts +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Conflicts: pkg-provides +Description: test package - package conflicting on a virtual package diff --git a/tests/t-provides-self/pkg-depends-eq/DEBIAN/control b/tests/t-provides-self/pkg-depends-eq/DEBIAN/control new file mode 100644 index 0000000..2266b03 --- /dev/null +++ b/tests/t-provides-self/pkg-depends-eq/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-depends-eq +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Depends: pkg-provides (= 20) +Description: test package - package depending on a virtual package diff --git a/tests/t-provides-self/pkg-depends-ge/DEBIAN/control b/tests/t-provides-self/pkg-depends-ge/DEBIAN/control new file mode 100644 index 0000000..60867d6 --- /dev/null +++ b/tests/t-provides-self/pkg-depends-ge/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-depends-ge +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Depends: pkg-provides (>= 20) +Description: test package - package depending on a virtual package diff --git a/tests/t-provides-self/pkg-depends-le/DEBIAN/control b/tests/t-provides-self/pkg-depends-le/DEBIAN/control new file mode 100644 index 0000000..45136eb --- /dev/null +++ b/tests/t-provides-self/pkg-depends-le/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-depends-le +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Depends: pkg-provides (<= 10) +Description: test package - package depending on a virtual package diff --git a/tests/t-provides-self/pkg-depends/DEBIAN/control b/tests/t-provides-self/pkg-depends/DEBIAN/control new file mode 100644 index 0000000..d07cc45 --- /dev/null +++ b/tests/t-provides-self/pkg-depends/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-depends +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Depends: pkg-provides +Description: test package - package depending on a virtual package diff --git a/tests/t-provides-self/pkg-predepends-eq/DEBIAN/control b/tests/t-provides-self/pkg-predepends-eq/DEBIAN/control new file mode 100644 index 0000000..11e7a0a --- /dev/null +++ b/tests/t-provides-self/pkg-predepends-eq/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-predepends-eq +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Pre-Depends: pkg-provides (= 20) +Description: test package - package pre-depending on a virtual package diff --git a/tests/t-provides-self/pkg-predepends-ge/DEBIAN/control b/tests/t-provides-self/pkg-predepends-ge/DEBIAN/control new file mode 100644 index 0000000..ff8d720 --- /dev/null +++ b/tests/t-provides-self/pkg-predepends-ge/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-predepends-ge +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Pre-Depends: pkg-provides (>= 20) +Description: test package - package pre-depending on a virtual package diff --git a/tests/t-provides-self/pkg-predepends-le/DEBIAN/control b/tests/t-provides-self/pkg-predepends-le/DEBIAN/control new file mode 100644 index 0000000..b7df6fb --- /dev/null +++ b/tests/t-provides-self/pkg-predepends-le/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-predepends-le +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Pre-Depends: pkg-provides (<= 10) +Description: test package - package pre-depending on a virtual package diff --git a/tests/t-provides-self/pkg-predepends/DEBIAN/control b/tests/t-provides-self/pkg-predepends/DEBIAN/control new file mode 100644 index 0000000..8423965 --- /dev/null +++ b/tests/t-provides-self/pkg-predepends/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-predepends +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Pre-Depends: pkg-provides +Description: test package - package pre-depending on a virtual package diff --git a/tests/t-provides-self/pkg-provides-10-20/DEBIAN/control b/tests/t-provides-self/pkg-provides-10-20/DEBIAN/control new file mode 100644 index 0000000..37dbe97 --- /dev/null +++ b/tests/t-provides-self/pkg-provides-10-20/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-provides +Version: 10 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Provides: pkg-provides (= 20) +Description: test package - package providing a versioned virtual package diff --git a/tests/t-provides-self/pkg-provides-10/DEBIAN/control b/tests/t-provides-self/pkg-provides-10/DEBIAN/control new file mode 100644 index 0000000..5fa91ae --- /dev/null +++ b/tests/t-provides-self/pkg-provides-10/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-provides +Version: 10 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Provides: pkg-provides (= 10) +Description: test package - package providing a versioned virtual package diff --git a/tests/t-provides-self/pkg-provides-20/DEBIAN/control b/tests/t-provides-self/pkg-provides-20/DEBIAN/control new file mode 100644 index 0000000..3c94af2 --- /dev/null +++ b/tests/t-provides-self/pkg-provides-20/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-provides +Version: 20 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Provides: pkg-provides (= 20) +Description: test package - package providing a versioned virtual package diff --git a/tests/t-provides-self/pkg-provides/DEBIAN/control b/tests/t-provides-self/pkg-provides/DEBIAN/control new file mode 100644 index 0000000..865b72a --- /dev/null +++ b/tests/t-provides-self/pkg-provides/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-provides +Version: 15 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Provides: pkg-provides +Description: test package - package providing a virtual package diff --git a/tests/t-provides/Makefile b/tests/t-provides/Makefile new file mode 100644 index 0000000..6794c20 --- /dev/null +++ b/tests/t-provides/Makefile @@ -0,0 +1,307 @@ +TESTS_DEB := \ + pkg-provides pkg-provides-10 pkg-provides-20 pkg-provides-10-20 \ + pkg-depends pkg-depends-eq pkg-depends-le pkg-depends-ge \ + pkg-predepends pkg-predepends-eq pkg-predepends-le pkg-predepends-ge \ + pkg-breaks pkg-breaks-eq pkg-breaks-le pkg-breaks-ge \ + pkg-conflicts pkg-conflicts-eq pkg-conflicts-le pkg-conflicts-ge \ + pkg-a-depends-ge-lt pkg-b-provides-10 pkg-c-provides-20 + +include ../Test.mk + +define PURGE_DEPENDS +$(DPKG_PURGE) pkg-depends +$(DPKG_PURGE) pkg-depends-le +$(DPKG_PURGE) pkg-depends-eq +$(DPKG_PURGE) pkg-depends-ge +endef + +test-depends: + # The provided dependency is not present, fail + ! $(DPKG_INSTALL) pkg-depends.deb + ! $(DPKG_INSTALL) pkg-depends-eq.deb + ! $(DPKG_INSTALL) pkg-depends-le.deb + ! $(DPKG_INSTALL) pkg-depends-ge.deb + + # Install the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + $(DPKG_INSTALL) pkg-depends.deb + ! $(DPKG_INSTALL) pkg-depends-eq.deb + ! $(DPKG_INSTALL) pkg-depends-le.deb + ! $(DPKG_INSTALL) pkg-depends-ge.deb + # Upgrade the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + ! $(DPKG_PURGE) pkg-provides + + $(PURGE_DEPENDS) + + # Install the providing package (pkg-virtual 10) + $(DPKG_INSTALL) pkg-provides-10.deb + $(DPKG_INSTALL) pkg-depends.deb + $(DPKG_INSTALL) pkg-depends-le.deb + ! $(DPKG_INSTALL) pkg-depends-eq.deb + ! $(DPKG_INSTALL) pkg-depends-ge.deb + # Upgrade the providing package (pkg-virtual 10) + $(DPKG_INSTALL) pkg-provides-10.deb + + $(PURGE_DEPENDS) + + # Install the providing package (pkg-virtual 20) + $(DPKG_INSTALL) pkg-provides-20.deb + $(DPKG_INSTALL) pkg-depends.deb + $(DPKG_INSTALL) pkg-depends-eq.deb + ! $(DPKG_INSTALL) pkg-depends-le.deb + $(DPKG_INSTALL) pkg-depends-ge.deb + # Upgrade the providing package (pkg-virtual 20) + $(DPKG_INSTALL) pkg-provides-20.deb + + $(PURGE_DEPENDS) + + # Install the providing package (pkg-virtual 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + $(DPKG_INSTALL) pkg-depends.deb + $(DPKG_INSTALL) pkg-depends-eq.deb + $(DPKG_INSTALL) pkg-depends-le.deb + $(DPKG_INSTALL) pkg-depends-ge.deb + # Upgrade the providing package (pkg-virtual 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + + $(PURGE_DEPENDS) + + $(DPKG_PURGE) pkg-provides + + # Install the providing package (pkg-virtual 20) + $(DPKG_INSTALL) pkg-c-provides-20.deb + ! $(DPKG_INSTALL) pkg-a-depends-ge-lt.deb + $(DPKG_PURGE) pkg-a-depends-ge-lt + $(DPKG_PURGE) pkg-c-provides + + # Install the providing package (pkg-virtual 10) + $(DPKG_INSTALL) pkg-b-provides-10.deb + $(DPKG_INSTALL) pkg-a-depends-ge-lt.deb + # Install the providing package (pkg-virtual 20) + $(DPKG_INSTALL) pkg-c-provides-20.deb + + # Cannot purge the only package satisfying the dependency + ! $(DPKG_PURGE) pkg-b-provides + # Can purge package not satisfying the dependency + $(DPKG_PURGE) pkg-c-provides + + $(DPKG_PURGE) pkg-a-depends-ge-lt + $(DPKG_PURGE) pkg-b-provides + + # The provided dependency is removed, pass + $(DPKG_PURGE) pkg-provides + +define PURGE_PREDEPENDS +$(DPKG_PURGE) pkg-predepends +$(DPKG_PURGE) pkg-predepends-le +$(DPKG_PURGE) pkg-predepends-eq +$(DPKG_PURGE) pkg-predepends-ge +endef + +test-predepends: + # The provided predependency is not present, fail + ! $(DPKG_UNPACK) pkg-predepends.deb + ! $(DPKG_UNPACK) pkg-predepends-eq.deb + ! $(DPKG_UNPACK) pkg-predepends-le.deb + ! $(DPKG_UNPACK) pkg-predepends-ge.deb + + # Install the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + $(DPKG_UNPACK) pkg-predepends.deb + ! $(DPKG_UNPACK) pkg-predepends-eq.deb + ! $(DPKG_UNPACK) pkg-predepends-le.deb + ! $(DPKG_UNPACK) pkg-predepends-ge.deb + # Upgrade the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + ! $(DPKG_PURGE) pkg-provides + + $(PURGE_PREDEPENDS) + + # Install the providing package (pkg-virtual 10) + $(DPKG_INSTALL) pkg-provides-10.deb + $(DPKG_UNPACK) pkg-predepends.deb + $(DPKG_UNPACK) pkg-predepends-le.deb + ! $(DPKG_UNPACK) pkg-predepends-eq.deb + ! $(DPKG_UNPACK) pkg-predepends-ge.deb + # Upgrade the providing package (pkg-virtual 10) + $(DPKG_INSTALL) pkg-provides-10.deb + + $(PURGE_PREDEPENDS) + + # Install the providing package (pkg-virtual 20) + $(DPKG_INSTALL) pkg-provides-20.deb + $(DPKG_UNPACK) pkg-predepends.deb + $(DPKG_UNPACK) pkg-predepends-eq.deb + ! $(DPKG_UNPACK) pkg-predepends-le.deb + $(DPKG_UNPACK) pkg-predepends-ge.deb + # Upgrade the providing package (pkg-virtual 20) + $(DPKG_INSTALL) pkg-provides-20.deb + + $(PURGE_PREDEPENDS) + + # Install the providing package (pkg-virtual 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + $(DPKG_UNPACK) pkg-predepends.deb + $(DPKG_UNPACK) pkg-predepends-eq.deb + $(DPKG_UNPACK) pkg-predepends-le.deb + $(DPKG_UNPACK) pkg-predepends-ge.deb + # Upgrade the providing package (pkg-virtual 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + + $(PURGE_PREDEPENDS) + + # The provided predependency is removed, pass + $(DPKG_PURGE) pkg-provides + +define PURGE_BREAKS +$(DPKG_PURGE) pkg-breaks +$(DPKG_PURGE) pkg-breaks-le +$(DPKG_PURGE) pkg-breaks-eq +$(DPKG_PURGE) pkg-breaks-ge +endef + +test-breaks: + # The provided dependency is not present, pass + $(DPKG_INSTALL) pkg-breaks.deb + $(DPKG_INSTALL) pkg-breaks-eq.deb + $(DPKG_INSTALL) pkg-breaks-le.deb + $(DPKG_INSTALL) pkg-breaks-ge.deb + + $(PURGE_BREAKS) + + # Install the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + ! $(DPKG_INSTALL) pkg-breaks.deb + $(DPKG_INSTALL) pkg-breaks-eq.deb + $(DPKG_INSTALL) pkg-breaks-le.deb + $(DPKG_INSTALL) pkg-breaks-ge.deb + # Upgrade the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + $(DPKG_PURGE) pkg-provides + + $(PURGE_BREAKS) + + # Install the providing package (pkg-virtual 10) + $(DPKG_INSTALL) pkg-provides-10.deb + ! $(DPKG_INSTALL) pkg-breaks.deb + ! $(DPKG_INSTALL) pkg-breaks-le.deb + $(DPKG_INSTALL) pkg-breaks-eq.deb + $(DPKG_INSTALL) pkg-breaks-ge.deb + # Upgrade the providing package (pkg-virtual 10) + $(DPKG_INSTALL) pkg-provides-10.deb + + $(PURGE_BREAKS) + + # Install the providing package (pkg-virtual 20) + $(DPKG_INSTALL) pkg-provides-20.deb + ! $(DPKG_INSTALL) pkg-breaks.deb + ! $(DPKG_INSTALL) pkg-breaks-eq.deb + $(DPKG_INSTALL) pkg-breaks-le.deb + ! $(DPKG_INSTALL) pkg-breaks-ge.deb + # Upgrade the providing package (pkg-virtual 20) + $(DPKG_INSTALL) pkg-provides-20.deb + + $(PURGE_BREAKS) + + # Install the providing package (pkg-virtual 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + ! $(DPKG_INSTALL) pkg-breaks.deb + ! $(DPKG_INSTALL) pkg-breaks-eq.deb + ! $(DPKG_INSTALL) pkg-breaks-le.deb + ! $(DPKG_INSTALL) pkg-breaks-ge.deb + # Upgrade the providing package (pkg-virtual 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + + $(PURGE_BREAKS) + + # The provided dependency is removed, pass + $(DPKG_PURGE) pkg-provides + +define PURGE_CONFLICTS +$(DPKG_PURGE) pkg-conflicts +$(DPKG_PURGE) pkg-conflicts-le +$(DPKG_PURGE) pkg-conflicts-eq +$(DPKG_PURGE) pkg-conflicts-ge +endef + +test-conflicts: + # The provided predependency is not present, fail + $(DPKG_UNPACK) pkg-conflicts.deb + $(DPKG_UNPACK) pkg-conflicts-eq.deb + $(DPKG_UNPACK) pkg-conflicts-le.deb + $(DPKG_UNPACK) pkg-conflicts-ge.deb + + $(PURGE_CONFLICTS) + + # Install the providing package (versionless) + $(DPKG_INSTALL) pkg-provides.deb + ! $(DPKG_UNPACK) pkg-conflicts.deb + $(DPKG_UNPACK) pkg-conflicts-eq.deb + $(DPKG_UNPACK) pkg-conflicts-le.deb + $(DPKG_UNPACK) pkg-conflicts-ge.deb + # Upgrade the providing package (pkg-virtual versionless) + $(DPKG_INSTALL) pkg-provides.deb + $(DPKG_PURGE) pkg-provides + + $(PURGE_CONFLICTS) + + # Install the providing package (pkg-virtual 10) + $(DPKG_INSTALL) pkg-provides-10.deb + ! $(DPKG_UNPACK) pkg-conflicts.deb + ! $(DPKG_UNPACK) pkg-conflicts-le.deb + $(DPKG_UNPACK) pkg-conflicts-eq.deb + $(DPKG_UNPACK) pkg-conflicts-ge.deb + # Upgrade the providing package (pkg-virtual 10) + $(DPKG_INSTALL) pkg-provides-10.deb + + $(PURGE_CONFLICTS) + + # Install the providing package (pkg-virtual 20) + $(DPKG_INSTALL) pkg-provides-20.deb + ! $(DPKG_UNPACK) pkg-conflicts.deb + ! $(DPKG_UNPACK) pkg-conflicts-eq.deb + $(DPKG_UNPACK) pkg-conflicts-le.deb + ! $(DPKG_UNPACK) pkg-conflicts-ge.deb + # Upgrade the providing package (pkg-virtual 20) + $(DPKG_INSTALL) pkg-provides-20.deb + + $(PURGE_CONFLICTS) + + # Install the providing package (pkg-virtual 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + ! $(DPKG_UNPACK) pkg-conflicts.deb + ! $(DPKG_UNPACK) pkg-conflicts-eq.deb + ! $(DPKG_UNPACK) pkg-conflicts-le.deb + ! $(DPKG_UNPACK) pkg-conflicts-ge.deb + # Upgrade the providing package (pkg-virtual 10 && 20) + $(DPKG_INSTALL) pkg-provides-10-20.deb + + $(PURGE_CONFLICTS) + + # The provided predependency is removed, pass + $(DPKG_PURGE) pkg-provides + +test-case: test-depends test-predepends test-breaks test-conflicts + +test-clean: + -$(DPKG_PURGE) pkg-depends + -$(DPKG_PURGE) pkg-depends-eq + -$(DPKG_PURGE) pkg-depends-ge + -$(DPKG_PURGE) pkg-depends-le + -$(DPKG_PURGE) pkg-predepends + -$(DPKG_PURGE) pkg-predepends-eq + -$(DPKG_PURGE) pkg-predepends-ge + -$(DPKG_PURGE) pkg-predepends-le + -$(DPKG_PURGE) pkg-breaks + -$(DPKG_PURGE) pkg-breaks-eq + -$(DPKG_PURGE) pkg-breaks-ge + -$(DPKG_PURGE) pkg-breaks-le + -$(DPKG_PURGE) pkg-conflicts + -$(DPKG_PURGE) pkg-conflicts-eq + -$(DPKG_PURGE) pkg-conflicts-ge + -$(DPKG_PURGE) pkg-conflicts-le + -$(DPKG_PURGE) pkg-provides + -$(DPKG_PURGE) pkg-a-depends-ge-lt + -$(DPKG_PURGE) pkg-b-provides + -$(DPKG_PURGE) pkg-c-provides diff --git a/tests/t-provides/pkg-a-depends-ge-lt/DEBIAN/control b/tests/t-provides/pkg-a-depends-ge-lt/DEBIAN/control new file mode 100644 index 0000000..77cc4b0 --- /dev/null +++ b/tests/t-provides/pkg-a-depends-ge-lt/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-a-depends-ge-lt +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Depends: pkg-virtual (>= 10), pkg-virtual (<< 20) +Description: test package - package depending on a virtual package diff --git a/tests/t-provides/pkg-b-provides-10/DEBIAN/control b/tests/t-provides/pkg-b-provides-10/DEBIAN/control new file mode 100644 index 0000000..105d44c --- /dev/null +++ b/tests/t-provides/pkg-b-provides-10/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-b-provides +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Provides: pkg-virtual (= 10) +Description: test package - package providing a versioned virtual package diff --git a/tests/t-provides/pkg-breaks-eq/DEBIAN/control b/tests/t-provides/pkg-breaks-eq/DEBIAN/control new file mode 100644 index 0000000..67d20b1 --- /dev/null +++ b/tests/t-provides/pkg-breaks-eq/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-breaks-eq +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Breaks: pkg-virtual (= 20) +Description: test package - package breaking on a virtual package diff --git a/tests/t-provides/pkg-breaks-ge/DEBIAN/control b/tests/t-provides/pkg-breaks-ge/DEBIAN/control new file mode 100644 index 0000000..33caed5 --- /dev/null +++ b/tests/t-provides/pkg-breaks-ge/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-breaks-ge +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Breaks: pkg-virtual (>= 20) +Description: test package - package breaking on a virtual package diff --git a/tests/t-provides/pkg-breaks-le/DEBIAN/control b/tests/t-provides/pkg-breaks-le/DEBIAN/control new file mode 100644 index 0000000..05152e2 --- /dev/null +++ b/tests/t-provides/pkg-breaks-le/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-breaks-le +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Breaks: pkg-virtual (<= 10) +Description: test package - package breaking on a virtual package diff --git a/tests/t-provides/pkg-breaks/DEBIAN/control b/tests/t-provides/pkg-breaks/DEBIAN/control new file mode 100644 index 0000000..6857392 --- /dev/null +++ b/tests/t-provides/pkg-breaks/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-breaks +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Breaks: pkg-virtual +Description: test package - package breaking on a virtual package diff --git a/tests/t-provides/pkg-c-provides-20/DEBIAN/control b/tests/t-provides/pkg-c-provides-20/DEBIAN/control new file mode 100644 index 0000000..a69d26a --- /dev/null +++ b/tests/t-provides/pkg-c-provides-20/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-c-provides +Version: 2 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Provides: pkg-virtual (= 20) +Description: test package - package providing a versioned virtual package diff --git a/tests/t-provides/pkg-conflicts-eq/DEBIAN/control b/tests/t-provides/pkg-conflicts-eq/DEBIAN/control new file mode 100644 index 0000000..ca077d1 --- /dev/null +++ b/tests/t-provides/pkg-conflicts-eq/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conflicts-eq +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Conflicts: pkg-virtual (= 20) +Description: test package - package conflicting on a virtual package diff --git a/tests/t-provides/pkg-conflicts-ge/DEBIAN/control b/tests/t-provides/pkg-conflicts-ge/DEBIAN/control new file mode 100644 index 0000000..d93415f --- /dev/null +++ b/tests/t-provides/pkg-conflicts-ge/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conflicts-ge +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Conflicts: pkg-virtual (>= 20) +Description: test package - package conflicting on a virtual package diff --git a/tests/t-provides/pkg-conflicts-le/DEBIAN/control b/tests/t-provides/pkg-conflicts-le/DEBIAN/control new file mode 100644 index 0000000..4f62226 --- /dev/null +++ b/tests/t-provides/pkg-conflicts-le/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conflicts-le +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Conflicts: pkg-virtual (<= 10) +Description: test package - package conflicting on a virtual package diff --git a/tests/t-provides/pkg-conflicts/DEBIAN/control b/tests/t-provides/pkg-conflicts/DEBIAN/control new file mode 100644 index 0000000..1b03248 --- /dev/null +++ b/tests/t-provides/pkg-conflicts/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-conflicts +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Conflicts: pkg-virtual +Description: test package - package conflicting on a virtual package diff --git a/tests/t-provides/pkg-depends-eq/DEBIAN/control b/tests/t-provides/pkg-depends-eq/DEBIAN/control new file mode 100644 index 0000000..b0c1bc5 --- /dev/null +++ b/tests/t-provides/pkg-depends-eq/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-depends-eq +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Depends: pkg-virtual (= 20) +Description: test package - package depending on a virtual package diff --git a/tests/t-provides/pkg-depends-ge/DEBIAN/control b/tests/t-provides/pkg-depends-ge/DEBIAN/control new file mode 100644 index 0000000..7c874a4 --- /dev/null +++ b/tests/t-provides/pkg-depends-ge/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-depends-ge +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Depends: pkg-virtual (>= 20) +Description: test package - package depending on a virtual package diff --git a/tests/t-provides/pkg-depends-le/DEBIAN/control b/tests/t-provides/pkg-depends-le/DEBIAN/control new file mode 100644 index 0000000..706c086 --- /dev/null +++ b/tests/t-provides/pkg-depends-le/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-depends-le +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Depends: pkg-virtual (<= 10) +Description: test package - package depending on a virtual package diff --git a/tests/t-provides/pkg-depends/DEBIAN/control b/tests/t-provides/pkg-depends/DEBIAN/control new file mode 100644 index 0000000..57572b8 --- /dev/null +++ b/tests/t-provides/pkg-depends/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-depends +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Depends: pkg-virtual +Description: test package - package depending on a virtual package diff --git a/tests/t-provides/pkg-predepends-eq/DEBIAN/control b/tests/t-provides/pkg-predepends-eq/DEBIAN/control new file mode 100644 index 0000000..25b1b46 --- /dev/null +++ b/tests/t-provides/pkg-predepends-eq/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-predepends-eq +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Pre-Depends: pkg-virtual (= 20) +Description: test package - package pre-depending on a virtual package diff --git a/tests/t-provides/pkg-predepends-ge/DEBIAN/control b/tests/t-provides/pkg-predepends-ge/DEBIAN/control new file mode 100644 index 0000000..65d155f --- /dev/null +++ b/tests/t-provides/pkg-predepends-ge/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-predepends-ge +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Pre-Depends: pkg-virtual (>= 20) +Description: test package - package pre-depending on a virtual package diff --git a/tests/t-provides/pkg-predepends-le/DEBIAN/control b/tests/t-provides/pkg-predepends-le/DEBIAN/control new file mode 100644 index 0000000..d95d89b --- /dev/null +++ b/tests/t-provides/pkg-predepends-le/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-predepends-le +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Pre-Depends: pkg-virtual (<= 10) +Description: test package - package pre-depending on a virtual package diff --git a/tests/t-provides/pkg-predepends/DEBIAN/control b/tests/t-provides/pkg-predepends/DEBIAN/control new file mode 100644 index 0000000..ca1df84 --- /dev/null +++ b/tests/t-provides/pkg-predepends/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-predepends +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Pre-Depends: pkg-virtual +Description: test package - package pre-depending on a virtual package diff --git a/tests/t-provides/pkg-provides-10-20/DEBIAN/control b/tests/t-provides/pkg-provides-10-20/DEBIAN/control new file mode 100644 index 0000000..ac83a68 --- /dev/null +++ b/tests/t-provides/pkg-provides-10-20/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-provides +Version: 3 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Provides: pkg-virtual (= 10), pkg-virtual (= 20) +Description: test package - package providing a versioned virtual package diff --git a/tests/t-provides/pkg-provides-10/DEBIAN/control b/tests/t-provides/pkg-provides-10/DEBIAN/control new file mode 100644 index 0000000..d4014e3 --- /dev/null +++ b/tests/t-provides/pkg-provides-10/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-provides +Version: 1 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Provides: pkg-virtual (= 10) +Description: test package - package providing a versioned virtual package diff --git a/tests/t-provides/pkg-provides-20/DEBIAN/control b/tests/t-provides/pkg-provides-20/DEBIAN/control new file mode 100644 index 0000000..f923647 --- /dev/null +++ b/tests/t-provides/pkg-provides-20/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-provides +Version: 2 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Provides: pkg-virtual (= 20) +Description: test package - package providing a versioned virtual package diff --git a/tests/t-provides/pkg-provides/DEBIAN/control b/tests/t-provides/pkg-provides/DEBIAN/control new file mode 100644 index 0000000..10f4932 --- /dev/null +++ b/tests/t-provides/pkg-provides/DEBIAN/control @@ -0,0 +1,8 @@ +Package: pkg-provides +Version: 0 +Section: test +Priority: extra +Maintainer: Dpkg Developers <debian-dpkg@lists.debian.org> +Architecture: all +Provides: pkg-virtual +Description: test package - package providing a virtual package |