diff options
Diffstat (limited to '')
7 files changed, 56 insertions, 0 deletions
diff --git a/t/recipes/checks/languages/python/files-python-modules/build-spec/debian/control.in b/t/recipes/checks/languages/python/files-python-modules/build-spec/debian/control.in new file mode 100644 index 0000000..a4f2d34 --- /dev/null +++ b/t/recipes/checks/languages/python/files-python-modules/build-spec/debian/control.in @@ -0,0 +1,16 @@ +Source: [% $source %] +Priority: optional +Section: python +Maintainer: [% $author %] +Standards-Version: [% $standards_version %] +Build-Depends: [% $build_depends %] +Rules-Requires-Root: no + +Package: python-foo +Architecture: [% $package_architecture %] +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. It may + be an empty package. diff --git a/t/recipes/checks/languages/python/files-python-modules/build-spec/debian/install b/t/recipes/checks/languages/python/files-python-modules/build-spec/debian/install new file mode 100644 index 0000000..165f0c2 --- /dev/null +++ b/t/recipes/checks/languages/python/files-python-modules/build-spec/debian/install @@ -0,0 +1,13 @@ +# GOOD +python-foo /usr/lib/python2.5/site-packages/ +python-foo /usr/lib/python2.6/dist-packages/ +python-foo /usr/lib/python2.7/dist-packages/ +python-foo /usr/lib/python3/dist-packages/ + +# BAD +python-foo usr/lib/python2.5/dist-packages/ +python-foo usr/lib/python2.6/site-packages/ +python-foo usr/lib/python2.7/site-packages/ +python-foo usr/lib/python3.2/dist-packages/ +python-foo usr/lib/python3.2/site-packages/ + diff --git a/t/recipes/checks/languages/python/files-python-modules/build-spec/debian/rules b/t/recipes/checks/languages/python/files-python-modules/build-spec/debian/rules new file mode 100644 index 0000000..abde6ef --- /dev/null +++ b/t/recipes/checks/languages/python/files-python-modules/build-spec/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +%: + dh $@ + diff --git a/t/recipes/checks/languages/python/files-python-modules/build-spec/fill-values b/t/recipes/checks/languages/python/files-python-modules/build-spec/fill-values new file mode 100644 index 0000000..a4afe04 --- /dev/null +++ b/t/recipes/checks/languages/python/files-python-modules/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: files-python-modules +Description: Test tags for misplaced Python modules diff --git a/t/recipes/checks/languages/python/files-python-modules/build-spec/orig/python-foo b/t/recipes/checks/languages/python/files-python-modules/build-spec/orig/python-foo new file mode 100644 index 0000000..336f590 --- /dev/null +++ b/t/recipes/checks/languages/python/files-python-modules/build-spec/orig/python-foo @@ -0,0 +1 @@ +Hallo World diff --git a/t/recipes/checks/languages/python/files-python-modules/eval/desc b/t/recipes/checks/languages/python/files-python-modules/eval/desc new file mode 100644 index 0000000..25b7e1b --- /dev/null +++ b/t/recipes/checks/languages/python/files-python-modules/eval/desc @@ -0,0 +1,2 @@ +Testname: files-python-modules +Check: languages/python diff --git a/t/recipes/checks/languages/python/files-python-modules/eval/hints b/t/recipes/checks/languages/python/files-python-modules/eval/hints new file mode 100644 index 0000000..cfc6801 --- /dev/null +++ b/t/recipes/checks/languages/python/files-python-modules/eval/hints @@ -0,0 +1,16 @@ +files-python-modules (source): python-foo-but-no-python3-foo python-foo +python-foo (binary): unknown-file-in-python-module-directory [usr/lib/python3/dist-packages/python-foo] +python-foo (binary): unknown-file-in-python-module-directory [usr/lib/python3.2/site-packages/python-foo] +python-foo (binary): unknown-file-in-python-module-directory [usr/lib/python3.2/dist-packages/python-foo] +python-foo (binary): unknown-file-in-python-module-directory [usr/lib/python2.7/site-packages/python-foo] +python-foo (binary): unknown-file-in-python-module-directory [usr/lib/python2.7/dist-packages/python-foo] +python-foo (binary): unknown-file-in-python-module-directory [usr/lib/python2.6/site-packages/python-foo] +python-foo (binary): unknown-file-in-python-module-directory [usr/lib/python2.6/dist-packages/python-foo] +python-foo (binary): unknown-file-in-python-module-directory [usr/lib/python2.5/site-packages/python-foo] +python-foo (binary): unknown-file-in-python-module-directory [usr/lib/python2.5/dist-packages/python-foo] +python-foo (binary): python-package-missing-depends-on-python +python-foo (binary): python-module-in-wrong-location usr/lib/python3.2/site-packages/python-foo -> usr/lib/python3/dist-packages/python-foo +python-foo (binary): python-module-in-wrong-location usr/lib/python3.2/dist-packages/python-foo -> usr/lib/python3/dist-packages/python-foo +python-foo (binary): python-module-in-wrong-location usr/lib/python2.7/site-packages/python-foo -> usr/lib/python2.7/dist-packages/python-foo +python-foo (binary): python-module-in-wrong-location usr/lib/python2.6/site-packages/python-foo -> usr/lib/python2.6/dist-packages/python-foo +python-foo (binary): python-module-in-wrong-location usr/lib/python2.5/dist-packages/python-foo -> usr/lib/python2.5/site-packages/python-foo |