On 18/10/2011 14:56, Mehdi Dogguy wrote: > #3) a bug in britney fixed by Adam recently (that requires disabling > compatible mode). But the test passes using the buggy britney… so maybe I > did something wrong. >
Yes, It was "s/Section: lib/&s/g". Thanks to Adam for spotting it! Attached is the updated patch for failed test. Kind regards, -- Mehdi Dogguy مهدي الدڤي http://dogguy.org/
>From e460ab34f929f0e522767b8cddab3d439d7e036c Mon Sep 17 00:00:00 2001 From: Mehdi Dogguy <[email protected]> Date: Tue, 18 Oct 2011 11:47:27 +0200 Subject: [PATCH] Add regression test basic-removed-binary-package --- t/basic-removed-binary-package/description | 10 +++++++++ t/basic-removed-binary-package/expected | 3 ++ .../var/data/testing/Dates | 1 + .../var/data/testing/Hints | 1 + .../var/data/testing/Packages_i386 | 21 ++++++++++++++++++++ .../var/data/testing/Sources | 6 +++++ .../var/data/testing/Urgency | 1 + .../var/data/unstable/Hints | 1 + .../var/data/unstable/Packages_i386 | 13 ++++++++++++ .../var/data/unstable/Sources | 6 +++++ 10 files changed, 63 insertions(+), 0 deletions(-) create mode 100644 t/basic-removed-binary-package/description create mode 100644 t/basic-removed-binary-package/expected create mode 100644 t/basic-removed-binary-package/hints/test-hints create mode 100644 t/basic-removed-binary-package/input/FauxPackages create mode 100644 t/basic-removed-binary-package/var/data/testing-proposed-updates/BugsV create mode 100644 t/basic-removed-binary-package/var/data/testing-proposed-updates/Packages_i386 create mode 100644 t/basic-removed-binary-package/var/data/testing-proposed-updates/Sources create mode 100644 t/basic-removed-binary-package/var/data/testing/BugsV create mode 100644 t/basic-removed-binary-package/var/data/testing/Dates create mode 120000 t/basic-removed-binary-package/var/data/testing/Hints create mode 100644 t/basic-removed-binary-package/var/data/testing/Packages_i386 create mode 100644 t/basic-removed-binary-package/var/data/testing/Sources create mode 100644 t/basic-removed-binary-package/var/data/testing/Urgency create mode 100644 t/basic-removed-binary-package/var/data/unstable/BugsV create mode 120000 t/basic-removed-binary-package/var/data/unstable/Hints create mode 100644 t/basic-removed-binary-package/var/data/unstable/Packages_i386 create mode 100644 t/basic-removed-binary-package/var/data/unstable/Sources diff --git a/t/basic-removed-binary-package/description b/t/basic-removed-binary-package/description new file mode 100644 index 0000000..59e9cdb --- /dev/null +++ b/t/basic-removed-binary-package/description @@ -0,0 +1,10 @@ +Regression test (seen with fbreader) + +This is a regression test. The situation has been experienced with fbreader: +src:fbreader dropped one of its binary packages in sid (say bin:A) but the +other binary package bin:fbreader had a dependency on bin:A in testing only. +This led britney2 to think that fbreader could not be removed without increasing +the uninstallability count, which is false since the newer bin:fbreader dropped +its dependency on bin:A in sid. + +This bug has been fixed in britney2.git:94071b16491e90d78605791a316141b58cc3c6fc diff --git a/t/basic-removed-binary-package/expected b/t/basic-removed-binary-package/expected new file mode 100644 index 0000000..9631d07 --- /dev/null +++ b/t/basic-removed-binary-package/expected @@ -0,0 +1,3 @@ +fbreader 0.10.7dfsg-5 i386 libs +libzltext0.10 0.10.7dfsg-5 i386 libs +fbreader 0.10.7dfsg-5 source libs diff --git a/t/basic-removed-binary-package/hints/test-hints b/t/basic-removed-binary-package/hints/test-hints new file mode 100644 index 0000000..e69de29 diff --git a/t/basic-removed-binary-package/input/FauxPackages b/t/basic-removed-binary-package/input/FauxPackages new file mode 100644 index 0000000..e69de29 diff --git a/t/basic-removed-binary-package/var/data/testing-proposed-updates/BugsV b/t/basic-removed-binary-package/var/data/testing-proposed-updates/BugsV new file mode 100644 index 0000000..e69de29 diff --git a/t/basic-removed-binary-package/var/data/testing-proposed-updates/Packages_i386 b/t/basic-removed-binary-package/var/data/testing-proposed-updates/Packages_i386 new file mode 100644 index 0000000..e69de29 diff --git a/t/basic-removed-binary-package/var/data/testing-proposed-updates/Sources b/t/basic-removed-binary-package/var/data/testing-proposed-updates/Sources new file mode 100644 index 0000000..e69de29 diff --git a/t/basic-removed-binary-package/var/data/testing/BugsV b/t/basic-removed-binary-package/var/data/testing/BugsV new file mode 100644 index 0000000..e69de29 diff --git a/t/basic-removed-binary-package/var/data/testing/Dates b/t/basic-removed-binary-package/var/data/testing/Dates new file mode 100644 index 0000000..da362e6 --- /dev/null +++ b/t/basic-removed-binary-package/var/data/testing/Dates @@ -0,0 +1 @@ +fbreader 0.10.7dfsg-5 15232 diff --git a/t/basic-removed-binary-package/var/data/testing/Hints b/t/basic-removed-binary-package/var/data/testing/Hints new file mode 120000 index 0000000..c641a30 --- /dev/null +++ b/t/basic-removed-binary-package/var/data/testing/Hints @@ -0,0 +1 @@ +../../../hints/ \ No newline at end of file diff --git a/t/basic-removed-binary-package/var/data/testing/Packages_i386 b/t/basic-removed-binary-package/var/data/testing/Packages_i386 new file mode 100644 index 0000000..683196e --- /dev/null +++ b/t/basic-removed-binary-package/var/data/testing/Packages_i386 @@ -0,0 +1,21 @@ +Package: fbreader +Architecture: i386 +Depends: libzltext0.10 (>= 0.10.7dfsg-4), libzlui-maemo (>= 0.10.7dfsg-4) +Priority: optional +Section: libs +Version: 0.10.7dfsg-4 + +Package: libzlui-maemo +Architecture: i386 +Depends: libzltext0.10 (= 0.10.7dfsg-4) +Priority: optional +Section: libs +Source: fbreader +Version: 0.10.7dfsg-4 + +Package: libzltext0.10 +Architecture: i386 +Priority: optional +Section: libs +Source: fbreader +Version: 0.10.7dfsg-4 diff --git a/t/basic-removed-binary-package/var/data/testing/Sources b/t/basic-removed-binary-package/var/data/testing/Sources new file mode 100644 index 0000000..9dff5e6 --- /dev/null +++ b/t/basic-removed-binary-package/var/data/testing/Sources @@ -0,0 +1,6 @@ +Package: fbreader +Binary: fbreader, libzlui-maemo, libzltext0.10 +Maintainer: The R-Team <[email protected]> +Standards-Version: 3.9.2 +Section: libs +Version: 0.10.7dfsg-4 diff --git a/t/basic-removed-binary-package/var/data/testing/Urgency b/t/basic-removed-binary-package/var/data/testing/Urgency new file mode 100644 index 0000000..bb2ff17 --- /dev/null +++ b/t/basic-removed-binary-package/var/data/testing/Urgency @@ -0,0 +1 @@ +fbreader 0.10.7dfsg-4 low diff --git a/t/basic-removed-binary-package/var/data/unstable/BugsV b/t/basic-removed-binary-package/var/data/unstable/BugsV new file mode 100644 index 0000000..e69de29 diff --git a/t/basic-removed-binary-package/var/data/unstable/Hints b/t/basic-removed-binary-package/var/data/unstable/Hints new file mode 120000 index 0000000..c641a30 --- /dev/null +++ b/t/basic-removed-binary-package/var/data/unstable/Hints @@ -0,0 +1 @@ +../../../hints/ \ No newline at end of file diff --git a/t/basic-removed-binary-package/var/data/unstable/Packages_i386 b/t/basic-removed-binary-package/var/data/unstable/Packages_i386 new file mode 100644 index 0000000..c6c6ca5 --- /dev/null +++ b/t/basic-removed-binary-package/var/data/unstable/Packages_i386 @@ -0,0 +1,13 @@ +Package: fbreader +Architecture: i386 +Depends: libzltext0.10 (>= 0.10.7dfsg-4) +Priority: optional +Section: libs +Version: 0.10.7dfsg-5 + +Package: libzltext0.10 +Architecture: i386 +Priority: optional +Section: libs +Source: fbreader +Version: 0.10.7dfsg-5 diff --git a/t/basic-removed-binary-package/var/data/unstable/Sources b/t/basic-removed-binary-package/var/data/unstable/Sources new file mode 100644 index 0000000..2be48a9 --- /dev/null +++ b/t/basic-removed-binary-package/var/data/unstable/Sources @@ -0,0 +1,6 @@ +Package: fbreader +Binary: fbreader, libzltext0.10 +Maintainer: The R-Team <[email protected]> +Standards-Version: 3.9.2 +Section: libs +Version: 0.10.7dfsg-5 -- 1.7.2.5

