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/checks/fields/checksums | |
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/checks/fields/checksums')
4 files changed, 16 insertions, 0 deletions
diff --git a/t/recipes/checks/fields/checksums/no-sha256-checksum/build-spec/fill-values b/t/recipes/checks/fields/checksums/no-sha256-checksum/build-spec/fill-values new file mode 100644 index 0000000..fff5dc3 --- /dev/null +++ b/t/recipes/checks/fields/checksums/no-sha256-checksum/build-spec/fill-values @@ -0,0 +1,6 @@ +Skeleton: source-native +Testname: no-sha256-checksum +Version: 1 +Source-Format: 3.0 (native) +Dh-Compat-Level: 9 +Description: Test for missing Checksums-Sha256 field diff --git a/t/recipes/checks/fields/checksums/no-sha256-checksum/build-spec/post-build b/t/recipes/checks/fields/checksums/no-sha256-checksum/build-spec/post-build new file mode 100755 index 0000000..48e9641 --- /dev/null +++ b/t/recipes/checks/fields/checksums/no-sha256-checksum/build-spec/post-build @@ -0,0 +1,7 @@ +#!/bin/sh + +set -e + +product="$1" + +perl -pi -0777 -e 's/\nChecksums-Sha256:[^\n]*(\n [^\n]*)*//' "$product" diff --git a/t/recipes/checks/fields/checksums/no-sha256-checksum/eval/desc b/t/recipes/checks/fields/checksums/no-sha256-checksum/eval/desc new file mode 100644 index 0000000..ae11874 --- /dev/null +++ b/t/recipes/checks/fields/checksums/no-sha256-checksum/eval/desc @@ -0,0 +1,2 @@ +Testname: no-sha256-checksum +Check: fields/checksums diff --git a/t/recipes/checks/fields/checksums/no-sha256-checksum/eval/hints b/t/recipes/checks/fields/checksums/no-sha256-checksum/eval/hints new file mode 100644 index 0000000..98eabda --- /dev/null +++ b/t/recipes/checks/fields/checksums/no-sha256-checksum/eval/hints @@ -0,0 +1 @@ +no-sha256-checksum (source): no-strong-digests-in-dsc |