diff options
Diffstat (limited to 't/recipes/checks/images')
62 files changed, 327 insertions, 0 deletions
diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/debian/install b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/debian/install new file mode 100644 index 0000000..236c9ab --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/debian/install @@ -0,0 +1 @@ +images/* usr/share/images diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/debian/rules b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/debian/rules new file mode 100755 index 0000000..45d7c5a --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +tmp := $(CURDIR)/debian/$(shell dh_listpackages) + +%: + dh $@ + +override_dh_auto_install: + dh_install + find "$(tmp)/usr/share/images" -type f -name '*.gz' -exec gunzip {} \; diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/fill-values b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/fill-values new file mode 100644 index 0000000..16bdc84 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: conflicting-image-names +Description: Image files have names usually associated with other formats diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/LICENSE b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/LICENSE new file mode 100644 index 0000000..0061fad --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/LICENSE @@ -0,0 +1,8 @@ +On December 6, 2019, I took the image located at + + /usr/share/icons/Adwaita/scalable/actions/pan-up-symbolic.svg + +and converted it into various other formats. My modifications +are herewith in the public domain. + +Felix Lechner diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_gif.jpeg b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_gif.jpeg Binary files differnew file mode 100644 index 0000000..18ffcb9 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_gif.jpeg diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_jpg.png b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_jpg.png Binary files differnew file mode 100644 index 0000000..bcc3bb2 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_jpg.png diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_pbm.tif b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_pbm.tif Binary files differnew file mode 100644 index 0000000..0093c5c --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_pbm.tif diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_png.SVG b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_png.SVG Binary files differnew file mode 100644 index 0000000..57472a3 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_png.SVG diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_svg.xpm b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_svg.xpm new file mode 100644 index 0000000..f5700f9 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_svg.xpm @@ -0,0 +1,3 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"> + <path d="M13 10L8 5l-5 5z" fill="#474747"/> +</svg> diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_tiff.gif b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_tiff.gif Binary files differnew file mode 100644 index 0000000..054ffd1 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_tiff.gif diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_xpm.ppm.gz b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_xpm.ppm.gz Binary files differnew file mode 100644 index 0000000..c33bcd1 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/is_xpm.ppm.gz diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg new file mode 100644 index 0000000..f5700f9 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg @@ -0,0 +1,3 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"> + <path d="M13 10L8 5l-5 5z" fill="#474747"/> +</svg> diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.gif b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.gif Binary files differnew file mode 100644 index 0000000..18ffcb9 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.gif diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.jpg b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.jpg Binary files differnew file mode 100644 index 0000000..bcc3bb2 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.jpg diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.pbm b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.pbm Binary files differnew file mode 100644 index 0000000..0093c5c --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.pbm diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.png b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.png Binary files differnew file mode 100644 index 0000000..57472a3 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.png diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.tiff b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.tiff Binary files differnew file mode 100644 index 0000000..054ffd1 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.tiff diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.xpm.gz b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.xpm.gz Binary files differnew file mode 100644 index 0000000..c33bcd1 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/build-spec/orig/images/pan-up-symbolic.svg.xpm.gz diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/eval/desc b/t/recipes/checks/images/filenames/conflicting-image-names/eval/desc new file mode 100644 index 0000000..5b4f76c --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/eval/desc @@ -0,0 +1,2 @@ +Testname: conflicting-image-names +Check: images/filenames diff --git a/t/recipes/checks/images/filenames/conflicting-image-names/eval/hints b/t/recipes/checks/images/filenames/conflicting-image-names/eval/hints new file mode 100644 index 0000000..73eda87 --- /dev/null +++ b/t/recipes/checks/images/filenames/conflicting-image-names/eval/hints @@ -0,0 +1,7 @@ +conflicting-image-names (binary): image-file-has-conflicting-name (is XPM) [usr/share/images/is_xpm.ppm] +conflicting-image-names (binary): image-file-has-conflicting-name (is TIFF) [usr/share/images/is_tiff.gif] +conflicting-image-names (binary): image-file-has-conflicting-name (is SVG) [usr/share/images/is_svg.xpm] +conflicting-image-names (binary): image-file-has-conflicting-name (is PNG) [usr/share/images/is_png.SVG] +conflicting-image-names (binary): image-file-has-conflicting-name (is Netpbm) [usr/share/images/is_pbm.tif] +conflicting-image-names (binary): image-file-has-conflicting-name (is JPEG) [usr/share/images/is_jpg.png] +conflicting-image-names (binary): image-file-has-conflicting-name (is GIF) [usr/share/images/is_gif.jpeg] diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/debian/install b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/debian/install new file mode 100644 index 0000000..236c9ab --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/debian/install @@ -0,0 +1 @@ +images/* usr/share/images diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/debian/rules b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/debian/rules new file mode 100755 index 0000000..45d7c5a --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +tmp := $(CURDIR)/debian/$(shell dh_listpackages) + +%: + dh $@ + +override_dh_auto_install: + dh_install + find "$(tmp)/usr/share/images" -type f -name '*.gz' -exec gunzip {} \; diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/fill-values b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/fill-values new file mode 100644 index 0000000..7b1b344 --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: unrelated-image-names +Description: Test with image files installed with uncommon names diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/LICENSE b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/LICENSE new file mode 100644 index 0000000..0061fad --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/LICENSE @@ -0,0 +1,8 @@ +On December 6, 2019, I took the image located at + + /usr/share/icons/Adwaita/scalable/actions/pan-up-symbolic.svg + +and converted it into various other formats. My modifications +are herewith in the public domain. + +Felix Lechner diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_gif b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_gif Binary files differnew file mode 100644 index 0000000..18ffcb9 --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_gif diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_jpg b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_jpg Binary files differnew file mode 100644 index 0000000..bcc3bb2 --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_jpg diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_pbm b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_pbm Binary files differnew file mode 100644 index 0000000..0093c5c --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_pbm diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_png b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_png Binary files differnew file mode 100644 index 0000000..57472a3 --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_png diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_svg b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_svg new file mode 100644 index 0000000..f5700f9 --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_svg @@ -0,0 +1,3 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"> + <path d="M13 10L8 5l-5 5z" fill="#474747"/> +</svg> diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_tiff b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_tiff Binary files differnew file mode 100644 index 0000000..054ffd1 --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_tiff diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_xpm.gz b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_xpm.gz Binary files differnew file mode 100644 index 0000000..c33bcd1 --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/is_xpm.gz diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg new file mode 100644 index 0000000..f5700f9 --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg @@ -0,0 +1,3 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"> + <path d="M13 10L8 5l-5 5z" fill="#474747"/> +</svg> diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.gif b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.gif Binary files differnew file mode 100644 index 0000000..18ffcb9 --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.gif diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.jpg b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.jpg Binary files differnew file mode 100644 index 0000000..bcc3bb2 --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.jpg diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.pbm b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.pbm Binary files differnew file mode 100644 index 0000000..0093c5c --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.pbm diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.png b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.png Binary files differnew file mode 100644 index 0000000..57472a3 --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.png diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.tiff b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.tiff Binary files differnew file mode 100644 index 0000000..054ffd1 --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.tiff diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.xpm.gz b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.xpm.gz Binary files differnew file mode 100644 index 0000000..c33bcd1 --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/build-spec/orig/images/pan-up-symbolic.svg.xpm.gz diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/eval/desc b/t/recipes/checks/images/filenames/unrelated-image-names/eval/desc new file mode 100644 index 0000000..9842e0a --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/eval/desc @@ -0,0 +1,2 @@ +Testname: unrelated-image-names +Check: images/filenames diff --git a/t/recipes/checks/images/filenames/unrelated-image-names/eval/hints b/t/recipes/checks/images/filenames/unrelated-image-names/eval/hints new file mode 100644 index 0000000..73c3a8d --- /dev/null +++ b/t/recipes/checks/images/filenames/unrelated-image-names/eval/hints @@ -0,0 +1,7 @@ +unrelated-image-names (binary): image-file-has-unexpected-name (is XPM) [usr/share/images/is_xpm] +unrelated-image-names (binary): image-file-has-unexpected-name (is TIFF) [usr/share/images/is_tiff] +unrelated-image-names (binary): image-file-has-unexpected-name (is SVG) [usr/share/images/is_svg] +unrelated-image-names (binary): image-file-has-unexpected-name (is PNG) [usr/share/images/is_png] +unrelated-image-names (binary): image-file-has-unexpected-name (is Netpbm) [usr/share/images/is_pbm] +unrelated-image-names (binary): image-file-has-unexpected-name (is JPEG) [usr/share/images/is_jpg] +unrelated-image-names (binary): image-file-has-unexpected-name (is GIF) [usr/share/images/is_gif] diff --git a/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/clean b/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/clean new file mode 100644 index 0000000..be4ae72 --- /dev/null +++ b/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/clean @@ -0,0 +1,5 @@ +bar.1* +Bar.pm +bar.png +perllocal.pod +preferences diff --git a/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/dirs b/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/dirs new file mode 100644 index 0000000..e8759c9 --- /dev/null +++ b/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/dirs @@ -0,0 +1,15 @@ +etc/apt/preferences.d +etc/apt +etc/init +bin/foo +mnt/foo +tmp/foo +usr/bin/foo +usr/foo +usr/lib/debug +usr/local/foo +usr/lib/site-python/foo +usr/share/doc/files-foo-in-bar/examples/examples +var/foo +var/lock/foo +var/run/foo diff --git a/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/install b/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/install new file mode 100644 index 0000000..ba46865 --- /dev/null +++ b/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/install @@ -0,0 +1,61 @@ +bar bin/foo +bar emul +bar etc/apt/preferences.d +bar etc/apt/sources.list.d +bar etc/apt/trusted.gpg.d +bar etc/gconf/schemas/ +bar etc/init +bar etc/rc.boot +bar etc/rc.d +bar etc/udev/rules.d +bar lib32 +bar lib64 +bar libx32 +bar mnt/foo +bar run/foo +bar srv/foo +bar tmp/foo +bar usr/bin/foo +bar usr/foo +bar usr/lib/debug/ +bar usr/lib32 +bar usr/lib64 +bar usr/libexec +bar usr/libx32 +bar usr/lib/perl/ +bar usr/lib/python2.7/ +bar usr/lib/sgml +bar usr/lib/site-python/foo +bar usr/local/foo +bar usr/share +bar usr/share/doc +bar usr/share/doc/files-foo-in-bar/.xvpics/ +bar usr/share/doc/files-foo-in-bar/.thumbnails/ +bar usr/share/doc/files-foo-in-bar/examples/examples +bar usr/share/mime/foo/ +bar usr/share/mime/packages/ +bar usr/share/perl/ +bar usr/share/vim/vimcurrent/ +bar usr/share/vim/vim73/ +bar usr/X11R6/bin +bar usr/X11R6/lib/X11/fonts/ +bar var/foo +bar var/lock/foo +bar var/run/foo +bar var/www/foo +bar home/johndoe +bar root +bar etc/opt +bar var/cache/pbuilder/build +bar var/lib/sbuild +bar var/lib/buildd +bar build/dir/foo +bar tmp/buildd/dir/foo +bar etc/dhcp3 + +Bar.pm usr/lib/perl5/Foo +bar.png usr/lib/files-foo-in-bar + +perllocal.pod usr/lib/perl-foo +.packlist usr/lib/perl5 +preferences etc/apt diff --git a/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/manpages b/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/manpages new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/manpages diff --git a/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/rules b/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/rules new file mode 100755 index 0000000..69a61df --- /dev/null +++ b/t/recipes/checks/images/files-foo-in-bar/build-spec/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_build: + pod2man --section 1 bar.pod > bar.1 + gzip -n --best bar.1 + cp bar Bar.pm + cp bar bar.png + cp bar perllocal.pod + touch .packlist + touch preferences + +override_dh_auto_install: + dh_install bar.1.gz usr/X11R6/man/man1/ + +# skip +override_dh_usrlocal override_dh_gconf: diff --git a/t/recipes/checks/images/files-foo-in-bar/build-spec/fill-values b/t/recipes/checks/images/files-foo-in-bar/build-spec/fill-values new file mode 100644 index 0000000..17ea927 --- /dev/null +++ b/t/recipes/checks/images/files-foo-in-bar/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: files-foo-in-bar +Description: Test tags about files or dirs in given paths diff --git a/t/recipes/checks/images/files-foo-in-bar/build-spec/orig/bar b/t/recipes/checks/images/files-foo-in-bar/build-spec/orig/bar new file mode 100644 index 0000000..980a0d5 --- /dev/null +++ b/t/recipes/checks/images/files-foo-in-bar/build-spec/orig/bar @@ -0,0 +1 @@ +Hello World! diff --git a/t/recipes/checks/images/files-foo-in-bar/build-spec/orig/bar.pod b/t/recipes/checks/images/files-foo-in-bar/build-spec/orig/bar.pod new file mode 100644 index 0000000..4144a36 --- /dev/null +++ b/t/recipes/checks/images/files-foo-in-bar/build-spec/orig/bar.pod @@ -0,0 +1,18 @@ + +=head1 NAME + +bar - does stuff + +=head1 SYNOPSIS + +bar + +=head1 DESCRIPTION + +Does nothing. + +=head1 AUTHOR + +Niels Thykier <niels@thykier.net> + +=cut diff --git a/t/recipes/checks/images/files-foo-in-bar/eval/desc b/t/recipes/checks/images/files-foo-in-bar/eval/desc new file mode 100644 index 0000000..6ee2f5a --- /dev/null +++ b/t/recipes/checks/images/files-foo-in-bar/eval/desc @@ -0,0 +1,2 @@ +Testname: files-foo-in-bar +Check: images diff --git a/t/recipes/checks/images/files-foo-in-bar/eval/hints b/t/recipes/checks/images/files-foo-in-bar/eval/hints new file mode 100644 index 0000000..81386fa --- /dev/null +++ b/t/recipes/checks/images/files-foo-in-bar/eval/hints @@ -0,0 +1 @@ +files-foo-in-bar (binary): image-file-in-usr-lib [usr/lib/files-foo-in-bar/bar.png] diff --git a/t/recipes/checks/images/files-foo-in-bar/eval/post-test b/t/recipes/checks/images/files-foo-in-bar/eval/post-test new file mode 100644 index 0000000..5af7ea2 --- /dev/null +++ b/t/recipes/checks/images/files-foo-in-bar/eval/post-test @@ -0,0 +1,2 @@ +# Ignore all duplicate-files tags +/[^ ]* \([^)]*\): duplicate-files .*/ d diff --git a/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/clean b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/clean new file mode 100644 index 0000000..be4ae72 --- /dev/null +++ b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/clean @@ -0,0 +1,5 @@ +bar.1* +Bar.pm +bar.png +perllocal.pod +preferences diff --git a/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/dirs b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/dirs new file mode 100644 index 0000000..e8759c9 --- /dev/null +++ b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/dirs @@ -0,0 +1,15 @@ +etc/apt/preferences.d +etc/apt +etc/init +bin/foo +mnt/foo +tmp/foo +usr/bin/foo +usr/foo +usr/lib/debug +usr/local/foo +usr/lib/site-python/foo +usr/share/doc/files-foo-in-bar/examples/examples +var/foo +var/lock/foo +var/run/foo diff --git a/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/install b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/install new file mode 100644 index 0000000..ba46865 --- /dev/null +++ b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/install @@ -0,0 +1,61 @@ +bar bin/foo +bar emul +bar etc/apt/preferences.d +bar etc/apt/sources.list.d +bar etc/apt/trusted.gpg.d +bar etc/gconf/schemas/ +bar etc/init +bar etc/rc.boot +bar etc/rc.d +bar etc/udev/rules.d +bar lib32 +bar lib64 +bar libx32 +bar mnt/foo +bar run/foo +bar srv/foo +bar tmp/foo +bar usr/bin/foo +bar usr/foo +bar usr/lib/debug/ +bar usr/lib32 +bar usr/lib64 +bar usr/libexec +bar usr/libx32 +bar usr/lib/perl/ +bar usr/lib/python2.7/ +bar usr/lib/sgml +bar usr/lib/site-python/foo +bar usr/local/foo +bar usr/share +bar usr/share/doc +bar usr/share/doc/files-foo-in-bar/.xvpics/ +bar usr/share/doc/files-foo-in-bar/.thumbnails/ +bar usr/share/doc/files-foo-in-bar/examples/examples +bar usr/share/mime/foo/ +bar usr/share/mime/packages/ +bar usr/share/perl/ +bar usr/share/vim/vimcurrent/ +bar usr/share/vim/vim73/ +bar usr/X11R6/bin +bar usr/X11R6/lib/X11/fonts/ +bar var/foo +bar var/lock/foo +bar var/run/foo +bar var/www/foo +bar home/johndoe +bar root +bar etc/opt +bar var/cache/pbuilder/build +bar var/lib/sbuild +bar var/lib/buildd +bar build/dir/foo +bar tmp/buildd/dir/foo +bar etc/dhcp3 + +Bar.pm usr/lib/perl5/Foo +bar.png usr/lib/files-foo-in-bar + +perllocal.pod usr/lib/perl-foo +.packlist usr/lib/perl5 +preferences etc/apt diff --git a/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/manpages b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/manpages new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/manpages diff --git a/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/rules b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/rules new file mode 100755 index 0000000..69a61df --- /dev/null +++ b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/debian/rules @@ -0,0 +1,18 @@ +#!/usr/bin/make -f +%: + dh $@ + +override_dh_auto_build: + pod2man --section 1 bar.pod > bar.1 + gzip -n --best bar.1 + cp bar Bar.pm + cp bar bar.png + cp bar perllocal.pod + touch .packlist + touch preferences + +override_dh_auto_install: + dh_install bar.1.gz usr/X11R6/man/man1/ + +# skip +override_dh_usrlocal override_dh_gconf: diff --git a/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/fill-values b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/fill-values new file mode 100644 index 0000000..17ea927 --- /dev/null +++ b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/fill-values @@ -0,0 +1,3 @@ +Skeleton: upload-native +Testname: files-foo-in-bar +Description: Test tags about files or dirs in given paths diff --git a/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/orig/bar b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/orig/bar new file mode 100644 index 0000000..980a0d5 --- /dev/null +++ b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/orig/bar @@ -0,0 +1 @@ +Hello World! diff --git a/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/orig/bar.pod b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/orig/bar.pod new file mode 100644 index 0000000..4144a36 --- /dev/null +++ b/t/recipes/checks/images/thumbnails/files-foo-in-bar/build-spec/orig/bar.pod @@ -0,0 +1,18 @@ + +=head1 NAME + +bar - does stuff + +=head1 SYNOPSIS + +bar + +=head1 DESCRIPTION + +Does nothing. + +=head1 AUTHOR + +Niels Thykier <niels@thykier.net> + +=cut diff --git a/t/recipes/checks/images/thumbnails/files-foo-in-bar/eval/desc b/t/recipes/checks/images/thumbnails/files-foo-in-bar/eval/desc new file mode 100644 index 0000000..9f282f4 --- /dev/null +++ b/t/recipes/checks/images/thumbnails/files-foo-in-bar/eval/desc @@ -0,0 +1,2 @@ +Testname: files-foo-in-bar +Check: images/thumbnails diff --git a/t/recipes/checks/images/thumbnails/files-foo-in-bar/eval/hints b/t/recipes/checks/images/thumbnails/files-foo-in-bar/eval/hints new file mode 100644 index 0000000..98048d4 --- /dev/null +++ b/t/recipes/checks/images/thumbnails/files-foo-in-bar/eval/hints @@ -0,0 +1,2 @@ +files-foo-in-bar (binary): package-contains-xvpics-dir [usr/share/doc/files-foo-in-bar/.xvpics/] +files-foo-in-bar (binary): package-contains-thumbnails-dir [usr/share/doc/files-foo-in-bar/.thumbnails/] diff --git a/t/recipes/checks/images/thumbnails/files-foo-in-bar/eval/post-test b/t/recipes/checks/images/thumbnails/files-foo-in-bar/eval/post-test new file mode 100644 index 0000000..5af7ea2 --- /dev/null +++ b/t/recipes/checks/images/thumbnails/files-foo-in-bar/eval/post-test @@ -0,0 +1,2 @@ +# Ignore all duplicate-files tags +/[^ ]* \([^)]*\): duplicate-files .*/ d |