diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/lintian-features/json-output | |
parent | Initial commit. (diff) | |
download | lintian-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/lintian-features/json-output')
14 files changed, 355 insertions, 0 deletions
diff --git a/t/recipes/lintian-features/json-output/build-spec/debian/control.in b/t/recipes/lintian-features/json-output/build-spec/debian/control.in new file mode 100644 index 0000000..48330e1 --- /dev/null +++ b/t/recipes/lintian-features/json-output/build-spec/debian/control.in @@ -0,0 +1,20 @@ +Source: [% $source %] +Priority: optional +Section: [% $section %] +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: [% $source %] +Architecture: [% $package_architecture %] +Depends: ${misc:Depends}, libssl0.9.8 (>= 0abcd) +Essential:yes +Section: [% $section %] +Description: [% $description %]. + This is a test package designed to exercise some feature or tag of + Lintian. It is part of the Lintian test suite and may do very odd + things. It should not be installed like a regular package. It may + be an empty package. + . + The homepage is http://www.example.com/. diff --git a/t/recipes/lintian-features/json-output/build-spec/debian/dirs b/t/recipes/lintian-features/json-output/build-spec/debian/dirs new file mode 100644 index 0000000..055295f --- /dev/null +++ b/t/recipes/lintian-features/json-output/build-spec/debian/dirs @@ -0,0 +1,2 @@ +usr/local/share/lintian +var/lock/lintian diff --git a/t/recipes/lintian-features/json-output/build-spec/debian/examples b/t/recipes/lintian-features/json-output/build-spec/debian/examples new file mode 100644 index 0000000..33a9488 --- /dev/null +++ b/t/recipes/lintian-features/json-output/build-spec/debian/examples @@ -0,0 +1 @@ +example diff --git a/t/recipes/lintian-features/json-output/build-spec/debian/install b/t/recipes/lintian-features/json-output/build-spec/debian/install new file mode 100644 index 0000000..d6f0c2d --- /dev/null +++ b/t/recipes/lintian-features/json-output/build-spec/debian/install @@ -0,0 +1,2 @@ +script usr/bin +script.desktop usr/share/applications diff --git a/t/recipes/lintian-features/json-output/build-spec/debian/rules b/t/recipes/lintian-features/json-output/build-spec/debian/rules new file mode 100755 index 0000000..67e7058 --- /dev/null +++ b/t/recipes/lintian-features/json-output/build-spec/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_usrlocal: diff --git a/t/recipes/lintian-features/json-output/build-spec/debian/source.lintian-overrides b/t/recipes/lintian-features/json-output/build-spec/debian/source.lintian-overrides new file mode 100644 index 0000000..8c1ea35 --- /dev/null +++ b/t/recipes/lintian-features/json-output/build-spec/debian/source.lintian-overrides @@ -0,0 +1 @@ +json-output source: dfsg-version-misspelled 1.0* diff --git a/t/recipes/lintian-features/json-output/build-spec/diff/Changes b/t/recipes/lintian-features/json-output/build-spec/diff/Changes new file mode 100644 index 0000000..2a267cd --- /dev/null +++ b/t/recipes/lintian-features/json-output/build-spec/diff/Changes @@ -0,0 +1 @@ +This is unlike any other dummy changelog. diff --git a/t/recipes/lintian-features/json-output/build-spec/fill-values b/t/recipes/lintian-features/json-output/build-spec/fill-values new file mode 100644 index 0000000..34485c5 --- /dev/null +++ b/t/recipes/lintian-features/json-output/build-spec/fill-values @@ -0,0 +1,5 @@ +Testname: json-output +Skeleton: upload-non-native +Version: 1.0+dsfg-1.1 +Package-Architecture: all +Description: Test Lintian's JSON output format diff --git a/t/recipes/lintian-features/json-output/build-spec/orig/example b/t/recipes/lintian-features/json-output/build-spec/orig/example new file mode 100755 index 0000000..1cde649 --- /dev/null +++ b/t/recipes/lintian-features/json-output/build-spec/orig/example @@ -0,0 +1,2 @@ +#!/usr/bin/foo +echo This is some example. diff --git a/t/recipes/lintian-features/json-output/build-spec/orig/script b/t/recipes/lintian-features/json-output/build-spec/orig/script new file mode 100755 index 0000000..a10a951 --- /dev/null +++ b/t/recipes/lintian-features/json-output/build-spec/orig/script @@ -0,0 +1,3 @@ +#!/bin/sh +. /usr/share/debconf/confmodule +echo 'Hello world' diff --git a/t/recipes/lintian-features/json-output/build-spec/orig/script.desktop b/t/recipes/lintian-features/json-output/build-spec/orig/script.desktop new file mode 100644 index 0000000..e1ec555 --- /dev/null +++ b/t/recipes/lintian-features/json-output/build-spec/orig/script.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=script +Type=Application +Comment=Incorrectly limited to particular environments +Categories=Development; +Exec=script +OnlyShowIn=GNOME;KDE; +Icon=foo +Keywords=Lintian diff --git a/t/recipes/lintian-features/json-output/eval/desc b/t/recipes/lintian-features/json-output/eval/desc new file mode 100644 index 0000000..490d603 --- /dev/null +++ b/t/recipes/lintian-features/json-output/eval/desc @@ -0,0 +1,5 @@ +Testname: json-output +Options: --show-overrides +Output-Format: json +Match-Strategy: literal +Default-Lintian-Options: --pedantic --display-info --display-experimental diff --git a/t/recipes/lintian-features/json-output/eval/literal b/t/recipes/lintian-features/json-output/eval/literal new file mode 100644 index 0000000..2feaddb --- /dev/null +++ b/t/recipes/lintian-features/json-output/eval/literal @@ -0,0 +1,297 @@ +{ + "groups" : [ + { + "group_id" : "json-output_1.0+dsfg-1.1", + "input_files" : [ + { + "hints" : [ + { + "experimental" : false, + "note" : "0.0.1-1 -> 1.0+dsfg-1 (missing) -> 1.0+dsfg-1.1", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1.dsc (patched)", + "name" : "debian/changelog" + }, + "line_position" : 1 + }, + "tag" : "changelog-file-missing-explicit-entry", + "visibility" : "warning" + }, + { + "experimental" : false, + "note" : "", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1.dsc (patched)", + "name" : "debian/patches/debian-changes-1.0+dsfg-1.1" + }, + "line_position" : 0 + }, + "tag" : "format-3.0-but-debian-changes-patch", + "visibility" : "warning" + }, + { + "experimental" : false, + "note" : "1.0+dsfg-1.1", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1.dsc (patched)", + "name" : "debian/changelog" + }, + "line_position" : 1 + }, + "tag" : "maintainer-upload-has-incorrect-version-number", + "visibility" : "warning" + }, + { + "experimental" : false, + "note" : "(in section for json-output) Section", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1.dsc (patched)", + "name" : "debian/control" + }, + "line_position" : 13 + }, + "tag" : "installable-field-mirrors-source", + "visibility" : "info" + }, + { + "experimental" : false, + "note" : "3", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1.dsc (patched)", + "name" : "debian/watch" + }, + "line_position" : 0 + }, + "tag" : "older-debian-watch-file-standard", + "visibility" : "info" + }, + { + "experimental" : false, + "note" : "", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1.dsc (patched)", + "name" : "debian/patches/debian-changes-1.0+dsfg-1.1" + }, + "line_position" : 0 + }, + "tag" : "patch-not-forwarded-upstream", + "visibility" : "info" + }, + { + "experimental" : false, + "note" : "", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1.dsc (patched)", + "name" : "debian/patches/debian-changes-1.0+dsfg-1.1" + }, + "line_position" : 0 + }, + "tag" : "quilt-patch-using-template-description", + "visibility" : "info" + }, + { + "experimental" : false, + "note" : "", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1.dsc (patched)", + "name" : "debian/upstream/metadata" + }, + "line_position" : 0 + }, + "tag" : "upstream-metadata-missing-bug-tracking", + "visibility" : "info" + }, + { + "experimental" : false, + "note" : "", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1.dsc (patched)", + "name" : "debian/upstream/metadata" + }, + "line_position" : 0 + }, + "tag" : "upstream-metadata-missing-repository", + "visibility" : "info" + }, + { + "experimental" : false, + "note" : "Essential", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1.dsc (patched)", + "name" : "debian/control" + }, + "line_position" : 12 + }, + "tag" : "debian-control-has-unusual-field-spacing", + "visibility" : "pedantic" + }, + { + "experimental" : false, + "note" : "", + "tag" : "no-homepage-field", + "visibility" : "pedantic" + }, + { + "experimental" : true, + "note" : "", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1.dsc (patched)", + "name" : "debian/watch" + }, + "line_position" : 0 + }, + "tag" : "debian-watch-does-not-check-openpgp-signature", + "visibility" : "pedantic" + }, + { + "experimental" : false, + "note" : "1.0+dsfg-1.1", + "override" : { + "justification" : "" + }, + "tag" : "dfsg-version-misspelled", + "visibility" : "warning" + } + ], + "path" : "PATH" + }, + { + "hints" : [ + { + "experimental" : false, + "note" : "", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1_all.deb (installed)", + "name" : "usr/local/share/" + }, + "line_position" : 0 + }, + "tag" : "dir-in-usr-local", + "visibility" : "error" + }, + { + "experimental" : false, + "note" : "", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1_all.deb (installed)", + "name" : "usr/local/share/lintian/" + }, + "line_position" : 0 + }, + "tag" : "dir-in-usr-local", + "visibility" : "error" + }, + { + "experimental" : false, + "note" : "", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1_all.deb (installed)", + "name" : "var/lock/lintian/" + }, + "line_position" : 0 + }, + "tag" : "dir-or-file-in-var-lock", + "visibility" : "error" + }, + { + "experimental" : false, + "note" : "", + "tag" : "new-essential-package", + "visibility" : "error" + }, + { + "experimental" : false, + "note" : "", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1_all.deb (installed)", + "name" : "usr/bin/script" + }, + "line_position" : 0 + }, + "tag" : "no-manual-page", + "visibility" : "warning" + }, + { + "experimental" : false, + "note" : "http://www.example.com/.", + "tag" : "description-possibly-contains-homepage", + "visibility" : "info" + }, + { + "experimental" : false, + "note" : "", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1_all.deb (installed)", + "name" : "usr/share/applications/script.desktop" + }, + "line_position" : 0 + }, + "tag" : "desktop-entry-limited-to-environments", + "visibility" : "info" + }, + { + "experimental" : false, + "note" : "", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1_all.deb (installed)", + "name" : "usr/local/share/lintian/" + }, + "line_position" : 0 + }, + "tag" : "package-contains-empty-directory", + "visibility" : "info" + }, + { + "experimental" : false, + "note" : "\"Test Lintian's JSON output format.\"", + "tag" : "synopsis-is-a-sentence", + "visibility" : "info" + }, + { + "experimental" : false, + "note" : "/usr/bin/foo", + "pointer" : { + "item" : { + "index" : "json-output_1.0+dsfg-1.1_all.deb (installed)", + "name" : "usr/share/doc/json-output/examples/example" + }, + "line_position" : 0 + }, + "tag" : "example-unusual-interpreter", + "visibility" : "pedantic" + } + ], + "path" : "PATH" + }, + { + "hints" : [], + "path" : "PATH" + }, + { + "hints" : [], + "path" : "PATH" + } + ], + "source_name" : "json-output", + "source_version" : "1.0+dsfg-1.1" + } + ], + "lintian_version" : "VERSION" +} diff --git a/t/recipes/lintian-features/json-output/eval/post-test b/t/recipes/lintian-features/json-output/eval/post-test new file mode 100644 index 0000000..beff2c3 --- /dev/null +++ b/t/recipes/lintian-features/json-output/eval/post-test @@ -0,0 +1,2 @@ +s/("lintian_version" : )"[^"]*"/\1"VERSION"/ +s/("path" : )"[^"]*"/\1"PATH"/ |