diff options
Diffstat (limited to 't/recipes/checks/debhelper/legacy-fields')
8 files changed, 88 insertions, 0 deletions
diff --git a/t/recipes/checks/debhelper/legacy-fields/build-spec/debian/changelog.in b/t/recipes/checks/debhelper/legacy-fields/build-spec/debian/changelog.in new file mode 100644 index 0000000..38fc4e9 --- /dev/null +++ b/t/recipes/checks/debhelper/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/debhelper/legacy-fields/build-spec/debian/compat.in b/t/recipes/checks/debhelper/legacy-fields/build-spec/debian/compat.in new file mode 100644 index 0000000..640a566 --- /dev/null +++ b/t/recipes/checks/debhelper/legacy-fields/build-spec/debian/compat.in @@ -0,0 +1 @@ +[% $dh_compat_level %] diff --git a/t/recipes/checks/debhelper/legacy-fields/build-spec/debian/control b/t/recipes/checks/debhelper/legacy-fields/build-spec/debian/control new file mode 100644 index 0000000..d980a6e --- /dev/null +++ b/t/recipes/checks/debhelper/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/debhelper/legacy-fields/build-spec/debian/rules b/t/recipes/checks/debhelper/legacy-fields/build-spec/debian/rules new file mode 100755 index 0000000..11ad4a7 --- /dev/null +++ b/t/recipes/checks/debhelper/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/debhelper/legacy-fields/build-spec/fill-values b/t/recipes/checks/debhelper/legacy-fields/build-spec/fill-values new file mode 100644 index 0000000..fe90eb0 --- /dev/null +++ b/t/recipes/checks/debhelper/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/debhelper/legacy-fields/eval/desc b/t/recipes/checks/debhelper/legacy-fields/eval/desc new file mode 100644 index 0000000..caa4458 --- /dev/null +++ b/t/recipes/checks/debhelper/legacy-fields/eval/desc @@ -0,0 +1,2 @@ +Testname: legacy-fields +Check: debhelper diff --git a/t/recipes/checks/debhelper/legacy-fields/eval/hints b/t/recipes/checks/debhelper/legacy-fields/eval/hints new file mode 100644 index 0000000..704f9a5 --- /dev/null +++ b/t/recipes/checks/debhelper/legacy-fields/eval/hints @@ -0,0 +1,8 @@ +fields (source): uses-debhelper-compat-file [debian/compat] +fields (source): package-uses-debhelper-but-lacks-build-depends [debian/rules] +fields (source): no-versioned-debhelper-prerequisite 13 +fields (source): missing-build-dependency-for-dh_-command dh_md5sums (does not satisfy debhelper:any | debhelper-compat:any) [debian/rules] +fields (source): debian-build-system debhelper [debian/rules] +fields (source): debhelper-compat-level 13 +fields (source): debhelper-but-no-misc-depends fields +fields (source): debhelper-but-no-misc-depends another-version diff --git a/t/recipes/checks/debhelper/legacy-fields/eval/post-test b/t/recipes/checks/debhelper/legacy-fields/eval/post-test new file mode 100644 index 0000000..faeef0b --- /dev/null +++ b/t/recipes/checks/debhelper/legacy-fields/eval/post-test @@ -0,0 +1 @@ +s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/ |