summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/files/date/deb-format-ancient-file
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/files/date/deb-format-ancient-file
parentInitial commit. (diff)
downloadlintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz
lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/recipes/checks/files/date/deb-format-ancient-file')
-rw-r--r--t/recipes/checks/files/date/deb-format-ancient-file/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/files/date/deb-format-ancient-file/build-spec/pre-control8
-rwxr-xr-xt/recipes/checks/files/date/deb-format-ancient-file/build-spec/pre-data9
-rw-r--r--t/recipes/checks/files/date/deb-format-ancient-file/build-spec/root/usr/share/cargo/registry/deb-format-ancient-file/.cargo_vcs_info.json1
-rw-r--r--t/recipes/checks/files/date/deb-format-ancient-file/eval/desc2
-rw-r--r--t/recipes/checks/files/date/deb-format-ancient-file/eval/hints1
6 files changed, 24 insertions, 0 deletions
diff --git a/t/recipes/checks/files/date/deb-format-ancient-file/build-spec/fill-values b/t/recipes/checks/files/date/deb-format-ancient-file/build-spec/fill-values
new file mode 100644
index 0000000..c100689
--- /dev/null
+++ b/t/recipes/checks/files/date/deb-format-ancient-file/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: deb
+Testname: deb-format-ancient-file
+Description: Test package containing an ancient file
diff --git a/t/recipes/checks/files/date/deb-format-ancient-file/build-spec/pre-control b/t/recipes/checks/files/date/deb-format-ancient-file/build-spec/pre-control
new file mode 100755
index 0000000..6372736
--- /dev/null
+++ b/t/recipes/checks/files/date/deb-format-ancient-file/build-spec/pre-control
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+debiandir="$1"
+name="$2"
+
+TZ=GMT touch -d@-1 "$debiandir/control"
diff --git a/t/recipes/checks/files/date/deb-format-ancient-file/build-spec/pre-data b/t/recipes/checks/files/date/deb-format-ancient-file/build-spec/pre-data
new file mode 100755
index 0000000..cfb25f4
--- /dev/null
+++ b/t/recipes/checks/files/date/deb-format-ancient-file/build-spec/pre-data
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+rootdir="$1"
+name="$2"
+
+TZ=GMT touch -t 197001010000 "$rootdir/usr/share/doc/$name/changelog.gz"
+TZ=GMT touch -t 197001010000 "$rootdir/usr/share/cargo/registry/$name/.cargo_vcs_info.json"
diff --git a/t/recipes/checks/files/date/deb-format-ancient-file/build-spec/root/usr/share/cargo/registry/deb-format-ancient-file/.cargo_vcs_info.json b/t/recipes/checks/files/date/deb-format-ancient-file/build-spec/root/usr/share/cargo/registry/deb-format-ancient-file/.cargo_vcs_info.json
new file mode 100644
index 0000000..0967ef4
--- /dev/null
+++ b/t/recipes/checks/files/date/deb-format-ancient-file/build-spec/root/usr/share/cargo/registry/deb-format-ancient-file/.cargo_vcs_info.json
@@ -0,0 +1 @@
+{}
diff --git a/t/recipes/checks/files/date/deb-format-ancient-file/eval/desc b/t/recipes/checks/files/date/deb-format-ancient-file/eval/desc
new file mode 100644
index 0000000..571e51f
--- /dev/null
+++ b/t/recipes/checks/files/date/deb-format-ancient-file/eval/desc
@@ -0,0 +1,2 @@
+Testname: deb-format-ancient-file
+Check: files/date
diff --git a/t/recipes/checks/files/date/deb-format-ancient-file/eval/hints b/t/recipes/checks/files/date/deb-format-ancient-file/eval/hints
new file mode 100644
index 0000000..f7a8533
--- /dev/null
+++ b/t/recipes/checks/files/date/deb-format-ancient-file/eval/hints
@@ -0,0 +1 @@
+deb-format-ancient-file (binary): package-contains-ancient-file 1970-01-01 [usr/share/doc/deb-format-ancient-file/changelog.gz]