summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/fields/description/description-perl
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/fields/description/description-perl')
-rw-r--r--t/recipes/checks/fields/description/description-perl/build-spec/debian/control.in27
-rw-r--r--t/recipes/checks/fields/description/description-perl/build-spec/debian/libdeb-long-description-perl.install1
-rw-r--r--t/recipes/checks/fields/description/description-perl/build-spec/debian/libdeb-long-description-proper-perl.install1
-rw-r--r--t/recipes/checks/fields/description/description-perl/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/description/description-perl/build-spec/orig/lib/Deb/Long/Description.pm5
-rw-r--r--t/recipes/checks/fields/description/description-perl/build-spec/orig/lib/Deb/Long/Description/Proper.pm5
-rw-r--r--t/recipes/checks/fields/description/description-perl/eval/desc2
-rw-r--r--t/recipes/checks/fields/description/description-perl/eval/hints1
8 files changed, 45 insertions, 0 deletions
diff --git a/t/recipes/checks/fields/description/description-perl/build-spec/debian/control.in b/t/recipes/checks/fields/description/description-perl/build-spec/debian/control.in
new file mode 100644
index 0000000..ac66abe
--- /dev/null
+++ b/t/recipes/checks/fields/description/description-perl/build-spec/debian/control.in
@@ -0,0 +1,27 @@
+Source: [% $source %]
+Priority: optional
+Section: perl
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: libdeb-long-description-perl
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: lintian dummy package to test a module name related check
+ This package is solely meant for testing a lintian check to argue
+ about not mentioning the contained perl module.
+ .
+ For testing and length-ish purposes, with Long::Description a similar
+ name is mentioned though.
+
+Package: libdeb-long-description-proper-perl
+Architecture: [% $package_architecture %]
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: lintian dummy package to test a module name related false positive
+ This package is solely meant for testing a lintian check to argue
+ about not mentioning the contained perl module.
+ .
+ This is a package which checks the test for false positives, so it
+ actually mentions Deb::Long::Description::Proper.
diff --git a/t/recipes/checks/fields/description/description-perl/build-spec/debian/libdeb-long-description-perl.install b/t/recipes/checks/fields/description/description-perl/build-spec/debian/libdeb-long-description-perl.install
new file mode 100644
index 0000000..306e16a
--- /dev/null
+++ b/t/recipes/checks/fields/description/description-perl/build-spec/debian/libdeb-long-description-perl.install
@@ -0,0 +1 @@
+lib/Deb/Long/Description.pm usr/share/perl5/Deb/Long
diff --git a/t/recipes/checks/fields/description/description-perl/build-spec/debian/libdeb-long-description-proper-perl.install b/t/recipes/checks/fields/description/description-perl/build-spec/debian/libdeb-long-description-proper-perl.install
new file mode 100644
index 0000000..5c2f399
--- /dev/null
+++ b/t/recipes/checks/fields/description/description-perl/build-spec/debian/libdeb-long-description-proper-perl.install
@@ -0,0 +1 @@
+lib/Deb/Long/Description/Proper.pm usr/share/perl5/Deb/Long/Description
diff --git a/t/recipes/checks/fields/description/description-perl/build-spec/fill-values b/t/recipes/checks/fields/description/description-perl/build-spec/fill-values
new file mode 100644
index 0000000..f3c08da
--- /dev/null
+++ b/t/recipes/checks/fields/description/description-perl/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: description-perl
+Description: Tests of perl-related description tags
diff --git a/t/recipes/checks/fields/description/description-perl/build-spec/orig/lib/Deb/Long/Description.pm b/t/recipes/checks/fields/description/description-perl/build-spec/orig/lib/Deb/Long/Description.pm
new file mode 100644
index 0000000..e86bca4
--- /dev/null
+++ b/t/recipes/checks/fields/description/description-perl/build-spec/orig/lib/Deb/Long/Description.pm
@@ -0,0 +1,5 @@
+# Dummy Perl module for lintian testing purposes.
+
+package Deb::Long::Description;
+
+return 1;
diff --git a/t/recipes/checks/fields/description/description-perl/build-spec/orig/lib/Deb/Long/Description/Proper.pm b/t/recipes/checks/fields/description/description-perl/build-spec/orig/lib/Deb/Long/Description/Proper.pm
new file mode 100644
index 0000000..67230b9
--- /dev/null
+++ b/t/recipes/checks/fields/description/description-perl/build-spec/orig/lib/Deb/Long/Description/Proper.pm
@@ -0,0 +1,5 @@
+# Dummy Perl module for lintian testing purposes.
+
+package Deb::Long::Description::Proper;
+
+return 1;
diff --git a/t/recipes/checks/fields/description/description-perl/eval/desc b/t/recipes/checks/fields/description/description-perl/eval/desc
new file mode 100644
index 0000000..9c7aaa4
--- /dev/null
+++ b/t/recipes/checks/fields/description/description-perl/eval/desc
@@ -0,0 +1,2 @@
+Testname: description-perl
+Check: fields/description
diff --git a/t/recipes/checks/fields/description/description-perl/eval/hints b/t/recipes/checks/fields/description/description-perl/eval/hints
new file mode 100644
index 0000000..f9566f4
--- /dev/null
+++ b/t/recipes/checks/fields/description/description-perl/eval/hints
@@ -0,0 +1 @@
+libdeb-long-description-perl (binary): perl-module-name-not-mentioned-in-description Deb::Long::Description