[lintian] 03/05: Update files-gzip tests
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 548a0cd8e8372e9c9ac3d541babcaf9f2c0cb372
Author: Tomasz Buchert <tomasz@debian.org>
Date: Thu May 14 11:57:44 2015 +0200
Update files-gzip tests
Signed-off-by: Niels Thykier <niels@thykier.net>
---
t/tests/files-gzip/debian/debian/rules | 7 +++++++
t/tests/files-gzip/tags | 2 +-
t/tests/files-gzip/upstream/{good.gz => timestamped-now.gz} | Bin
.../files-gzip/upstream/{good.gz => timestamped-past.gz} | Bin
4 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/t/tests/files-gzip/debian/debian/rules b/t/tests/files-gzip/debian/debian/rules
index efe8cf2..1d8af89 100755
--- a/t/tests/files-gzip/debian/debian/rules
+++ b/t/tests/files-gzip/debian/debian/rules
@@ -3,6 +3,13 @@ pkg=files-gzip
%:
dh $@
+override_dh_install:
+ dh_install
+ # we set the mtime to the past
+ touch -m -d "2003-06-21 12:12:12 UTC" debian/$(pkg)/etc/timestamped-past.gz
+ # we set the mtime to right now
+ touch -m debian/$(pkg)/etc/timestamped-now.gz
+
override_dh_installdocs:
dh_installdocs
echo "Hello world :)" > debian/$(pkg)/usr/share/doc/$(pkg)/changelog.gz
diff --git a/t/tests/files-gzip/tags b/t/tests/files-gzip/tags
index e003044..74c8c3e 100644
--- a/t/tests/files-gzip/tags
+++ b/t/tests/files-gzip/tags
@@ -1,3 +1,3 @@
-I: files-gzip: package-contains-timestamped-gzip etc/good.gz
+I: files-gzip: package-contains-timestamped-gzip etc/timestamped-now.gz
W: files-gzip: gz-file-not-gzip etc/bad.gz
W: files-gzip: gz-file-not-gzip usr/share/doc/files-gzip/changelog.gz
diff --git a/t/tests/files-gzip/upstream/good.gz b/t/tests/files-gzip/upstream/timestamped-now.gz
similarity index 100%
copy from t/tests/files-gzip/upstream/good.gz
copy to t/tests/files-gzip/upstream/timestamped-now.gz
diff --git a/t/tests/files-gzip/upstream/good.gz b/t/tests/files-gzip/upstream/timestamped-past.gz
similarity index 100%
rename from t/tests/files-gzip/upstream/good.gz
rename to t/tests/files-gzip/upstream/timestamped-past.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: