diff options
Diffstat (limited to 't/recipes/checks/files/artifact')
38 files changed, 347 insertions, 0 deletions
diff --git a/t/recipes/checks/files/artifact/cruft-empty-diff/build-spec/fill-values b/t/recipes/checks/files/artifact/cruft-empty-diff/build-spec/fill-values new file mode 100644 index 0000000..f616eca --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-empty-diff/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: cruft-empty-diff +Source-Format: 1.0 +Skeleton: upload-non-native +Description: Test an empty Debian diff diff --git a/t/recipes/checks/files/artifact/cruft-empty-diff/build-spec/pre-upstream.in b/t/recipes/checks/files/artifact/cruft-empty-diff/build-spec/pre-upstream.in new file mode 100755 index 0000000..9dcdfd1 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-empty-diff/build-spec/pre-upstream.in @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +cp -rp "[% $source_path %]/debian" "$1" diff --git a/t/recipes/checks/files/artifact/cruft-empty-diff/eval/desc b/t/recipes/checks/files/artifact/cruft-empty-diff/eval/desc new file mode 100644 index 0000000..a14797e --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-empty-diff/eval/desc @@ -0,0 +1,4 @@ +Testname: cruft-empty-diff +Check: files/artifact +See-Also: + Bug#498668 diff --git a/t/recipes/checks/files/artifact/cruft-empty-diff/eval/hints b/t/recipes/checks/files/artifact/cruft-empty-diff/eval/hints new file mode 100644 index 0000000..a0d7c56 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-empty-diff/eval/hints @@ -0,0 +1 @@ +cruft-empty-diff (source): no-debian-changes diff --git a/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/debian/rules b/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/debian/rules new file mode 100755 index 0000000..413418b --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/debian/somepackage.substvars b/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/debian/somepackage.substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/debian/somepackage.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/debian/substvars b/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/debian/substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/fill-values b/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/fill-values new file mode 100644 index 0000000..c6798f7 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: cruft-general-diff +Skeleton: upload-non-native +Source-Format: 1.0 +Description: Check for cruft added in the diff diff --git a/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/pre-build b/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/pre-build new file mode 100755 index 0000000..537b323 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-diff/build-spec/pre-build @@ -0,0 +1,34 @@ +#!/bin/sh +# +# Create all the various junk that shouldn't exist in the diff so that we can +# trigger all the tags. + +set -e +dir="$1" + +mkdir "${dir}/CVS" +echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries" +mkdir "${dir}/.svn" +echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format" +mkdir "${dir}/.bzr" +echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo" +mkdir "${dir}/{arch}" +echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo" +mkdir "${dir}/.git" +echo 'diff-contains-git-control-dir' > "${dir}/.git/foo" +mkdir "${dir}/.hg" +echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo" +mkdir "${dir}/.be" +echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo" +mkdir "${dir}/.pc" +echo 'diff-contains-quilt-control-dir' > "${dir}/.pc/foo" + +echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt" +echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp" +echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp" +echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory" +echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags" +echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1" +echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352" +echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej" +echo 'diff-contains-editor-backup-file' > "${dir}/foo~" diff --git a/t/recipes/checks/files/artifact/cruft-general-diff/eval/desc b/t/recipes/checks/files/artifact/cruft-general-diff/eval/desc new file mode 100644 index 0000000..a6c44cd --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-diff/eval/desc @@ -0,0 +1,4 @@ +Testname: cruft-general-diff +Check: files/artifact +See-Also: + Bug#598251 diff --git a/t/recipes/checks/files/artifact/cruft-general-diff/eval/hints b/t/recipes/checks/files/artifact/cruft-general-diff/eval/hints new file mode 100644 index 0000000..773b6df --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-diff/eval/hints @@ -0,0 +1,16 @@ +cruft-general-diff (source): debian-adds-svn-control-dir [.svn/] +cruft-general-diff (source): debian-adds-svn-conflict-file [foo.r1352] +cruft-general-diff (source): debian-adds-svn-commit-file [svn-commit.tmp] +cruft-general-diff (source): debian-adds-svk-commit-file [svk-commit444.tmp] +cruft-general-diff (source): debian-adds-quilt-control-dir [.pc/] +cruft-general-diff (source): debian-adds-patch-failure-file [foo.rej] +cruft-general-diff (source): debian-adds-hg-tags-file [.hgtags] +cruft-general-diff (source): debian-adds-hg-control-dir [.hg/] +cruft-general-diff (source): debian-adds-git-control-dir [.git/] +cruft-general-diff (source): debian-adds-editor-backup-file [foo~] +cruft-general-diff (source): debian-adds-cvs-control-dir [CVS/] +cruft-general-diff (source): debian-adds-cvs-conflict-copy [.#foo.1.1] +cruft-general-diff (source): debian-adds-bzr-control-dir [.bzr/] +cruft-general-diff (source): debian-adds-bts-control-dir [.be/] +cruft-general-diff (source): debian-adds-arch-inventory-file [.arch-inventory] +cruft-general-diff (source): debian-adds-arch-control-dir [{arch}/] diff --git a/t/recipes/checks/files/artifact/cruft-general-native/build-spec/debian/rules b/t/recipes/checks/files/artifact/cruft-general-native/build-spec/debian/rules new file mode 100755 index 0000000..413418b --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-native/build-spec/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/t/recipes/checks/files/artifact/cruft-general-native/build-spec/debian/substvars b/t/recipes/checks/files/artifact/cruft-general-native/build-spec/debian/substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-native/build-spec/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/t/recipes/checks/files/artifact/cruft-general-native/build-spec/fill-values b/t/recipes/checks/files/artifact/cruft-general-native/build-spec/fill-values new file mode 100644 index 0000000..8460259 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-native/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: cruft-general-native +Description: Check for cruft in a native package diff --git a/t/recipes/checks/files/artifact/cruft-general-native/build-spec/pre-build b/t/recipes/checks/files/artifact/cruft-general-native/build-spec/pre-build new file mode 100755 index 0000000..c594074 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-native/build-spec/pre-build @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Create all the various junk that shouldn't exist in the diff so that we can +# trigger all the tags. + +set -e +dir="$1" + +mkdir "${dir}/CVS" +echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries" +mkdir "${dir}/.svn" +echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format" +mkdir "${dir}/.bzr" +echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo" +mkdir "${dir}/{arch}" +echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo" +mkdir "${dir}/.git" +echo 'diff-contains-git-control-dir' > "${dir}/.git/foo" +mkdir "${dir}/.hg" +echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo" +mkdir "${dir}/.be" +echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo" + +echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt" +echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp" +echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp" +echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory" +echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags" +echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1" +echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352" +echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej" +echo 'diff-contains-editor-backup-file' > "${dir}/foo~" diff --git a/t/recipes/checks/files/artifact/cruft-general-native/eval/desc b/t/recipes/checks/files/artifact/cruft-general-native/eval/desc new file mode 100644 index 0000000..08a8e32 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-native/eval/desc @@ -0,0 +1,2 @@ +Testname: cruft-general-native +Check: files/artifact diff --git a/t/recipes/checks/files/artifact/cruft-general-native/eval/hints b/t/recipes/checks/files/artifact/cruft-general-native/eval/hints new file mode 100644 index 0000000..46e6e4e --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-native/eval/hints @@ -0,0 +1,15 @@ +cruft-general-native (source): source-contains-svn-control-dir [.svn/] +cruft-general-native (source): source-contains-svn-conflict-file [foo.r1352] +cruft-general-native (source): source-contains-svn-commit-file [svn-commit.tmp] +cruft-general-native (source): source-contains-svk-commit-file [svk-commit444.tmp] +cruft-general-native (source): source-contains-patch-failure-file [foo.rej] +cruft-general-native (source): source-contains-hg-tags-file [.hgtags] +cruft-general-native (source): source-contains-hg-control-dir [.hg/] +cruft-general-native (source): source-contains-git-control-dir [.git/] +cruft-general-native (source): source-contains-editor-backup-file [foo~] +cruft-general-native (source): source-contains-cvs-control-dir [CVS/] +cruft-general-native (source): source-contains-cvs-conflict-copy [.#foo.1.1] +cruft-general-native (source): source-contains-bzr-control-dir [.bzr/] +cruft-general-native (source): source-contains-bts-control-dir [.be/] +cruft-general-native (source): source-contains-arch-inventory-file [.arch-inventory] +cruft-general-native (source): source-contains-arch-control-dir [{arch}/] diff --git a/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/debian/README.source b/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/debian/README.source new file mode 100644 index 0000000..0bbaa60 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/debian/README.source @@ -0,0 +1 @@ +Some information about the patch system diff --git a/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/debian/rules b/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/debian/rules new file mode 100755 index 0000000..413418b --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/debian/somepackage.substvars b/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/debian/somepackage.substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/debian/somepackage.substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/debian/substvars b/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/debian/substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/fill-values b/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/fill-values new file mode 100644 index 0000000..01bda9c --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: cruft-general-quilt +Skeleton: upload-non-native +Source-Format: 3.0 (quilt) +Description: Check for cruft added in a 3.0 (quilt) package diff --git a/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/pre-build b/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/pre-build new file mode 100755 index 0000000..53e0ddd --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-quilt/build-spec/pre-build @@ -0,0 +1,34 @@ +#!/bin/sh +# +# Create all the various junk that shouldn't exist in the diff so that we can +# trigger all the tags. + +set -e +dir="$1/debian" + +mkdir "${dir}/CVS" +echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries" +mkdir "${dir}/.svn" +echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format" +mkdir "${dir}/.bzr" +echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo" +mkdir "${dir}/{arch}" +echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo" +mkdir "${dir}/.git" +echo 'diff-contains-git-control-dir' > "${dir}/.git/foo" +mkdir "${dir}/.hg" +echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo" +mkdir "${dir}/.be" +echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo" +mkdir "${dir}/.pc" +echo 'diff-contains-quilt-control-dir' > "${dir}/.pc/foo" + +echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt" +echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp" +echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp" +echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory" +echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags" +echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1" +echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352" +echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej" +echo 'diff-contains-editor-backup-file' > "${dir}/foo~" diff --git a/t/recipes/checks/files/artifact/cruft-general-quilt/eval/desc b/t/recipes/checks/files/artifact/cruft-general-quilt/eval/desc new file mode 100644 index 0000000..8148862 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-quilt/eval/desc @@ -0,0 +1,4 @@ +Testname: cruft-general-quilt +Check: files/artifact +See-Also: + Bug#598251 diff --git a/t/recipes/checks/files/artifact/cruft-general-quilt/eval/hints b/t/recipes/checks/files/artifact/cruft-general-quilt/eval/hints new file mode 100644 index 0000000..f6d19f8 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-quilt/eval/hints @@ -0,0 +1,16 @@ +cruft-general-quilt (source): debian-adds-svn-control-dir [debian/.svn/] +cruft-general-quilt (source): debian-adds-svn-conflict-file [debian/foo.r1352] +cruft-general-quilt (source): debian-adds-svn-commit-file [debian/svn-commit.tmp] +cruft-general-quilt (source): debian-adds-svk-commit-file [debian/svk-commit444.tmp] +cruft-general-quilt (source): debian-adds-quilt-control-dir [debian/.pc/] +cruft-general-quilt (source): debian-adds-patch-failure-file [debian/foo.rej] +cruft-general-quilt (source): debian-adds-hg-tags-file [debian/.hgtags] +cruft-general-quilt (source): debian-adds-hg-control-dir [debian/.hg/] +cruft-general-quilt (source): debian-adds-git-control-dir [debian/.git/] +cruft-general-quilt (source): debian-adds-editor-backup-file [debian/foo~] +cruft-general-quilt (source): debian-adds-cvs-control-dir [debian/CVS/] +cruft-general-quilt (source): debian-adds-cvs-conflict-copy [debian/.#foo.1.1] +cruft-general-quilt (source): debian-adds-bzr-control-dir [debian/.bzr/] +cruft-general-quilt (source): debian-adds-bts-control-dir [debian/.be/] +cruft-general-quilt (source): debian-adds-arch-inventory-file [debian/.arch-inventory] +cruft-general-quilt (source): debian-adds-arch-control-dir [debian/{arch}/] diff --git a/t/recipes/checks/files/artifact/cruft-general-test-suite/build-spec/fill-values b/t/recipes/checks/files/artifact/cruft-general-test-suite/build-spec/fill-values new file mode 100644 index 0000000..b153334 --- /dev/null +++ b/t/recipes/checks/files/artifact/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/files/artifact/cruft-general-test-suite/build-spec/orig/hello.c b/t/recipes/checks/files/artifact/cruft-general-test-suite/build-spec/orig/hello.c new file mode 100644 index 0000000..1b47b80 --- /dev/null +++ b/t/recipes/checks/files/artifact/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/files/artifact/cruft-general-test-suite/build-spec/pre-upstream b/t/recipes/checks/files/artifact/cruft-general-test-suite/build-spec/pre-upstream new file mode 100755 index 0000000..8665c92 --- /dev/null +++ b/t/recipes/checks/files/artifact/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/files/artifact/cruft-general-test-suite/eval/desc b/t/recipes/checks/files/artifact/cruft-general-test-suite/eval/desc new file mode 100644 index 0000000..05cb06f --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-test-suite/eval/desc @@ -0,0 +1,16 @@ +Testname: cruft-general-test-suite +Check: files/artifact +Test-Against: + source-contains-arch-control-dir + source-contains-arch-inventory-file + source-contains-bts-control-dir + source-contains-bzr-control-dir + source-contains-cvs-conflict-copy + source-contains-cvs-control-dir + source-contains-git-control-dir + source-contains-hg-control-dir + source-contains-hg-tags-file + source-contains-svk-commit-file + source-contains-svn-commit-file + source-contains-svn-conflict-file + source-contains-svn-control-dir diff --git a/t/recipes/checks/files/artifact/cruft-general-test-suite/eval/hints b/t/recipes/checks/files/artifact/cruft-general-test-suite/eval/hints new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-test-suite/eval/hints @@ -0,0 +1 @@ + diff --git a/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/debian/patches/wig-pen b/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/debian/patches/wig-pen new file mode 100644 index 0000000..a452b53 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/debian/patches/wig-pen @@ -0,0 +1,5 @@ +--- upstream/README ++++ debian/README +@@ -1 +1 @@ +-README ++README for wig&pen diff --git a/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/debian/rules b/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/debian/rules new file mode 100755 index 0000000..413418b --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_prep: + dh_prep -X~ -Xrej + +clean: + @echo 'Do nothing' diff --git a/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/debian/substvars b/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/debian/substvars new file mode 100644 index 0000000..abd3ebe --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/debian/substvars @@ -0,0 +1 @@ +misc:Depends= diff --git a/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/fill-values b/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/fill-values new file mode 100644 index 0000000..edb39d9 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/fill-values @@ -0,0 +1,4 @@ +Testname: cruft-general-wig-pen +Skeleton: upload-non-native +Source-Format: 2.0 +Description: Check for cruft added in a 2.0 package diff --git a/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/orig/README b/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/orig/README new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/orig/README @@ -0,0 +1 @@ +README diff --git a/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/pre-build b/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/pre-build new file mode 100755 index 0000000..78f359c --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-wig-pen/build-spec/pre-build @@ -0,0 +1,32 @@ +#!/bin/sh +# +# Create all the various junk that shouldn't exist in the diff so that we can +# trigger all the tags. + +set -e +dir="$1/debian" + +mkdir "${dir}/CVS" +echo 'diff-contains-cvs-control-dir' > "${dir}/CVS/Entries" +mkdir "${dir}/.svn" +echo 'diff-contains-svn-control-dir' > "${dir}/.svn/format" +mkdir "${dir}/.bzr" +echo 'diff-contains-bzr-control-dir' > "${dir}/.bzr/foo" +mkdir "${dir}/{arch}" +echo 'diff-contains-arch-control-dir' > "${dir}/{arch}/foo" +mkdir "${dir}/.git" +echo 'diff-contains-git-control-dir' > "${dir}/.git/foo" +mkdir "${dir}/.hg" +echo 'diff-contains-hg-control-dir' > "${dir}/.hg/foo" +mkdir "${dir}/.be" +echo 'diff-contains-bts-control-dir' > "${dir}/.be/foo" + +echo 'diff-contains-cmake-cache-file' > "${dir}/CMakeCache.txt" +echo 'diff-contains-svn-commit-file' > "${dir}/svn-commit.tmp" +echo 'diff-contains-svk-commit-file' > "${dir}/svk-commit444.tmp" +echo 'diff-contains-arch-inventory-file' > "${dir}/.arch-inventory" +echo 'diff-contains-hg-tags-file' > "${dir}/.hgtags" +echo 'diff-contains-cvs-conflict-copy' > "${dir}/.#foo.1.1" +echo 'diff-contains-svn-conflict-file' > "${dir}/foo.r1352" +echo 'diff-contains-patch-failure-file' > "${dir}/foo.rej" +echo 'diff-contains-editor-backup-file' > "${dir}/foo~" diff --git a/t/recipes/checks/files/artifact/cruft-general-wig-pen/eval/desc b/t/recipes/checks/files/artifact/cruft-general-wig-pen/eval/desc new file mode 100644 index 0000000..404ac05 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-wig-pen/eval/desc @@ -0,0 +1,2 @@ +Testname: cruft-general-wig-pen +Check: files/artifact diff --git a/t/recipes/checks/files/artifact/cruft-general-wig-pen/eval/hints b/t/recipes/checks/files/artifact/cruft-general-wig-pen/eval/hints new file mode 100644 index 0000000..1b8bb32 --- /dev/null +++ b/t/recipes/checks/files/artifact/cruft-general-wig-pen/eval/hints @@ -0,0 +1,15 @@ +cruft-general-wig-pen (source): debian-adds-svn-control-dir [debian/.svn/] +cruft-general-wig-pen (source): debian-adds-svn-conflict-file [debian/foo.r1352] +cruft-general-wig-pen (source): debian-adds-svn-commit-file [debian/svn-commit.tmp] +cruft-general-wig-pen (source): debian-adds-svk-commit-file [debian/svk-commit444.tmp] +cruft-general-wig-pen (source): debian-adds-patch-failure-file [debian/foo.rej] +cruft-general-wig-pen (source): debian-adds-hg-tags-file [debian/.hgtags] +cruft-general-wig-pen (source): debian-adds-hg-control-dir [debian/.hg/] +cruft-general-wig-pen (source): debian-adds-git-control-dir [debian/.git/] +cruft-general-wig-pen (source): debian-adds-editor-backup-file [debian/foo~] +cruft-general-wig-pen (source): debian-adds-cvs-control-dir [debian/CVS/] +cruft-general-wig-pen (source): debian-adds-cvs-conflict-copy [debian/.#foo.1.1] +cruft-general-wig-pen (source): debian-adds-bzr-control-dir [debian/.bzr/] +cruft-general-wig-pen (source): debian-adds-bts-control-dir [debian/.be/] +cruft-general-wig-pen (source): debian-adds-arch-inventory-file [debian/.arch-inventory] +cruft-general-wig-pen (source): debian-adds-arch-control-dir [debian/{arch}/] |