summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/files/vcs/files-package-contains-foo
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:42:30 +0000
commit75808db17caf8b960b351e3408e74142f4c85aac (patch)
tree7989e9c09a4240248bf4658a22208a0a52d991c4 /t/recipes/checks/files/vcs/files-package-contains-foo
parentInitial commit. (diff)
downloadlintian-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/files/vcs/files-package-contains-foo')
-rw-r--r--t/recipes/checks/files/vcs/files-package-contains-foo/build-spec/debian/rules73
-rw-r--r--t/recipes/checks/files/vcs/files-package-contains-foo/build-spec/fill-values3
-rw-r--r--t/recipes/checks/files/vcs/files-package-contains-foo/eval/desc2
-rw-r--r--t/recipes/checks/files/vcs/files-package-contains-foo/eval/hints9
4 files changed, 87 insertions, 0 deletions
diff --git a/t/recipes/checks/files/vcs/files-package-contains-foo/build-spec/debian/rules b/t/recipes/checks/files/vcs/files-package-contains-foo/build-spec/debian/rules
new file mode 100644
index 0000000..506639f
--- /dev/null
+++ b/t/recipes/checks/files/vcs/files-package-contains-foo/build-spec/debian/rules
@@ -0,0 +1,73 @@
+#!/usr/bin/make -f
+
+PKG :=$(shell dh_listpackages)
+SHARE:= debian/$(PKG)/usr/share
+DATA := $(SHARE)/$(PKG)
+DOC := $(SHARE)/doc/$(PKG)
+
+%:
+ dh $@
+
+override_dh_install:
+ dh_install
+ mkdir -p $(DOC) $(DATA)
+
+ # Vcs stuff
+ mkdir $(DATA)/.svn $(DATA)/.git
+ touch $(DATA)/.svn/file
+ touch $(DATA)/.git/file
+ touch $(DATA)/.gitignore
+ touch $(DATA)/.git_ignore
+ mkdir $(DATA)/sub-git1/
+ echo '*.old' | gzip -9n > $(DATA)/sub-git1/.gitignore.gz
+ touch $(DATA)/sub-git1/.gitattributes
+ touch $(DATA)/sub-git1/.gitmodules
+
+ touch $(DATA)/svn-commit-yeehaa.tmp
+ touch $(DATA)/svk-commit-yeehaa.tmp
+
+ # bts control dir
+ mkdir $(DATA)/.be
+ touch $(DATA)/.be/file
+
+ # macos stuff
+ touch $(DATA)/.DS_Store
+ touch $(DATA)/._stuff
+
+ # windows
+ touch $(DATA)/Thumbs.db
+
+ # Foreign READMEs
+ echo "Hallo World Mac" > $(DOC)/README.mac
+ echo "Hallo World Win" > $(DOC)/README.windows
+
+ # Linda override
+ mkdir -p $(SHARE)/linda/overrides
+ touch $(SHARE)/linda/overrides/$(PKG)
+
+ # CMake private files
+ mkdir -p $(SHARE)/cmake-3.1/Modules
+ touch $(SHARE)/cmake-3.1/FindFoo.cmake
+ touch $(SHARE)/cmake-3.1/Modules/FindVar.cmake
+
+ # Ignored Cargo sources
+ mkdir -p $(SHARE)/cargo/registry/crate-1.0.0/templates
+ touch $(SHARE)/cargo/registry/crate-1.0.0/.gitignore
+ touch $(SHARE)/cargo/registry/crate-1.0.0/LICENSE
+ touch $(SHARE)/cargo/registry/crate-1.0.0/templates/readme.tmpl
+ mkdir -p $(SHARE)/cargo/registry/crate-1.0.0/foo_templates
+ touch $(SHARE)/cargo/registry/crate-1.0.0/foo_templates/readme.tmpl
+ mkdir -p $(SHARE)/cargo/registry/crate-1.0.0/my-templates.d
+ touch $(SHARE)/cargo/registry/crate-1.0.0/my-templates.d/readme.tmpl
+ echo '#!/bin/sh' > $(SHARE)/cargo/registry/crate-1.0.0/test.sh
+ echo '#!/usr/bin/python' > $(SHARE)/cargo/registry/crate-1.0.0/test.py
+ chmod a+x $(SHARE)/cargo/registry/crate-1.0.0/test.py
+
+ # Documentation outside /usr/share/doc
+ touch $(DATA)/readme.txt
+ touch $(DATA)/readme1.1.txt
+ touch $(DATA)/readme1.1.txt
+ touch $(DATA)/readme_1.1.txt
+ touch $(DATA)/readme-1.1.txt
+ touch $(DATA)/readmefirst.txt
+ touch $(DATA)/readMesh_off.m # False-positive from #914500
diff --git a/t/recipes/checks/files/vcs/files-package-contains-foo/build-spec/fill-values b/t/recipes/checks/files/vcs/files-package-contains-foo/build-spec/fill-values
new file mode 100644
index 0000000..b55ed53
--- /dev/null
+++ b/t/recipes/checks/files/vcs/files-package-contains-foo/build-spec/fill-values
@@ -0,0 +1,3 @@
+Skeleton: upload-native
+Testname: files-package-contains-foo
+Description: Test tags about cruft in binary packages
diff --git a/t/recipes/checks/files/vcs/files-package-contains-foo/eval/desc b/t/recipes/checks/files/vcs/files-package-contains-foo/eval/desc
new file mode 100644
index 0000000..383fe04
--- /dev/null
+++ b/t/recipes/checks/files/vcs/files-package-contains-foo/eval/desc
@@ -0,0 +1,2 @@
+Testname: files-package-contains-foo
+Check: files/vcs
diff --git a/t/recipes/checks/files/vcs/files-package-contains-foo/eval/hints b/t/recipes/checks/files/vcs/files-package-contains-foo/eval/hints
new file mode 100644
index 0000000..fb2da08
--- /dev/null
+++ b/t/recipes/checks/files/vcs/files-package-contains-foo/eval/hints
@@ -0,0 +1,9 @@
+files-package-contains-foo (binary): svn-commit-file-in-package [usr/share/files-package-contains-foo/svn-commit-yeehaa.tmp]
+files-package-contains-foo (binary): svk-commit-file-in-package [usr/share/files-package-contains-foo/svk-commit-yeehaa.tmp]
+files-package-contains-foo (binary): package-contains-vcs-control-file [usr/share/files-package-contains-foo/sub-git1/.gitmodules]
+files-package-contains-foo (binary): package-contains-vcs-control-file [usr/share/files-package-contains-foo/sub-git1/.gitignore.gz]
+files-package-contains-foo (binary): package-contains-vcs-control-file [usr/share/files-package-contains-foo/sub-git1/.gitattributes]
+files-package-contains-foo (binary): package-contains-vcs-control-file [usr/share/files-package-contains-foo/.gitignore]
+files-package-contains-foo (binary): package-contains-vcs-control-file [usr/share/files-package-contains-foo/.git_ignore]
+files-package-contains-foo (binary): package-contains-vcs-control-dir [usr/share/files-package-contains-foo/.svn/]
+files-package-contains-foo (binary): package-contains-vcs-control-dir [usr/share/files-package-contains-foo/.git/]