summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/mimeinfo
diff options
context:
space:
mode:
Diffstat (limited to 't/recipes/checks/mimeinfo')
-rw-r--r--t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/debian/clean5
-rw-r--r--t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/debian/dirs15
-rw-r--r--t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/debian/install61
-rw-r--r--t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/debian/manpages0
-rwxr-xr-xt/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/debian/rules18
-rw-r--r--t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/fill-values3
-rw-r--r--t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/orig/bar1
-rw-r--r--t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/orig/bar.pod18
-rw-r--r--t/recipes/checks/mimeinfo/files-foo-in-bar/eval/desc2
-rw-r--r--t/recipes/checks/mimeinfo/files-foo-in-bar/eval/hints2
-rw-r--r--t/recipes/checks/mimeinfo/files-foo-in-bar/eval/post-test2
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/debian/clean1
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/debian/dirs13
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/debian/examples1
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/debian/install18
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/debian/links1
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/debian/manpages2
-rwxr-xr-xt/recipes/checks/mimeinfo/files-general/build-spec/debian/rules67
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/fill-values4
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/--lzma2
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/dir18
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/file-in-new-top-level-dir2
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/foo.55
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/foo.vcproj1
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian-16x16.pngbin0 -> 355 bytes
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian-22x22.pngbin0 -> 1505 bytes
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian-lib.conf1
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian.conf1
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/mimeinfo.cache2
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/php-foo.ini1
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/sudotest0
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/tnu.15
-rw-r--r--t/recipes/checks/mimeinfo/files-general/build-spec/orig/types0
-rw-r--r--t/recipes/checks/mimeinfo/files-general/eval/desc3
-rw-r--r--t/recipes/checks/mimeinfo/files-general/eval/hints2
35 files changed, 277 insertions, 0 deletions
diff --git a/t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/debian/clean b/t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/debian/clean
new file mode 100644
index 0000000..be4ae72
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/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/mimeinfo/files-foo-in-bar/build-spec/debian/dirs b/t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/debian/dirs
new file mode 100644
index 0000000..e8759c9
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/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/mimeinfo/files-foo-in-bar/build-spec/debian/install b/t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/debian/install
new file mode 100644
index 0000000..ba46865
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/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/mimeinfo/files-foo-in-bar/build-spec/debian/manpages b/t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/debian/manpages
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/debian/manpages
diff --git a/t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/debian/rules b/t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/debian/rules
new file mode 100755
index 0000000..69a61df
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/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/mimeinfo/files-foo-in-bar/build-spec/fill-values b/t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/fill-values
new file mode 100644
index 0000000..17ea927
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/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/mimeinfo/files-foo-in-bar/build-spec/orig/bar b/t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/orig/bar
new file mode 100644
index 0000000..980a0d5
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/orig/bar
@@ -0,0 +1 @@
+Hello World!
diff --git a/t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/orig/bar.pod b/t/recipes/checks/mimeinfo/files-foo-in-bar/build-spec/orig/bar.pod
new file mode 100644
index 0000000..4144a36
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/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/mimeinfo/files-foo-in-bar/eval/desc b/t/recipes/checks/mimeinfo/files-foo-in-bar/eval/desc
new file mode 100644
index 0000000..35b81d0
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-foo-in-bar/eval/desc
@@ -0,0 +1,2 @@
+Testname: files-foo-in-bar
+Check: mimeinfo
diff --git a/t/recipes/checks/mimeinfo/files-foo-in-bar/eval/hints b/t/recipes/checks/mimeinfo/files-foo-in-bar/eval/hints
new file mode 100644
index 0000000..c11f069
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-foo-in-bar/eval/hints
@@ -0,0 +1,2 @@
+files-foo-in-bar (binary): package-contains-mime-file-outside-package-dir [usr/share/mime/foo/bar]
+files-foo-in-bar (binary): package-contains-mime-file-outside-package-dir [usr/share/mime/foo/]
diff --git a/t/recipes/checks/mimeinfo/files-foo-in-bar/eval/post-test b/t/recipes/checks/mimeinfo/files-foo-in-bar/eval/post-test
new file mode 100644
index 0000000..5af7ea2
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/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/mimeinfo/files-general/build-spec/debian/clean b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/clean
new file mode 100644
index 0000000..222b726
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/clean
@@ -0,0 +1 @@
+鳥の詩.1
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/debian/dirs b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/dirs
new file mode 100644
index 0000000..b76fb64
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/dirs
@@ -0,0 +1,13 @@
+etc
+etc/skel
+usr/bin
+usr/doc
+usr/lib/python3/dist-packages/foo
+usr/share/foo
+usr/share/fonts/X11/misc
+usr/share/glib-2.0/schemas
+usr/share/hal
+usr/share/man/man1/random
+var/catman
+var/lock/lintian
+var/run/lintian
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/debian/examples b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/examples
new file mode 100644
index 0000000..18fb10f
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/examples
@@ -0,0 +1 @@
+foo.vcproj
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/debian/install b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/install
new file mode 100644
index 0000000..dccb61e
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/install
@@ -0,0 +1,18 @@
+lintian-16x16.png usr/share/apps/lintian/icons/hicolor/22x22
+lintian-16x16.png usr/share/icons/hicolor/22x22/apps
+lintian-22x22.png usr/share/apps/lintian/icons/hicolor/22x22
+lintian-22x22.png usr/share/apps/lintian/icons/hicolor/20x20
+lintian-16x16.png usr/share/doc/lintian/
+lintian-22x22.png usr/share/games/icons/hicolor/22x22
+lintian-16x16.png usr/share/icons/hicolor/scalable/apps
+lintian-22x22.png usr/share/icons/16x16/animations/
+--lzma etc/modprobe.d
+lintian.conf etc/modprobe.d
+dir usr/share/info
+foo.vcproj usr/lib/foo
+lintian-lib.conf etc/ld.so.conf.d
+php-foo.ini etc/php/7.0/mods-available
+types usr/share/mime
+mimeinfo.cache usr/share/applications
+file-in-new-top-level-dir new-top-level-dir/
+sudotest etc/sudoers.d/
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/debian/links b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/links
new file mode 100644
index 0000000..f3e425d
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/links
@@ -0,0 +1 @@
+usr/share/apps/lintian/icons/hicolor/22x22/lintian-22x22.png usr/share/apps/lintian/icons/hicolor/64x64/lintian-64x64.png
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/debian/manpages b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/manpages
new file mode 100644
index 0000000..e8af11b
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/manpages
@@ -0,0 +1,2 @@
+foo.5
+鳥の詩.1
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/debian/rules b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/rules
new file mode 100755
index 0000000..798f01e
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/debian/rules
@@ -0,0 +1,67 @@
+#!/usr/bin/make -f
+
+tmp := $(CURDIR)/debian/$(shell dh_listpackages)
+
+%:
+ dh $@
+
+override_dh_install:
+ dh_install
+ echo "#fake conf file" > $(tmp)/etc/pam.conf
+ # true positives
+ touch $(tmp)/etc/skel/.lintianrc
+ # false positives
+ touch $(tmp)/etc/skel/.bashrc
+ touch $(tmp)/etc/skel/.bash_logout
+ touch $(tmp)/etc/skel/.profile
+ touch $(tmp)/etc/skel/.kshrc
+ touch $(tmp)/etc/skel/.mkshrc
+ echo "Back-up file" > $(tmp)/usr/share/foo/file~
+ # The name of the "binary" is "Tori no Uta"
+ # If it is ever messed up, it can be restored by
+ # using something like:
+ # perl -pe 's/\@FILE\@/\xe9\xb3\xa5\xe3\x81\xae\xe8\xa9\xa9\x0a/'
+ echo "#!/bin/sh" > $(tmp)/usr/bin/鳥の詩
+ chmod +x $(tmp)/usr/bin/鳥の詩
+ # Copy the manpage to its correct name so dh_installman can
+ # find it.
+ # - d/clean will remove it again
+ cp -a tnu.1 鳥の詩.1
+ touch $(tmp)/usr/doc/FSSTND
+ touch $(tmp)/usr/share/foo/'*'
+ touch $(tmp)/usr/share/foo/'ws '
+ touch $(tmp)/usr/share/fonts/X11/misc/fonts.dir
+ touch $(tmp)/usr/share/fonts/X11/misc/fonts.scale
+ touch $(tmp)/usr/share/fonts/X11/misc/fonts.alias
+ touch $(tmp)/usr/share/fonts/X11/misc/encodings.dir
+ touch $(tmp)/usr/share/fonts/X11/misc/false-positive
+ touch $(tmp)/usr/share/foo/.nfs-fake-tmpfile
+ touch $(tmp)/usr/share/foo/foo.doctree
+ touch $(tmp)/usr/share/foo/gschemas.compiled
+ touch $(tmp)/usr/share/glib-2.0/schemas/gschemas.compiled
+ touch $(tmp)/usr/share/hal/foo.fdi
+ touch $(tmp)/usr/lib/python3/dist-packages/test_foo.py
+ touch $(tmp)/usr/lib/python3/dist-packages/foo/test_falsepositive.py
+ # If the following line gets messed up, it can be
+ # restored with something like:
+ # sed -i 's/@FILE@/bokm\xe5l/'
+ touch $(tmp)/usr/share/foo/bokml
+ touch $(tmp)/var/catman/do
+
+override_dh_fixperms:
+ dh_fixperms
+ chmod 755 $(tmp)/usr/share/man/man5/foo.5.gz
+ chmod 644 $(tmp)/etc/sudoers.d/*
+
+override_dh_compress:
+ dh_compress
+ # create a .png and .png.gz
+ gzip -n -1 $(tmp)/usr/share/doc/lintian/lintian-16x16.png
+ zcat $(tmp)/usr/share/doc/lintian/lintian-16x16.png.gz > \
+ $(tmp)/usr/share/doc/lintian/lintian-16x16.png
+
+override_dh_link:
+ dh_link
+ mkdir -p $(tmp)/usr/share/doc/bar
+ echo "Hallo World" > $(tmp)/usr/share/doc/bar/foo
+ ln -s ../bar/foo $(tmp)/usr/share/doc/bar/star
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/fill-values b/t/recipes/checks/mimeinfo/files-general/build-spec/fill-values
new file mode 100644
index 0000000..45de709
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/fill-values
@@ -0,0 +1,4 @@
+Skeleton: upload-native
+Testname: files-general
+Description: Test tags for file paths, names, and modes
+# tar -t is buggy and does not list \\\ filename
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/--lzma b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/--lzma
new file mode 100644
index 0000000..5241aaa
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/--lzma
@@ -0,0 +1,2 @@
+Test file to check that various parts of Lintian correctly handle files with names that look
+like options
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/dir b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/dir
new file mode 100644
index 0000000..e465d26
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/dir
@@ -0,0 +1,18 @@
+This is the file .../info/dir, which contains the
+topmost node of the Info hierarchy, called (dir)Top.
+The first time you invoke Info you start off looking at this node.
+
+File: dir, Node: Top This is the top of the INFO tree
+
+ This (the Directory node) gives a menu of major topics.
+ Typing "q" exits, "?" lists all Info commands, "d" returns here,
+ "h" gives a primer for first-timers,
+ "mEmacs<Return>" visits the Emacs manual, etc.
+
+ In Emacs, you can click mouse button 2 on a menu item or cross reference
+ to select it.
+
+* Menu:
+
+Archiving
+* Cpio: (cpio). Copy-in-copy-out archiver to tape or disk.
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/file-in-new-top-level-dir b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/file-in-new-top-level-dir
new file mode 100644
index 0000000..ae82d42
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/file-in-new-top-level-dir
@@ -0,0 +1,2 @@
+Since an empty file triggers "empty-dir" tags; we might as well
+test file-in-unusual-dir together with non-standard-toplevel-dir.
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/foo.5 b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/foo.5
new file mode 100644
index 0000000..718eae1
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/foo.5
@@ -0,0 +1,5 @@
+.TH FOO "5"
+.SH NAME
+foo \- file format for foo
+.SH DESCRIPTION
+This file can store anything.
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/foo.vcproj b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/foo.vcproj
new file mode 100644
index 0000000..6ec1ca6
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/foo.vcproj
@@ -0,0 +1 @@
+Not actually a VC project file.
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian-16x16.png b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian-16x16.png
new file mode 100644
index 0000000..cd7355d
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian-16x16.png
Binary files differ
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian-22x22.png b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian-22x22.png
new file mode 100644
index 0000000..efc9af0
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian-22x22.png
Binary files differ
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian-lib.conf b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian-lib.conf
new file mode 100644
index 0000000..e2b41a8
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian-lib.conf
@@ -0,0 +1 @@
+/usr/lib/lintian
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian.conf b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian.conf
new file mode 100644
index 0000000..7f6693c
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/lintian.conf
@@ -0,0 +1 @@
+Test file which should not be flagged by the modprobe.d checks
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/mimeinfo.cache b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/mimeinfo.cache
new file mode 100644
index 0000000..f3067c5
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/mimeinfo.cache
@@ -0,0 +1,2 @@
+[MIME Cache]
+text/plain=foo-editor.desktop
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/php-foo.ini b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/php-foo.ini
new file mode 100644
index 0000000..6a33666
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/php-foo.ini
@@ -0,0 +1 @@
+# this style of comments are obsolete
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/sudotest b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/sudotest
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/sudotest
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/tnu.1 b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/tnu.1
new file mode 100644
index 0000000..147dc1a
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/tnu.1
@@ -0,0 +1,5 @@
+.TH 鳥の詩 "1"
+.SH NAME
+鳥の詩 \- command in PATH written in UTF-8
+.SH DESCRIPTION
+鳥の詩 (Tori no uta) is not really a useful command.
diff --git a/t/recipes/checks/mimeinfo/files-general/build-spec/orig/types b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/types
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/build-spec/orig/types
diff --git a/t/recipes/checks/mimeinfo/files-general/eval/desc b/t/recipes/checks/mimeinfo/files-general/eval/desc
new file mode 100644
index 0000000..1c962db
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/eval/desc
@@ -0,0 +1,3 @@
+Testname: files-general
+Check: mimeinfo
+# tar -t is buggy and does not list \\\ filename
diff --git a/t/recipes/checks/mimeinfo/files-general/eval/hints b/t/recipes/checks/mimeinfo/files-general/eval/hints
new file mode 100644
index 0000000..09a8831
--- /dev/null
+++ b/t/recipes/checks/mimeinfo/files-general/eval/hints
@@ -0,0 +1,2 @@
+files-general (binary): package-contains-mimeinfo.cache-file [usr/share/applications/mimeinfo.cache]
+files-general (binary): package-contains-mime-cache-file [usr/share/mime/types]