summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/debian/readme/bad-email-format
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/debian/readme/bad-email-format
parentInitial commit. (diff)
downloadlintian-upstream.tar.xz
lintian-upstream.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/debian/readme/bad-email-format')
-rw-r--r--t/recipes/checks/debian/readme/bad-email-format/build-spec/debian/README.Debian7
-rw-r--r--t/recipes/checks/debian/readme/bad-email-format/build-spec/fill-values3
-rw-r--r--t/recipes/checks/debian/readme/bad-email-format/eval/desc2
-rw-r--r--t/recipes/checks/debian/readme/bad-email-format/eval/hints1
-rw-r--r--t/recipes/checks/debian/readme/bad-email-format/eval/post-test1
5 files changed, 14 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/readme/bad-email-format/build-spec/debian/README.Debian b/t/recipes/checks/debian/readme/bad-email-format/build-spec/debian/README.Debian
new file mode 100644
index 0000000..87bfcdf
--- /dev/null
+++ b/t/recipes/checks/debian/readme/bad-email-format/build-spec/debian/README.Debian
@@ -0,0 +1,7 @@
+foo++ for Debian
+----------------
+
+This should trigger a warning, as i use a fake mail address.
+
+ -- Marc 'HE' Brockschmidt <foo@unknown>, Wed, 14 Apr 2004 01:44:18 +0200
+
diff --git a/t/recipes/checks/debian/readme/bad-email-format/build-spec/fill-values b/t/recipes/checks/debian/readme/bad-email-format/build-spec/fill-values
new file mode 100644
index 0000000..d3e7aca
--- /dev/null
+++ b/t/recipes/checks/debian/readme/bad-email-format/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: bad-email-format
+Description: Debian.README with email address in unknown format
diff --git a/t/recipes/checks/debian/readme/bad-email-format/eval/desc b/t/recipes/checks/debian/readme/bad-email-format/eval/desc
new file mode 100644
index 0000000..0269f3d
--- /dev/null
+++ b/t/recipes/checks/debian/readme/bad-email-format/eval/desc
@@ -0,0 +1,2 @@
+Testname: bad-email-format
+Check: debian/readme
diff --git a/t/recipes/checks/debian/readme/bad-email-format/eval/hints b/t/recipes/checks/debian/readme/bad-email-format/eval/hints
new file mode 100644
index 0000000..72ab52d
--- /dev/null
+++ b/t/recipes/checks/debian/readme/bad-email-format/eval/hints
@@ -0,0 +1 @@
+bad-email-format (binary): readme-debian-contains-invalid-email-address foo@unknown [usr/share/doc/bad-email-format/README.Debian]
diff --git a/t/recipes/checks/debian/readme/bad-email-format/eval/post-test b/t/recipes/checks/debian/readme/bad-email-format/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/debian/readme/bad-email-format/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/