diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:42:30 +0000 |
commit | 75808db17caf8b960b351e3408e74142f4c85aac (patch) | |
tree | 7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/files/architecture/cruft-source-is-missing-unrel | |
parent | Initial commit. (diff) | |
download | lintian-75808db17caf8b960b351e3408e74142f4c85aac.tar.xz lintian-75808db17caf8b960b351e3408e74142f4c85aac.zip |
Adding upstream version 2.117.0.upstream/2.117.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
7 files changed, 53 insertions, 0 deletions
diff --git a/t/recipes/checks/files/architecture/cruft-source-is-missing-unrel/build-spec/debian/control.in b/t/recipes/checks/files/architecture/cruft-source-is-missing-unrel/build-spec/debian/control.in new file mode 100644 index 0000000..f46d6ef --- /dev/null +++ b/t/recipes/checks/files/architecture/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/architecture/cruft-source-is-missing-unrel/build-spec/fill-values b/t/recipes/checks/files/architecture/cruft-source-is-missing-unrel/build-spec/fill-values new file mode 100644 index 0000000..1ce50ee --- /dev/null +++ b/t/recipes/checks/files/architecture/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/architecture/cruft-source-is-missing-unrel/build-spec/orig/main.c b/t/recipes/checks/files/architecture/cruft-source-is-missing-unrel/build-spec/orig/main.c new file mode 100644 index 0000000..2fb04e1 --- /dev/null +++ b/t/recipes/checks/files/architecture/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/architecture/cruft-source-is-missing-unrel/build-spec/pre-build b/t/recipes/checks/files/architecture/cruft-source-is-missing-unrel/build-spec/pre-build new file mode 100755 index 0000000..db309af --- /dev/null +++ b/t/recipes/checks/files/architecture/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/architecture/cruft-source-is-missing-unrel/build-spec/pre-upstream b/t/recipes/checks/files/architecture/cruft-source-is-missing-unrel/build-spec/pre-upstream new file mode 100755 index 0000000..fb28255 --- /dev/null +++ b/t/recipes/checks/files/architecture/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 diff --git a/t/recipes/checks/files/architecture/cruft-source-is-missing-unrel/eval/desc b/t/recipes/checks/files/architecture/cruft-source-is-missing-unrel/eval/desc new file mode 100644 index 0000000..d9675d9 --- /dev/null +++ b/t/recipes/checks/files/architecture/cruft-source-is-missing-unrel/eval/desc @@ -0,0 +1,2 @@ +Testname: cruft-source-is-missing-unrel +Check: files/architecture diff --git a/t/recipes/checks/files/architecture/cruft-source-is-missing-unrel/eval/hints b/t/recipes/checks/files/architecture/cruft-source-is-missing-unrel/eval/hints new file mode 100644 index 0000000..0668955 --- /dev/null +++ b/t/recipes/checks/files/architecture/cruft-source-is-missing-unrel/eval/hints @@ -0,0 +1 @@ +cruft-source-is-missing-unrel (binary): package-contains-no-arch-dependent-files |