[debsums] 01/01: Test suite: Move all fakechroots into a single base directory
Axel Beckert
abe at deuxchevaux.org
Thu Mar 26 00:57:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository debsums.
commit 296aca59bddf7441111a55871199c31ddab1146c
Author: Axel Beckert <abe at deuxchevaux.org>
Date: Thu Mar 26 01:57:11 2015 +0100
Test suite: Move all fakechroots into a single base directory
---
t/debsums.t | 12 ++++++------
t/{fakechroot-clean => fakechroots/clean}/etc/fakepkg.cfg | 0
.../clean}/usr/share/doc/fakepkg/changelog.Debian.gz | Bin
.../clean}/usr/share/doc/fakepkg/copyright | 0
.../clean}/var/lib/dpkg/info/fakepkg.conffiles | 0
.../clean}/var/lib/dpkg/info/fakepkg.list | 0
.../clean}/var/lib/dpkg/info/fakepkg.md5sums | 0
.../clean}/var/lib/dpkg/status | 0
.../clean}/var/lib/dpkg/updates/.emptydir | 0
.../dirty}/etc/fakepkg-broken.cfg | 0
t/{fakechroot-dirty => fakechroots/dirty}/etc/fakepkg.cfg | 0
.../dirty}/usr/share/doc/fakepkg/README | 0
.../dirty}/usr/share/doc/fakepkg/changelog.Debian.gz | Bin
.../dirty}/usr/share/doc/fakepkg/copyright | 0
.../dirty}/var/lib/dpkg/info/fakepkg.conffiles | 0
.../dirty}/var/lib/dpkg/info/fakepkg.list | 0
.../dirty}/var/lib/dpkg/info/fakepkg.md5sums | 0
.../dirty}/var/lib/dpkg/status | 0
.../dirty}/var/lib/dpkg/updates/.emptydir | 0
19 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/t/debsums.t b/t/debsums.t
index d9ee365..a7c48a4 100644
--- a/t/debsums.t
+++ b/t/debsums.t
@@ -26,20 +26,20 @@ foreach my $cmd (qw(./debsums /usr/bin/debsums)) {
ok($command, "Command debsums found at $command");
foreach my $state (qw(clean dirty)) {
- $chroot = "t/fakechroot-$state";
+ $chroot = "t/fakechroots/$state";
my $exit_code = $state eq 'clean' ? 0 : 2;
my $expected = <<"EOT";
-$chroot/usr/share/doc/fakepkg/copyright OK
-$chroot/usr/share/doc/fakepkg/changelog.Debian.gz OK
-$chroot/usr/share/doc/fakepkg/README FAILED
+$chroot/usr/share/doc/fakepkg/copyright OK
+$chroot/usr/share/doc/fakepkg/changelog.Debian.gz OK
+$chroot/usr/share/doc/fakepkg/README FAILED
EOT
$expected = remove_failed($expected)
if $state eq 'clean';
my $expected_conffiles = <<"EOT";
-$chroot/etc/fakepkg.cfg OK
-$chroot/etc/fakepkg-broken.cfg FAILED
+$chroot/etc/fakepkg.cfg OK
+$chroot/etc/fakepkg-broken.cfg FAILED
EOT
$expected_conffiles = remove_failed($expected_conffiles)
if $state eq 'clean';
diff --git a/t/fakechroot-clean/etc/fakepkg.cfg b/t/fakechroots/clean/etc/fakepkg.cfg
similarity index 100%
rename from t/fakechroot-clean/etc/fakepkg.cfg
rename to t/fakechroots/clean/etc/fakepkg.cfg
diff --git a/t/fakechroot-clean/usr/share/doc/fakepkg/changelog.Debian.gz b/t/fakechroots/clean/usr/share/doc/fakepkg/changelog.Debian.gz
similarity index 100%
rename from t/fakechroot-clean/usr/share/doc/fakepkg/changelog.Debian.gz
rename to t/fakechroots/clean/usr/share/doc/fakepkg/changelog.Debian.gz
diff --git a/t/fakechroot-clean/usr/share/doc/fakepkg/copyright b/t/fakechroots/clean/usr/share/doc/fakepkg/copyright
similarity index 100%
rename from t/fakechroot-clean/usr/share/doc/fakepkg/copyright
rename to t/fakechroots/clean/usr/share/doc/fakepkg/copyright
diff --git a/t/fakechroot-clean/var/lib/dpkg/info/fakepkg.conffiles b/t/fakechroots/clean/var/lib/dpkg/info/fakepkg.conffiles
similarity index 100%
rename from t/fakechroot-clean/var/lib/dpkg/info/fakepkg.conffiles
rename to t/fakechroots/clean/var/lib/dpkg/info/fakepkg.conffiles
diff --git a/t/fakechroot-clean/var/lib/dpkg/info/fakepkg.list b/t/fakechroots/clean/var/lib/dpkg/info/fakepkg.list
similarity index 100%
rename from t/fakechroot-clean/var/lib/dpkg/info/fakepkg.list
rename to t/fakechroots/clean/var/lib/dpkg/info/fakepkg.list
diff --git a/t/fakechroot-clean/var/lib/dpkg/info/fakepkg.md5sums b/t/fakechroots/clean/var/lib/dpkg/info/fakepkg.md5sums
similarity index 100%
rename from t/fakechroot-clean/var/lib/dpkg/info/fakepkg.md5sums
rename to t/fakechroots/clean/var/lib/dpkg/info/fakepkg.md5sums
diff --git a/t/fakechroot-clean/var/lib/dpkg/status b/t/fakechroots/clean/var/lib/dpkg/status
similarity index 100%
rename from t/fakechroot-clean/var/lib/dpkg/status
rename to t/fakechroots/clean/var/lib/dpkg/status
diff --git a/t/fakechroot-clean/var/lib/dpkg/updates/.emptydir b/t/fakechroots/clean/var/lib/dpkg/updates/.emptydir
similarity index 100%
rename from t/fakechroot-clean/var/lib/dpkg/updates/.emptydir
rename to t/fakechroots/clean/var/lib/dpkg/updates/.emptydir
diff --git a/t/fakechroot-dirty/etc/fakepkg-broken.cfg b/t/fakechroots/dirty/etc/fakepkg-broken.cfg
similarity index 100%
rename from t/fakechroot-dirty/etc/fakepkg-broken.cfg
rename to t/fakechroots/dirty/etc/fakepkg-broken.cfg
diff --git a/t/fakechroot-dirty/etc/fakepkg.cfg b/t/fakechroots/dirty/etc/fakepkg.cfg
similarity index 100%
rename from t/fakechroot-dirty/etc/fakepkg.cfg
rename to t/fakechroots/dirty/etc/fakepkg.cfg
diff --git a/t/fakechroot-dirty/usr/share/doc/fakepkg/README b/t/fakechroots/dirty/usr/share/doc/fakepkg/README
similarity index 100%
rename from t/fakechroot-dirty/usr/share/doc/fakepkg/README
rename to t/fakechroots/dirty/usr/share/doc/fakepkg/README
diff --git a/t/fakechroot-dirty/usr/share/doc/fakepkg/changelog.Debian.gz b/t/fakechroots/dirty/usr/share/doc/fakepkg/changelog.Debian.gz
similarity index 100%
rename from t/fakechroot-dirty/usr/share/doc/fakepkg/changelog.Debian.gz
rename to t/fakechroots/dirty/usr/share/doc/fakepkg/changelog.Debian.gz
diff --git a/t/fakechroot-dirty/usr/share/doc/fakepkg/copyright b/t/fakechroots/dirty/usr/share/doc/fakepkg/copyright
similarity index 100%
rename from t/fakechroot-dirty/usr/share/doc/fakepkg/copyright
rename to t/fakechroots/dirty/usr/share/doc/fakepkg/copyright
diff --git a/t/fakechroot-dirty/var/lib/dpkg/info/fakepkg.conffiles b/t/fakechroots/dirty/var/lib/dpkg/info/fakepkg.conffiles
similarity index 100%
rename from t/fakechroot-dirty/var/lib/dpkg/info/fakepkg.conffiles
rename to t/fakechroots/dirty/var/lib/dpkg/info/fakepkg.conffiles
diff --git a/t/fakechroot-dirty/var/lib/dpkg/info/fakepkg.list b/t/fakechroots/dirty/var/lib/dpkg/info/fakepkg.list
similarity index 100%
rename from t/fakechroot-dirty/var/lib/dpkg/info/fakepkg.list
rename to t/fakechroots/dirty/var/lib/dpkg/info/fakepkg.list
diff --git a/t/fakechroot-dirty/var/lib/dpkg/info/fakepkg.md5sums b/t/fakechroots/dirty/var/lib/dpkg/info/fakepkg.md5sums
similarity index 100%
rename from t/fakechroot-dirty/var/lib/dpkg/info/fakepkg.md5sums
rename to t/fakechroots/dirty/var/lib/dpkg/info/fakepkg.md5sums
diff --git a/t/fakechroot-dirty/var/lib/dpkg/status b/t/fakechroots/dirty/var/lib/dpkg/status
similarity index 100%
rename from t/fakechroot-dirty/var/lib/dpkg/status
rename to t/fakechroots/dirty/var/lib/dpkg/status
diff --git a/t/fakechroot-dirty/var/lib/dpkg/updates/.emptydir b/t/fakechroots/dirty/var/lib/dpkg/updates/.emptydir
similarity index 100%
rename from t/fakechroot-dirty/var/lib/dpkg/updates/.emptydir
rename to t/fakechroots/dirty/var/lib/dpkg/updates/.emptydir
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/debsums.git
More information about the Pkg-perl-cvs-commits
mailing list