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/build-systems/autotools/cruft-general-test-suite/build-spec | |
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 't/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec')
3 files changed, 46 insertions, 0 deletions
diff --git a/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/fill-values b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/fill-values new file mode 100644 index 0000000..b153334 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/fill-values @@ -0,0 +1,3 @@ +Testname: cruft-general-test-suite +Skeleton: upload-non-native +Description: Check that cruft in test suites is okay diff --git a/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/orig/hello.c b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/orig/hello.c new file mode 100644 index 0000000..1b47b80 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/orig/hello.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int +main(void) +{ + printf("Hello world!\n"); + return 0; +} diff --git a/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/pre-upstream b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/pre-upstream new file mode 100755 index 0000000..8665c92 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/pre-upstream @@ -0,0 +1,35 @@ +#!/bin/sh +# +# Create all the various junk that shouldn't exist upstream. We do much of it +# here rather than in the template so that Lintian itself can be imported into +# revision control systems. + +set -e +dir="$1" + +mkdir -p "${dir}/t/CVS" +echo 'source-contains-cvs-control-dir' > "${dir}/t/CVS/Entries" +mkdir -p "${dir}/foo/t/.svn" +echo 'source-contains-svn-control-dir' > "${dir}/foo/t/.svn/format" +mkdir -p "${dir}/test/.bzr" +echo 'source-contains-bzr-control-dir' > "${dir}/test/.bzr/foo" +mkdir -p "${dir}/bar/test/{arch}" +echo 'source-contains-arch-control-dir' > "${dir}/bar/test/{arch}/foo" +mkdir -p "${dir}/tests/.git" +echo 'source-contains-git-control-dir' > "${dir}/tests/.git/foo" +mkdir -p "${dir}/baz/foo/tests/.hg" +echo 'source-contains-hg-control-dir' > "${dir}/baz/foo/tests/.hg/foo" +mkdir -p "${dir}/testset/.be" +echo 'source-contains-bts-control-dir' > "${dir}/testset/.be/foo" + +echo 'source-contains-svn-commit-file' > "${dir}/t/svn-commit.tmp" +echo 'source-contains-svk-commit-file' > "${dir}/t/svk-commit444.tmp" +echo 'source-contains-arch-inventory-file' > "${dir}/t/.arch-inventory" +echo 'source-contains-hg-tags-file' > "${dir}/t/.hgtags" +echo 'source-contains-cvs-conflict-copy' > "${dir}/t/.#foo.1.1" +echo 'source-contains-svn-conflict-file' > "${dir}/t/foo.r1352" + +echo 'configure-generated-file-in-source' > "${dir}/tests/config.cache" + +cd "$1" +gcc -o t/hello hello.c |