summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* Lower priority of "BEGIN {" for perl, awk uses that toowork/dfaure/issue155David Faure2021-04-252-0/+4
| | | | Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/155
* tests: Fix running staging testBastien Nocera2021-03-182-10/+10
| | | | | | | | The staging test is supposed to be an easy way to determine whether database changes were taken into account. Run it as part of the test suite, and make sure that the script doesn't fail if we can't find files to determine the mime-types of.
* application/x-7z-compressed: add *.7z.001 globVille Skyttä2021-02-242-0/+1
| | | | These are the first files of a multivolume archive.
* image/x-nikon-nrw: add test caseVille Skyttä2021-02-072-0/+2
| | | | https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/124#note_788636
* application/ovf: newVille Skyttä2021-01-132-0/+3
| | | | https://en.wikipedia.org/wiki/Open_Virtualization_Format
* application/x-qed-disk: newVille Skyttä2021-01-132-0/+2
| | | | https://wiki.qemu.org/Features/QED
* application/x-vdi-disk: newVille Skyttä2021-01-132-0/+2
| | | | https://en.wikipedia.org/wiki/VirtualBox#VirtualBox_Disk_Image
* application/x-vmdk-disk: newVille Skyttä2021-01-132-0/+2
| | | | https://en.wikipedia.org/wiki/VMDK
* application/x-vhd-disk, /x-vhdx-disk: newVille Skyttä2021-01-133-1/+5
| | | | https://en.wikipedia.org/wiki/VHD_(file_format)
* application/vnd.apple.numbers, .pages: add older magics and test casesVille Skyttä2021-01-103-0/+4
| | | | | Numbers 3.5 and Pages 5.5 appear to place an Index/Document.iwa, not index.xml there.
* Add text/x-dartJan Tojnar2021-01-102-0/+6
| | | | | | Dart is a programming language by Google. https://dart.dev/
* text/x-python: add text/x-modelica false positive test casework/scop/python-modelica-false-positiveVille Skyttä2020-12-312-0/+9
| | | | | | Fixed by https://gitlab.freedesktop.org/xdg/xdgmime/-/merge_requests/3 Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/127
* audio/mpeg: add layer 2, 2.5, and 1 protected magicsmasato2020-12-308-1/+14
| | | | Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/46
* Adapt to xdgmime behaviour change.work/dfaure/adapt_to_xdgmime_changeDavid Faure2020-12-301-2/+2
| | | | | | | | | | | | | As the spec says, if the result from magic sniffing doesn't match one of the globs, ignore it and return one of the globs. With this change, test-garbage.key (which was already a doubtful testcase, see !5) no longer falls back to application/octet-stream but to one of the globs. test-really-html-not-xhtml.html is also fixed by this, it's detected as text/html. Closes: #138.
* audio/x-mod: magic match 669 Composer files' tempo tableVille Skyttä2020-12-281-1/+1
| | | | | | | | | | | | | According to mikmod, the tempo table is 128 bytes containing values ranging from 1 to 32, inclusive. We don't have good means to test all those 128 bytes, but look into the last one to make it rule out some short files. Also, accept 0 for the time being due to our match expression limitations. 0-31 being ASCII control characters gives this a better chance to avoid matching random ASCII files out there. Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/144
* audio/x-mod: add known false positive 669 Composer test caseVille Skyttä2020-12-282-0/+27
| | | | Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/144
* text/markdown: add Pandoc flavored test caseVille Skyttä2020-12-262-0/+8
| | | | Refs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/138
* Add Khronos image texture format version 2Kai Uwe Broulik2020-12-262-0/+2
| | | | | | | Its draft specification [1] calls for a "*.ktx2" glob and "image/ktx2" type as it contains backwards-incompatible changes over version 1. [1] http://github.khronos.org/KTX-Specification/
* tests/compare_iana.py: cleanupsVille Skyttä2020-12-262-91/+98
|
* tests/test_case.py: new spelling case testVille Skyttä2020-12-262-0/+50
|
* tests/test_sub_class_ofs.py: new sub-class-of sanity check testVille Skyttä2020-12-262-0/+51
|
* tests: implement duplicate type check with xpath, check aliases tooVille Skyttä2020-12-261-1/+9
|
* application/oxps, /vnd.ms-xpsdocument: add test casesVille Skyttä2020-12-263-0/+3
|
* tests/compare-iana.py: new script for comparing differences with IANAVille Skyttä2020-12-251-0/+91
| | | | Intended for manual maintainer use at least for now.
* image/g3fax: add test caseVille Skyttä2020-12-252-0/+2
|
* text/vnd.trolltech.linguist: swap main/alias with /vnd.qt.linguistVille Skyttä2020-12-251-1/+1
| | | | The former is the IANA registered type.
* application/vnd.smaf: swap main/alias with /x-smafVille Skyttä2020-12-251-1/+1
| | | | The former is the IANA registered type.
* application/vnd.apple.keynote: swap main/alias with /x-iwork-keynote-sffkeyVille Skyttä2020-12-251-1/+1
| | | | | The latter is deprecated per https://www.iana.org/assignments/media-types/application/vnd.apple.keynote
* Add image/astcKai Uwe Broulik2020-11-212-0/+2
| | | | Adaptive Scalable Texture Compression files
* Add application/x-mame-chdAdrien Plazas2020-11-082-0/+2
|
* Add application/nintendo-3ds-executableAlexander Mikhaylenko2020-11-082-0/+2
| | | | | According to https://3dbrew.org/wiki/3DSX_Format, they start from '3DSX' magic value and have .3dsx extension.
* Add application/x-nintendo-3ds-romAlexander Mikhaylenko2020-11-082-0/+2
| | | | | | | Nintendo 3DS ROMs can have *.3ds or *.cci extensions. According to https://3dbrew.org/wiki/CCI, they have 'NCSD' magic number at 0x100 offset.
* Add magic for image/x-3dsAlexander Mikhaylenko2020-11-082-0/+2
| | | | | The next commit will add another MIME type with the same glob, avoid breakage.
* Update freedesktop.org.xml.in : add .sage file format for SageMath script filesFrédéric Chapoton2020-11-072-0/+16
|
* Add Kaitai Struct mime-typeBastien Nocera2020-11-062-0/+79
| | | | For use with the Kaitai Struct visualiser, or any text/YAML editors
* Add application/x-compressed-isoAdrien Plazas2020-11-062-0/+2
|
* Add application/x-discjuggler-cd-imageAdrien Plazas2020-11-022-0/+1
|
* Add application/x-gd-rom-cueAdrien Plazas2020-11-022-0/+5
|
* Add application/x-dreamcast-romAdrien Plazas2020-11-022-0/+2
|
* Remove image/avif-sequenceDaniel Novomesky2020-08-221-1/+1
| | | | | | Latest AVIF specification draft removed definition of image/avif-sequence mime type, so instead of two mime types (image/avif and image/avif-sequence) only one image/avif will be used in future.
* Rmove ELF magic for application/x-sharedlib, generalize x-executable magic.David Faure2020-06-132-0/+4
| | | | | | | | | | | PIE executables have the same header as ELF shared libs and therefore were being detected as shared libraries. The magic for executables was too specific, I removed the check for the value at offset 16 since it's actually 3 for /usr/bin/ls, not 2. Fixes gitlab issue #11. https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/11
* Add Apple System Profiler XML mime-typeStefan Brüns2020-05-062-0/+9
| | | | | | | Apples "system_profiler" can save information about the machine in XML format and uses the *.spx extension. Fixes #105.
* Add magic for Musepack SV8Stefan Brüns2020-05-062-0/+2
| | | | | | | | | | According to http://trac.musepack.net/musepack/wiki/SV8Specification, the file starts with a 'MPCK' magic. Currently, only the SV7 magic, 'MP+' is recognized: http://trac.musepack.net/musepack/wiki/SV7Specification. Fixes #104.
* tests: Verify that our ITS file is validBastien Nocera2020-05-061-0/+8
|
* Allow *.spx glob for audio/x-speex+oggStefan Brüns2020-05-062-0/+2
| | | | | | | | | | | | | | | | | | | | | Currently, *.spx is associated with "raw" speex, i.e. without an ogg container, while it is also often used for audio/x-speex+ogg. The latter currently only allows the *.oga and *.ogg globs. See also https://bugs.freedesktop.org/show_bug.cgi?id=5299 https://bugs.freedesktop.org/show_bug.cgi?id=53376 The libspeex speexenc/speexdec reference implementations use ogg containers, and use the *.spx extension, see e.g. https://linux.die.net/man/1/speexdec "raw" speex and speex+ogg are covered by their content matches, i.e. 'OggS'@0 + 'Speex '@28 vs. 'Speex '@0. Apparently the only application capable of creating "raw" speex is the xiph sampleenc, see https://github.com/xiph/speex/blob/master/doc/sampleenc.c Fixes #103
* Split Audible audio mime typesStefan Brüns2020-05-051-1/+1
| | | | | | | | | | The old "Format 2/3/4" audible files are proprietary formats, while the newer "Enhanced" type is actually an ISO Base Media File Format compliant file (aka ISOBMFF/M4B/Quicktime). The audio stream is encrypted, but meta data (author, title, cover image) are unencrypted and can be used by standard tools. Fixes #134.
* Add mimetypes for AV1 Image File Format (AVIF)Daniel Novomesky2020-04-183-0/+5
| | | | Add mimetypes for AV1 Image File Format (AVIF)
* Add mimetypes for Kotlin source filesAdel Khial2020-04-112-0/+6
|
* Add mimetypes for PySpread spreadsheetsAndreas Noteng2020-04-033-0/+14
|
* Add text/vbscriptAlex Henrie2020-03-282-0/+2
| | | | | | | | Section 18.2.2 of the HTML 4.0 specification gives "text/vbscript" as the MIME type for VBScript and no later standard has changed that. Internet Explorer also accepts the nonstandard type text/vbs for these files. https://www.w3.org/TR/1998/REC-html40-19980424/interact/scripts.html#h-18.2.2