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/md5sums/md5sums-general | |
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/md5sums/md5sums-general')
9 files changed, 26 insertions, 0 deletions
diff --git a/t/recipes/checks/md5sums/md5sums-general/build-spec/debian/install b/t/recipes/checks/md5sums/md5sums-general/build-spec/debian/install new file mode 100644 index 0000000..399564c --- /dev/null +++ b/t/recipes/checks/md5sums/md5sums-general/build-spec/debian/install @@ -0,0 +1 @@ +data* usr/share/lintian/ diff --git a/t/recipes/checks/md5sums/md5sums-general/build-spec/debian/rules b/t/recipes/checks/md5sums/md5sums-general/build-spec/debian/rules new file mode 100644 index 0000000..6971ee0 --- /dev/null +++ b/t/recipes/checks/md5sums/md5sums-general/build-spec/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +FIND ?= find + +%: + dh $@ + +override_dh_builddeb: + echo "Broken md5sum" > $$($(FIND) debian/ -name 'data-file1') + sed -i 's/data-file2/data-file5/' $$($(FIND) -name 'md5sums') + echo "broken-md5sums" >> $$($(FIND) -name 'md5sums') + dh_builddeb diff --git a/t/recipes/checks/md5sums/md5sums-general/build-spec/fill-values b/t/recipes/checks/md5sums/md5sums-general/build-spec/fill-values new file mode 100644 index 0000000..4607247 --- /dev/null +++ b/t/recipes/checks/md5sums/md5sums-general/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: md5sums-general +Description: Test of md5sums related tags diff --git a/t/recipes/checks/md5sums/md5sums-general/build-spec/orig/data-file1 b/t/recipes/checks/md5sums/md5sums-general/build-spec/orig/data-file1 new file mode 100644 index 0000000..ad9213e --- /dev/null +++ b/t/recipes/checks/md5sums/md5sums-general/build-spec/orig/data-file1 @@ -0,0 +1 @@ +Hello data-file1 diff --git a/t/recipes/checks/md5sums/md5sums-general/build-spec/orig/data-file2 b/t/recipes/checks/md5sums/md5sums-general/build-spec/orig/data-file2 new file mode 100644 index 0000000..fdf6b01 --- /dev/null +++ b/t/recipes/checks/md5sums/md5sums-general/build-spec/orig/data-file2 @@ -0,0 +1 @@ +Hello data-file2 diff --git a/t/recipes/checks/md5sums/md5sums-general/build-spec/orig/data-file3 b/t/recipes/checks/md5sums/md5sums-general/build-spec/orig/data-file3 new file mode 100644 index 0000000..0f72672 --- /dev/null +++ b/t/recipes/checks/md5sums/md5sums-general/build-spec/orig/data-file3 @@ -0,0 +1 @@ +Hello data-file3 diff --git a/t/recipes/checks/md5sums/md5sums-general/build-spec/orig/data-file4 b/t/recipes/checks/md5sums/md5sums-general/build-spec/orig/data-file4 new file mode 100644 index 0000000..2764cf8 --- /dev/null +++ b/t/recipes/checks/md5sums/md5sums-general/build-spec/orig/data-file4 @@ -0,0 +1 @@ +Hello data-file4 diff --git a/t/recipes/checks/md5sums/md5sums-general/eval/desc b/t/recipes/checks/md5sums/md5sums-general/eval/desc new file mode 100644 index 0000000..3129219 --- /dev/null +++ b/t/recipes/checks/md5sums/md5sums-general/eval/desc @@ -0,0 +1,2 @@ +Testname: md5sums-general +Check: md5sums diff --git a/t/recipes/checks/md5sums/md5sums-general/eval/hints b/t/recipes/checks/md5sums/md5sums-general/eval/hints new file mode 100644 index 0000000..28265fe --- /dev/null +++ b/t/recipes/checks/md5sums/md5sums-general/eval/hints @@ -0,0 +1,4 @@ +md5sums-general (binary): md5sums-lists-nonexistent-file usr/share/lintian/data-file5 [md5sums] +md5sums-general (binary): md5sum-mismatch usr/share/lintian/data-file1 [md5sums] +md5sums-general (binary): malformed-md5sums-control-file Odd text: broken-md5sums [md5sums] +md5sums-general (binary): file-missing-in-md5sums usr/share/lintian/data-file2 [md5sums] |