summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/files/config-scripts
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/files/config-scripts')
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/config-all.install1
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/config-ma-foreign.install1
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/config-ma-no.install1
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/control.in40
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/fill-values3
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/Makefile18
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-all-config.in3
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-cross-all-config.in3
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-cross-foreign-config.in3
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-foreign-config.in2
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-all-config.in2
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-cross-all-config.in3
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-cross-foreign-config.in3
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-cross-no-config.in3
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-foreign-config.in2
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-no-config.in2
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/eval/desc3
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/eval/hints16
-rw-r--r--t/recipes/checks/files/config-scripts/files-old-config-script/eval/post-test3
19 files changed, 112 insertions, 0 deletions
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/config-all.install b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/config-all.install
new file mode 100644
index 0000000..53238e4
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/config-all.install
@@ -0,0 +1 @@
+usr/bin/*-all-config
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/config-ma-foreign.install b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/config-ma-foreign.install
new file mode 100644
index 0000000..156218d
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/config-ma-foreign.install
@@ -0,0 +1 @@
+usr/bin/*-foreign-config
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/config-ma-no.install b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/config-ma-no.install
new file mode 100644
index 0000000..a3a2d45
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/config-ma-no.install
@@ -0,0 +1 @@
+usr/bin/*-no-config
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/control.in b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/control.in
new file mode 100644
index 0000000..df3690e
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/debian/control.in
@@ -0,0 +1,40 @@
+Source: [% $source %]
+Priority: optional
+Section: devel
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: config-ma-no
+Architecture: any
+Depends: ${misc:Depends}, ${shlib:Depends}
+Multi-arch: no
+Description: Contains config test file no
+ This is a test package designed to exercise some feature or tag of
+ Lintian for arch any ma no config script.
+ 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: config-ma-foreign
+Architecture: any
+Multi-arch: foreign
+Depends: ${misc:Depends}, ${shlib:Depends}
+Description: Contains config test file foreign
+ This is a test package designed to exercise some feature or tag of
+ Lintian for arch any config script ma foreign.
+ 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: config-all
+Architecture: all
+Depends: ${misc:Depends}, ${shlib:Depends}
+Multi-arch: no
+Description: Contains config test file all arch
+ This is a test package designed to exercise some feature or tag of
+ Lintian for arch all ma no config script.
+ 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/files/config-scripts/files-old-config-script/build-spec/fill-values b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/fill-values
new file mode 100644
index 0000000..b352204
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: files-old-config-script
+Description: Check for detection of old style config script
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/Makefile b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/Makefile
new file mode 100644
index 0000000..5c7831d
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/Makefile
@@ -0,0 +1,18 @@
+ARCH=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+ifeq ($(ARCH), x86_64-linux-gnu)
+ ARCH_CROSS=i386-linux-gnu
+else
+ ARCH_CROSS=x86_64-linux-gnu
+endif
+
+all:
+ find generated -name '*-config.in' -exec sh -c 'echo "build" {} && cat {} | sed -e s/\$$\(ARCH\)/$(ARCH)/g -e s/\$$\(ARCH_CROSS\)/$(ARCH_CROSS)/g > `echo {} | sed -e s/\-config\.in$$/\-config/g -e s,/ARCH_,/$(ARCH)_,g`' \;
+
+install:
+ install -d $(DESTDIR)/usr/bin
+ install -m 755 generated/*-config $(DESTDIR)/usr/bin
+
+clean distclean:
+ rm -f generated/*.config
+
+check test:
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-all-config.in b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-all-config.in
new file mode 100644
index 0000000..8e7070b
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-all-config.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+echo "-I/usr/include/$(ARCH)/someconfig.h"
+
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-cross-all-config.in b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-cross-all-config.in
new file mode 100644
index 0000000..665922b
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-cross-all-config.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+echo "-I/usr/include/$(ARCH_CROSS)/someconfig.h"
+
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-cross-foreign-config.in b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-cross-foreign-config.in
new file mode 100644
index 0000000..665922b
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-cross-foreign-config.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+echo "-I/usr/include/$(ARCH_CROSS)/someconfig.h"
+
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-foreign-config.in b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-foreign-config.in
new file mode 100644
index 0000000..9d7a85c
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/ARCH_-arch-foreign-config.in
@@ -0,0 +1,2 @@
+#!/bin/bash
+echo "-I/usr/include/$(ARCH)/arch-include-arch"
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-all-config.in b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-all-config.in
new file mode 100644
index 0000000..9d7a85c
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-all-config.in
@@ -0,0 +1,2 @@
+#!/bin/bash
+echo "-I/usr/include/$(ARCH)/arch-include-arch"
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-cross-all-config.in b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-cross-all-config.in
new file mode 100644
index 0000000..665922b
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-cross-all-config.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+echo "-I/usr/include/$(ARCH_CROSS)/someconfig.h"
+
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-cross-foreign-config.in b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-cross-foreign-config.in
new file mode 100644
index 0000000..665922b
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-cross-foreign-config.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+echo "-I/usr/include/$(ARCH_CROSS)/someconfig.h"
+
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-cross-no-config.in b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-cross-no-config.in
new file mode 100644
index 0000000..665922b
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-cross-no-config.in
@@ -0,0 +1,3 @@
+#!/bin/sh
+echo "-I/usr/include/$(ARCH_CROSS)/someconfig.h"
+
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-foreign-config.in b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-foreign-config.in
new file mode 100644
index 0000000..9d7a85c
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-foreign-config.in
@@ -0,0 +1,2 @@
+#!/bin/bash
+echo "-I/usr/include/$(ARCH)/arch-include-arch"
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-no-config.in b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-no-config.in
new file mode 100644
index 0000000..9d7a85c
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/build-spec/orig/generated/arch-no-config.in
@@ -0,0 +1,2 @@
+#!/bin/bash
+echo "-I/usr/include/$(ARCH)/arch-include-arch"
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/eval/desc b/t/recipes/checks/files/config-scripts/files-old-config-script/eval/desc
new file mode 100644
index 0000000..a7dd4d9
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/eval/desc
@@ -0,0 +1,3 @@
+Testname: files-old-config-script
+Check: files/config-scripts
+Test-Architectures: amd64
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/eval/hints b/t/recipes/checks/files/config-scripts/files-old-config-script/eval/hints
new file mode 100644
index 0000000..115ae53
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/eval/hints
@@ -0,0 +1,16 @@
+config-ma-no (binary): old-style-config-script [usr/bin/arch-no-config]
+config-ma-no (binary): old-style-config-script [usr/bin/arch-cross-no-config]
+config-ma-foreign (binary): old-style-config-script-multiarch-path full text contains architecture specific dir x86_64-linux-gnu [usr/bin/arch-foreign-config]
+config-ma-foreign (binary): old-style-config-script-multiarch-path full text contains architecture specific dir i386-linux-gnu [usr/bin/x86_64-linux-gnu_-arch-cross-foreign-config]
+config-ma-foreign (binary): old-style-config-script-multiarch-path full text contains architecture specific dir i386-linux-gnu [usr/bin/arch-cross-foreign-config]
+config-ma-foreign (binary): old-style-config-script [usr/bin/x86_64-linux-gnu_-arch-foreign-config]
+config-ma-foreign (binary): old-style-config-script [usr/bin/x86_64-linux-gnu_-arch-cross-foreign-config]
+config-ma-foreign (binary): old-style-config-script [usr/bin/arch-foreign-config]
+config-ma-foreign (binary): old-style-config-script [usr/bin/arch-cross-foreign-config]
+config-all (binary): old-style-config-script-multiarch-path-arch-all full text contains architecture specific dir x86_64-linux-gnu [usr/bin/arch-all-config]
+config-all (binary): old-style-config-script-multiarch-path-arch-all full text contains architecture specific dir i386-linux-gnu [usr/bin/x86_64-linux-gnu_-arch-cross-all-config]
+config-all (binary): old-style-config-script-multiarch-path-arch-all full text contains architecture specific dir i386-linux-gnu [usr/bin/arch-cross-all-config]
+config-all (binary): old-style-config-script [usr/bin/x86_64-linux-gnu_-arch-cross-all-config]
+config-all (binary): old-style-config-script [usr/bin/x86_64-linux-gnu_-arch-all-config]
+config-all (binary): old-style-config-script [usr/bin/arch-cross-all-config]
+config-all (binary): old-style-config-script [usr/bin/arch-all-config]
diff --git a/t/recipes/checks/files/config-scripts/files-old-config-script/eval/post-test b/t/recipes/checks/files/config-scripts/files-old-config-script/eval/post-test
new file mode 100644
index 0000000..686ad87
--- /dev/null
+++ b/t/recipes/checks/files/config-scripts/files-old-config-script/eval/post-test
@@ -0,0 +1,3 @@
+s/full text contains architecture specific dir \S+$/full text contains architecture specific dir ARCH/
+s, usr/lib/[^/]+/, usr/lib/ARCH/,
+s, usr/bin/[^/]+_-, usr/bin/TRIPLET_-,