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/debian/copyright/legacy-fields | |
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/debian/copyright/legacy-fields')
7 files changed, 81 insertions, 0 deletions
diff --git a/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/changelog.in b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/changelog.in new file mode 100644 index 0000000..38fc4e9 --- /dev/null +++ b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/changelog.in @@ -0,0 +1,10 @@ +fields ([% $version %]) [% $distribution %]; urgency=low + + * This package adds tests for the following tags: + - debian-revision-not-well-formed + - depends-on-python-minimal + - essential-no-not-needed + - debian-revision-should-not-be-zero + - new-essential-package + + -- Tobias Quathamer <toddy@debian.org> Sun, 10 Apr 2011 14:30:00 +0100 diff --git a/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/control b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/control new file mode 100644 index 0000000..d980a6e --- /dev/null +++ b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/control @@ -0,0 +1,28 @@ +Source: fields +Section: does-not-exist +Priority: standard +Maintainer: Lintian Maintainers <lintian-maint@debian.org> +Standards-Version: 3.9.2 + +Package: fields +Essential: no +Architecture: all +Depends: python-minimal +Description: Generate some errors + 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. + +Package: another-version +Essential: yes +Section: admin +Architecture: all +Description: Also generate some errors + This package gets another version number and tries to sneak in a new + essential package. + . + 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. diff --git a/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/rules b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/rules new file mode 100755 index 0000000..11ad4a7 --- /dev/null +++ b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/debian/rules @@ -0,0 +1,33 @@ +#!/usr/bin/make -f + +tmp=debian/tmp + +build-arch: + +build-indep: + +build: build-arch build-indep + +binary-arch: + +binary-indep: + install -d $(tmp)/usr/share/doc/fields + install -m 644 debian/changelog \ + $(tmp)/usr/share/doc/fields/changelog + gzip -n -9 $(tmp)/usr/share/doc/fields/changelog + dh_md5sums -pfields -P$(tmp) + dpkg-gencontrol -pfields -P$(tmp) + dpkg --build $(tmp) .. + rm -rf $(tmp) + + # Create another package with a different version + dh_md5sums -panother-version -P$(tmp) + dpkg-gencontrol -panother-version -v123.4-0 -P$(tmp) + dpkg --build $(tmp) .. + +binary: binary-arch binary-indep + +clean: + rm -rf debian/files $(tmp) debian/substvars + +.PHONY: build-arch build-indep build binary-arch binary-indep binary clean diff --git a/t/recipes/checks/debian/copyright/legacy-fields/build-spec/fill-values b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/fill-values new file mode 100644 index 0000000..fe90eb0 --- /dev/null +++ b/t/recipes/checks/debian/copyright/legacy-fields/build-spec/fill-values @@ -0,0 +1,5 @@ +Skeleton: upload-non-native +Testname: legacy-fields +Source: fields +Version: 1.5-.3 +Description: Legacy test "fields" diff --git a/t/recipes/checks/debian/copyright/legacy-fields/eval/desc b/t/recipes/checks/debian/copyright/legacy-fields/eval/desc new file mode 100644 index 0000000..10be13b --- /dev/null +++ b/t/recipes/checks/debian/copyright/legacy-fields/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-fields +Check: debian/copyright diff --git a/t/recipes/checks/debian/copyright/legacy-fields/eval/hints b/t/recipes/checks/debian/copyright/legacy-fields/eval/hints new file mode 100644 index 0000000..6ce7d6e --- /dev/null +++ b/t/recipes/checks/debian/copyright/legacy-fields/eval/hints @@ -0,0 +1,2 @@ +fields (binary): no-copyright-file +another-version (binary): no-copyright-file diff --git a/t/recipes/checks/debian/copyright/legacy-fields/eval/post-test b/t/recipes/checks/debian/copyright/legacy-fields/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debian/copyright/legacy-fields/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ |