This is an automated email from the git hooks/post-receive script. dod pushed a commit to branch master in repository debsums.
commit cba965a78ccda2d251033c13678df10ec3139fc0 Author: Dominique Dumont <d...@debian.org> Date: Wed Oct 26 10:42:11 2016 +0200 test package with symlink --- t/debsums.t | 11 +++++++++++ t/fakechroots/clean-with-link/etc/fakepkg.cfg | 1 + .../clean-with-link/usr/share/doc/fakepkg/README | 1 + .../usr/share/doc/fakepkg/changelog.Debian.gz | Bin 0 -> 161 bytes .../clean-with-link/usr/share/doc/fakepkg/copyright | 14 ++++++++++++++ .../clean-with-link/usr/share/doc/fakepkg/readme.up | 1 + .../clean-with-link/var/lib/dpkg/info/fakepkg.conffiles | 1 + .../clean-with-link/var/lib/dpkg/info/fakepkg.list | 10 ++++++++++ .../clean-with-link/var/lib/dpkg/info/fakepkg.md5sums | 3 +++ t/fakechroots/clean-with-link/var/lib/dpkg/status | 12 ++++++++++++ .../clean-with-link/var/lib/dpkg/updates/.emptydir | 0 11 files changed, 54 insertions(+) diff --git a/t/debsums.t b/t/debsums.t index 1c1d584..3eff985 100644 --- a/t/debsums.t +++ b/t/debsums.t @@ -161,6 +161,17 @@ foreach my $option (qw(-c -s)) { expected_rc(2); } +######################################## +# Checks for handling of symlinks # +######################################## + +$chroot = "t/fakechroots/clean-with-link"; +@command = ($command, "--root=$chroot"); +foreach my $option (qw(-c -s)) { + run(@command, $option); + expected_rc(0); +} + ####################### ### All checks done ### ####################### diff --git a/t/fakechroots/clean-with-link/etc/fakepkg.cfg b/t/fakechroots/clean-with-link/etc/fakepkg.cfg new file mode 100644 index 0000000..362d60b --- /dev/null +++ b/t/fakechroots/clean-with-link/etc/fakepkg.cfg @@ -0,0 +1 @@ +# Valid conffile diff --git a/t/fakechroots/clean-with-link/usr/share/doc/fakepkg/README b/t/fakechroots/clean-with-link/usr/share/doc/fakepkg/README new file mode 120000 index 0000000..5a9deb7 --- /dev/null +++ b/t/fakechroots/clean-with-link/usr/share/doc/fakepkg/README @@ -0,0 +1 @@ +readme.up \ No newline at end of file diff --git a/t/fakechroots/clean-with-link/usr/share/doc/fakepkg/changelog.Debian.gz b/t/fakechroots/clean-with-link/usr/share/doc/fakepkg/changelog.Debian.gz new file mode 100644 index 0000000..bdbec22 Binary files /dev/null and b/t/fakechroots/clean-with-link/usr/share/doc/fakepkg/changelog.Debian.gz differ diff --git a/t/fakechroots/clean-with-link/usr/share/doc/fakepkg/copyright b/t/fakechroots/clean-with-link/usr/share/doc/fakepkg/copyright new file mode 100644 index 0000000..ecf2c92 --- /dev/null +++ b/t/fakechroots/clean-with-link/usr/share/doc/fakepkg/copyright @@ -0,0 +1,14 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Comment: This is a fake copyright file, part of debsums' test suite + +Files: * +Copyright: + 2015 Axel Beckert <a...@debian.org> +License: GPL + This is free software, licensed under the terms of the GNU General Public + License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A + PARTICULAR PURPOSE. + . + You are free to distribute this software under the terms of the GNU General + Public License. On Debian systems, the complete text of the GNU General + Public License can be found in /usr/share/common-licenses/GPL file. diff --git a/t/fakechroots/clean-with-link/usr/share/doc/fakepkg/readme.up b/t/fakechroots/clean-with-link/usr/share/doc/fakepkg/readme.up new file mode 100644 index 0000000..3a61404 --- /dev/null +++ b/t/fakechroots/clean-with-link/usr/share/doc/fakepkg/readme.up @@ -0,0 +1 @@ +yadayada diff --git a/t/fakechroots/clean-with-link/var/lib/dpkg/info/fakepkg.conffiles b/t/fakechroots/clean-with-link/var/lib/dpkg/info/fakepkg.conffiles new file mode 100644 index 0000000..8e3fbe9 --- /dev/null +++ b/t/fakechroots/clean-with-link/var/lib/dpkg/info/fakepkg.conffiles @@ -0,0 +1 @@ +/etc/fakepkg.cfg diff --git a/t/fakechroots/clean-with-link/var/lib/dpkg/info/fakepkg.list b/t/fakechroots/clean-with-link/var/lib/dpkg/info/fakepkg.list new file mode 100644 index 0000000..f5f51ae --- /dev/null +++ b/t/fakechroots/clean-with-link/var/lib/dpkg/info/fakepkg.list @@ -0,0 +1,10 @@ +/usr +/usr/share +/usr/share/doc +/usr/share/doc/fakepkg +/usr/share/doc/fakepkg/copyright +/usr/share/doc/fakepkg/changelog.Debian.gz +/usr/share/doc/fakepkg/readme.up +/usr/share/doc/fakepkg/README +/etc +/etc/fakepkg.cfg diff --git a/t/fakechroots/clean-with-link/var/lib/dpkg/info/fakepkg.md5sums b/t/fakechroots/clean-with-link/var/lib/dpkg/info/fakepkg.md5sums new file mode 100644 index 0000000..a7c7863 --- /dev/null +++ b/t/fakechroots/clean-with-link/var/lib/dpkg/info/fakepkg.md5sums @@ -0,0 +1,3 @@ +52f02364e60d4865543a2e935533ef33 usr/share/doc/fakepkg/copyright +082797d51b0c32d421e274b05926618a usr/share/doc/fakepkg/changelog.Debian.gz +6f821e46bd67ac27249ceaa26c207923 usr/share/doc/fakepkg/readme.up diff --git a/t/fakechroots/clean-with-link/var/lib/dpkg/status b/t/fakechroots/clean-with-link/var/lib/dpkg/status new file mode 100644 index 0000000..c040b54 --- /dev/null +++ b/t/fakechroots/clean-with-link/var/lib/dpkg/status @@ -0,0 +1,12 @@ +Package: fakepkg +Status: install ok installed +Priority: extra +Section: metapackages +Installed-Size: 123 +Maintainer: Axel Beckert <abe+debsums-testsu...@debian.org> +Architecture: all +Version: 1 +Description: dummy package for debsums' test suite + This is an empty dummy package just used for debsums' test suite. +Conffiles: + /etc/fakepkg.cfg dc0b26e33cba0138a27aa00dcc90ae09 diff --git a/t/fakechroots/clean-with-link/var/lib/dpkg/updates/.emptydir b/t/fakechroots/clean-with-link/var/lib/dpkg/updates/.emptydir new file mode 100644 index 0000000..e69de29 -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/debsums.git _______________________________________________ Pkg-perl-cvs-commits mailing list Pkg-perl-cvs-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits