summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/fields/section/legacy-fields
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/fields/section/legacy-fields')
-rw-r--r--t/recipes/checks/fields/section/legacy-fields/build-spec/debian/changelog.in10
-rw-r--r--t/recipes/checks/fields/section/legacy-fields/build-spec/debian/control28
-rwxr-xr-xt/recipes/checks/fields/section/legacy-fields/build-spec/debian/rules33
-rw-r--r--t/recipes/checks/fields/section/legacy-fields/build-spec/fill-values5
-rw-r--r--t/recipes/checks/fields/section/legacy-fields/eval/desc2
-rw-r--r--t/recipes/checks/fields/section/legacy-fields/eval/hints1
-rw-r--r--t/recipes/checks/fields/section/legacy-fields/eval/post-test1
7 files changed, 80 insertions, 0 deletions
diff --git a/t/recipes/checks/fields/section/legacy-fields/build-spec/debian/changelog.in b/t/recipes/checks/fields/section/legacy-fields/build-spec/debian/changelog.in
new file mode 100644
index 0000000..38fc4e9
--- /dev/null
+++ b/t/recipes/checks/fields/section/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/fields/section/legacy-fields/build-spec/debian/control b/t/recipes/checks/fields/section/legacy-fields/build-spec/debian/control
new file mode 100644
index 0000000..d980a6e
--- /dev/null
+++ b/t/recipes/checks/fields/section/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/fields/section/legacy-fields/build-spec/debian/rules b/t/recipes/checks/fields/section/legacy-fields/build-spec/debian/rules
new file mode 100755
index 0000000..11ad4a7
--- /dev/null
+++ b/t/recipes/checks/fields/section/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/fields/section/legacy-fields/build-spec/fill-values b/t/recipes/checks/fields/section/legacy-fields/build-spec/fill-values
new file mode 100644
index 0000000..fe90eb0
--- /dev/null
+++ b/t/recipes/checks/fields/section/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/fields/section/legacy-fields/eval/desc b/t/recipes/checks/fields/section/legacy-fields/eval/desc
new file mode 100644
index 0000000..238c163
--- /dev/null
+++ b/t/recipes/checks/fields/section/legacy-fields/eval/desc
@@ -0,0 +1,2 @@
+Testname: legacy-fields
+Check: fields/section
diff --git a/t/recipes/checks/fields/section/legacy-fields/eval/hints b/t/recipes/checks/fields/section/legacy-fields/eval/hints
new file mode 100644
index 0000000..70e11e8
--- /dev/null
+++ b/t/recipes/checks/fields/section/legacy-fields/eval/hints
@@ -0,0 +1 @@
+fields (binary): unknown-section does-not-exist
diff --git a/t/recipes/checks/fields/section/legacy-fields/eval/post-test b/t/recipes/checks/fields/section/legacy-fields/eval/post-test
new file mode 100644
index 0000000..faeef0b
--- /dev/null
+++ b/t/recipes/checks/fields/section/legacy-fields/eval/post-test
@@ -0,0 +1 @@
+s/\(current is ([0-9]+\.)+[0-9]\)/(current is CURRENT)/