summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/control-files/control-field-traversal-4
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/control-files/control-field-traversal-4')
-rw-r--r--t/recipes/checks/control-files/control-field-traversal-4/build-spec/DEBIAN/control.in12
-rw-r--r--t/recipes/checks/control-files/control-field-traversal-4/build-spec/fill-values3
-rwxr-xr-xt/recipes/checks/control-files/control-field-traversal-4/build-spec/pre-data13
-rw-r--r--t/recipes/checks/control-files/control-field-traversal-4/eval/desc4
-rw-r--r--t/recipes/checks/control-files/control-field-traversal-4/eval/literal1
5 files changed, 33 insertions, 0 deletions
diff --git a/t/recipes/checks/control-files/control-field-traversal-4/build-spec/DEBIAN/control.in b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/DEBIAN/control.in
new file mode 100644
index 0000000..3c0318e
--- /dev/null
+++ b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/DEBIAN/control.in
@@ -0,0 +1,12 @@
+Package: [% $source %]
+Version: [% $version %]
+Architecture: [% $package_architecture %]
+Maintainer: [% $author %]
+Section: [% $section %]
+Priority: optional
+Source: ../binary/control-field-traversal-4
+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/control-files/control-field-traversal-4/build-spec/fill-values b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/fill-values
new file mode 100644
index 0000000..b8508ba
--- /dev/null
+++ b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: deb
+Testname: control-field-traversal-4
+Description: Test for directory traversal issues via field names or values
diff --git a/t/recipes/checks/control-files/control-field-traversal-4/build-spec/pre-data b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/pre-data
new file mode 100755
index 0000000..c14dcc8
--- /dev/null
+++ b/t/recipes/checks/control-files/control-field-traversal-4/build-spec/pre-data
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+rootdir="$1"
+name="$2"
+
+docdir="$rootdir/usr/share/doc"
+
+rm -rf "$docdir"
+
+mkdir -p "$docdir/dpkg"
+ln -sf dpkg "$docdir/$name"
diff --git a/t/recipes/checks/control-files/control-field-traversal-4/eval/desc b/t/recipes/checks/control-files/control-field-traversal-4/eval/desc
new file mode 100644
index 0000000..f31ff4d
--- /dev/null
+++ b/t/recipes/checks/control-files/control-field-traversal-4/eval/desc
@@ -0,0 +1,4 @@
+Testname: control-field-traversal-4
+Check: control-files
+Output-Format: EWI
+Match-Strategy: literal
diff --git a/t/recipes/checks/control-files/control-field-traversal-4/eval/literal b/t/recipes/checks/control-files/control-field-traversal-4/eval/literal
new file mode 100644
index 0000000..c1dd694
--- /dev/null
+++ b/t/recipes/checks/control-files/control-field-traversal-4/eval/literal
@@ -0,0 +1 @@
+warning: tainted binary package 'control-field-traversal-4', skipping