summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/fields/multi-arch
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/debian/control.in18
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/debian/fonts-fields-font-not-multiarch-foreign.install2
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/fill-values4
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/orig/font-multiarch-test.ttf2
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/orig/font.ttf1
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/eval/desc2
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/eval/hints1
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/build-spec/DEBIAN/control.in12
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/eval/desc2
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/eval/hints1
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/control.in28
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd641
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd641
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/fill-values4
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/eval/desc3
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints1
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/build-spec/DEBIAN/control.in12
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/build-spec/fill-values3
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/eval/desc2
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/eval/hints1
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch/build-spec/debian/control.in20
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch/build-spec/fill-values4
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch/build-spec/orig/Makefile5
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch/eval/desc5
-rw-r--r--t/recipes/checks/fields/multi-arch/fields-multi-arch/eval/hints0
26 files changed, 138 insertions, 0 deletions
diff --git a/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/debian/control.in b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/debian/control.in
new file mode 100644
index 0000000..13b4d9d
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/debian/control.in
@@ -0,0 +1,18 @@
+Source: [% $source %]
+Priority: optional
+Section: fonts
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+Homepage: http://lintian.debian.org/
+
+Package: fonts-[% $source %]
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: [% $description %] (okay)
+ Font package containing fonts.
+ .
+ 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.
diff --git a/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/debian/fonts-fields-font-not-multiarch-foreign.install b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/debian/fonts-fields-font-not-multiarch-foreign.install
new file mode 100644
index 0000000..19a2037
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/debian/fonts-fields-font-not-multiarch-foreign.install
@@ -0,0 +1,2 @@
+font-multiarch-test.ttf usr/share/fonts/truetype
+font.ttf usr/share/fonts/truetype
diff --git a/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/fill-values b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/fill-values
new file mode 100644
index 0000000..b60b2d7
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: fields-font-not-multiarch-foreign
+Package-Architecture: all
+Description: Font package Multi-Arch checks
diff --git a/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/orig/font-multiarch-test.ttf b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/orig/font-multiarch-test.ttf
new file mode 100644
index 0000000..780ab93
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/orig/font-multiarch-test.ttf
@@ -0,0 +1,2 @@
+This isn't actually a font. The current test is based on the file
+name and doesn't care.
diff --git a/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/orig/font.ttf b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/orig/font.ttf
new file mode 100644
index 0000000..c118d8d
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/build-spec/orig/font.ttf
@@ -0,0 +1 @@
+This is a fake font file.
diff --git a/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/eval/desc b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/eval/desc
new file mode 100644
index 0000000..ae1fed7
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-font-not-multiarch-foreign
+Check: fields/multi-arch
diff --git a/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/eval/hints b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/eval/hints
new file mode 100644
index 0000000..2ac66c4
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-font-not-multiarch-foreign/eval/hints
@@ -0,0 +1 @@
+fonts-fields-font-not-multiarch-foreign (binary): font-package-not-multi-arch-foreign
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/build-spec/DEBIAN/control.in b/t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/build-spec/DEBIAN/control.in
new file mode 100644
index 0000000..dcb1163
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/build-spec/DEBIAN/control.in
@@ -0,0 +1,12 @@
+Package: [% $source %]
+Version: [% $version %]
+Architecture: all
+Multi-Arch: same
+Maintainer: [% $author %]
+Section: [% $section %]
+Priority: optional
+Description: [% $description %]
+ 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/multi-arch/fields-multi-arch-illegal/build-spec/fill-values b/t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/build-spec/fill-values
new file mode 100644
index 0000000..96eaf1f
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: deb
+Testname: fields-multi-arch-illegal
+Description: Test package with illegal Multi-arch value
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/eval/desc b/t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/eval/desc
new file mode 100644
index 0000000..7378a25
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-multi-arch-illegal
+Check: fields/multi-arch
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/eval/hints b/t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/eval/hints
new file mode 100644
index 0000000..989d1df
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-illegal/eval/hints
@@ -0,0 +1 @@
+fields-multi-arch-illegal (binary): illegal-multi-arch-value all same
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/control.in b/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/control.in
new file mode 100644
index 0000000..88afb0f
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/control.in
@@ -0,0 +1,28 @@
+Source: [% $source %]
+Priority: optional
+Section: [% $section %]
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Multi-Arch: same
+Depends: ${misc:Depends}
+Description: [% $description %]
+ 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: [% $source %]-nonrel
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}
+Description: [% $description %] (false positive)
+ 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.
+ .
+ This is a false-positive.
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64 b/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides-nonrel.lintian-overrides.amd64
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64 b/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64
new file mode 100644
index 0000000..257cc56
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64
@@ -0,0 +1 @@
+foo
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/fill-values b/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/fill-values
new file mode 100644
index 0000000..085fb2f
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: fields-multi-arch-same-package-has-arch-specific-overrides
+Description: Test for Multi-Arch: same package with arch-specific overrides
+Package-Architecture: any
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/eval/desc b/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/eval/desc
new file mode 100644
index 0000000..00792c9
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/eval/desc
@@ -0,0 +1,3 @@
+Testname: fields-multi-arch-same-package-has-arch-specific-overrides
+Test-Architectures: amd64
+Check: fields/multi-arch
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints b/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints
new file mode 100644
index 0000000..d1730eb
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-same-package-has-arch-specific-overrides/eval/hints
@@ -0,0 +1 @@
+fields-multi-arch-same-package-has-arch-specific-overrides (source): multi-arch-same-package-has-arch-specific-overrides [debian/fields-multi-arch-same-package-has-arch-specific-overrides.lintian-overrides.amd64]
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/build-spec/DEBIAN/control.in b/t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/build-spec/DEBIAN/control.in
new file mode 100644
index 0000000..ca441c4
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/build-spec/DEBIAN/control.in
@@ -0,0 +1,12 @@
+Package: [% $source %]
+Version: [% $version %]
+Architecture: [% $package_architecture %]
+Multi-Arch: cheese
+Maintainer: [% $author %]
+Section: [% $section %]
+Priority: optional
+Description: [% $description %]
+ 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/multi-arch/fields-multi-arch-unknown/build-spec/fill-values b/t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/build-spec/fill-values
new file mode 100644
index 0000000..59cc9f1
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: deb
+Testname: fields-multi-arch-unknown
+Description: Test package with an unknown Multi-arch value
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/eval/desc b/t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/eval/desc
new file mode 100644
index 0000000..687b40f
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/eval/desc
@@ -0,0 +1,2 @@
+Testname: fields-multi-arch-unknown
+Check: fields/multi-arch
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/eval/hints b/t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/eval/hints
new file mode 100644
index 0000000..5c84ca6
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch-unknown/eval/hints
@@ -0,0 +1 @@
+fields-multi-arch-unknown (binary): unknown-multi-arch-value fields-multi-arch-unknown cheese
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch/build-spec/debian/control.in b/t/recipes/checks/fields/multi-arch/fields-multi-arch/build-spec/debian/control.in
new file mode 100644
index 0000000..ab7a6a5
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch/build-spec/debian/control.in
@@ -0,0 +1,20 @@
+Source: [% $source %]
+Priority: optional
+Section: devel
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: [% $source %]-same
+Architecture: [% $package_architecture %]
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Multi-Arch: same
+Description: [% $description %] - same
+ 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.
+ .
+ This is a test with a valid Multi-Arch field.
+
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch/build-spec/fill-values b/t/recipes/checks/fields/multi-arch/fields-multi-arch/build-spec/fill-values
new file mode 100644
index 0000000..02565d9
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: fields-multi-arch
+Package-Architecture: any
+Description: Tests for the Multi-Arch field
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch/build-spec/orig/Makefile b/t/recipes/checks/fields/multi-arch/fields-multi-arch/build-spec/orig/Makefile
new file mode 100644
index 0000000..6df56c1
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch/build-spec/orig/Makefile
@@ -0,0 +1,5 @@
+all:
+
+install:
+ install -d -m 0755 "$(DESTDIR)/usr/lib/package"
+ echo "Hallo World" > "$(DESTDIR)/usr/lib/package/some-file"
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch/eval/desc b/t/recipes/checks/fields/multi-arch/fields-multi-arch/eval/desc
new file mode 100644
index 0000000..a3d90af
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch/eval/desc
@@ -0,0 +1,5 @@
+Testname: fields-multi-arch
+Test-Against:
+ illegal-multi-arch-value
+ unknown-multi-arch-value
+Check: fields/multi-arch
diff --git a/t/recipes/checks/fields/multi-arch/fields-multi-arch/eval/hints b/t/recipes/checks/fields/multi-arch/fields-multi-arch/eval/hints
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/fields/multi-arch/fields-multi-arch/eval/hints