summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec')
-rw-r--r--t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/debian/control.in15
-rw-r--r--t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/fill-values5
-rw-r--r--t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/orig/main.c8
-rwxr-xr-xt/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/pre-build11
-rwxr-xr-xt/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/pre-upstream11
5 files changed, 50 insertions, 0 deletions
diff --git a/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/debian/control.in b/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/debian/control.in
new file mode 100644
index 0000000..f46d6ef
--- /dev/null
+++ b/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/debian/control.in
@@ -0,0 +1,15 @@
+Source: [% $source %]
+Priority: optional
+Section: utils
+Maintainer: [% $author %]
+Standards-Version: [% $standards_version %]
+Build-Depends: [% $build_depends %]
+Rules-Requires-Root: no
+
+Package: [% $source %]
+Architecture: [% $package_architecture %]
+Depends: ${shlibs: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.
diff --git a/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/fill-values b/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/fill-values
new file mode 100644
index 0000000..1ce50ee
--- /dev/null
+++ b/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/fill-values
@@ -0,0 +1,5 @@
+Testname: cruft-source-is-missing-unrel
+Skeleton: upload-non-native
+Source-Format: 3.0 (quilt)
+Package-Architecture: any
+Description: Check for source-is-missing false positives
diff --git a/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/orig/main.c b/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/orig/main.c
new file mode 100644
index 0000000..2fb04e1
--- /dev/null
+++ b/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/orig/main.c
@@ -0,0 +1,8 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+int main(int argc, char *argv[]) {
+
+ printf("Hello, World!\n");
+ exit(0);
+}
diff --git a/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/pre-build b/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/pre-build
new file mode 100755
index 0000000..db309af
--- /dev/null
+++ b/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/pre-build
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+cd "$1"
+
+mkdir -p debian/missing-sources/bar
+cp main.c debian/missing-sources/bar/main.c
+
+ln -s bar debian/missing-sources/foo
+ln -s bar debian/missing-sources/quux
diff --git a/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/pre-upstream b/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/pre-upstream
new file mode 100755
index 0000000..fb28255
--- /dev/null
+++ b/t/recipes/checks/files/empty-package/cruft-source-is-missing-unrel/build-spec/pre-upstream
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+cd "$1"
+
+
+gcc -o foo main.c
+gcc -o bar main.c
+mkdir -p baz/
+gcc -o baz/quux main.c