From 75808db17caf8b960b351e3408e74142f4c85aac Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 14 Apr 2024 15:42:30 +0200 Subject: Adding upstream version 2.117.0. Signed-off-by: Daniel Baumann --- .../build-spec/fill-values | 3 ++ .../build-spec/orig/hello.c | 8 +++++ .../build-spec/pre-upstream | 35 ++++++++++++++++++++++ .../autotools/cruft-general-test-suite/eval/desc | 4 +++ .../autotools/cruft-general-test-suite/eval/hints | 1 + 5 files changed, 51 insertions(+) create mode 100644 t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/fill-values create mode 100644 t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/orig/hello.c create mode 100755 t/recipes/checks/build-systems/autotools/cruft-general-test-suite/build-spec/pre-upstream create mode 100644 t/recipes/checks/build-systems/autotools/cruft-general-test-suite/eval/desc create mode 100644 t/recipes/checks/build-systems/autotools/cruft-general-test-suite/eval/hints (limited to 't/recipes/checks/build-systems/autotools/cruft-general-test-suite') 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 + +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 diff --git a/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/eval/desc b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/eval/desc new file mode 100644 index 0000000..2da240a --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/eval/desc @@ -0,0 +1,4 @@ +Testname: cruft-general-test-suite +Test-Against: + configure-generated-file-in-source +Check: build-systems/autotools diff --git a/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/eval/hints b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/eval/hints new file mode 100644 index 0000000..5f7a858 --- /dev/null +++ b/t/recipes/checks/build-systems/autotools/cruft-general-test-suite/eval/hints @@ -0,0 +1 @@ +cruft-general-test-suite (source): configure-generated-file-in-source [tests/config.cache] -- cgit v1.2.3