# Regression tests for shared-mime-info and xdgmime.
#
# Syntax: <filename> <expected mimetype> [NDF]
#  where N can be 'x' if the lookup by filename is expected to fail
#        D can be 'x' if the lookup by file data is expected to fail
#        F can be 'x' if the lookup by actual file (using both name and contents) is expected to fail
#  Use 'o' to express the opposite, i.e. no expected failure for this kind of lookup.
#  Example: 'ox' means N=o D=x (and F is 'o', implicitly), lookup by data should fail.


# Images
test.bmp image/bmp
test.cel image/x-kiss-cel
test.dcm application/dicom
test.eps image/x-eps
test.dds image/vnd.ms-dds
testcard_gray.pfm image/x-pfm
testcard_rgb.pfm image/x-pfm
testcard_gray.phm image/x-phm
testcard_rgb.phm image/x-phm
testcard_rgb.pxr image/x-pxr
testcard_gray.sct image/x-sct
test_4bpp.tim image/x-tim
testcard_rgba.ff image/x-farbfeld
# https://bugs.freedesktop.org/show_bug.cgi?id=55264
Oriental_tattoo_by_daftpunk22.eps image/x-eps
GammaChart.exr image/x-exr
test.fit application/fits
test.fli video/x-flic
trafficlights.flc video/x-flic
trafficlights.ase image/x-aseprite
test.gif image/gif
example.heic image/heif
example.heif image/heif
# Converted from img_5304.jpg with GIMP 2.10.18
img_5304.hif image/heif
test.ico image/vnd.microsoft.icon
# From https://bugs.freedesktop.org/show_bug.cgi?id=20070#c3
test.ilbm image/x-ilbm
test.im1 image/x-sun-raster x
test.jpg image/jpeg
# Possible false positive for a JPEG 2000 image
img_5304.jpg image/jpeg
# One with embeddded property list XML
# https://github.com/DeaDBeeF-Player/deadbeef/issues/2667
# convert -extent 1x1 cover.jpg jpg:- | exiftool "-PhotoshopThumbnail<=" - >test-with-plist-xml.jpg
test-with-plist-xml.jpg image/jpeg
# From https://github.com/bitsgalore/jp2kMagic
balloon.j2c image/x-jp2-codestream
balloon.jp2 image/jp2
balloon.jpf image/jpx
balloon.jpm image/jpm
balloon.mj2 video/mj2
# JPEG-XR
blue.wdp image/jxr
# From https://bugzilla.freedesktop.org/show_bug.cgi?id=55339
test.mng video/x-mng
test.pbm image/x-portable-bitmap
test.pcx image/vnd.zbrush.pcx
test.pgm image/x-portable-graymap
test.pix image/x-pix xxx
test.png image/png
test.ppm image/x-portable-pixmap
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=19811
test2.ppm image/x-portable-pixmap
test-p6.ppm image/x-portable-pixmap
test.ps  application/postscript
test.psd image/vnd.adobe.photoshop
test.sgi image/x-sgi ox
test.tga image/x-tga
# Uncompressed TGA
test2.tga image/x-tga
colormapped.tga image/x-tga
test.tif image/tiff
test.webp image/webp
test.xbm image/x-xbitmap ox
test.xcf image/x-xcf
test.gbr image/x-gimp-gbr
test.gih image/x-gimp-gih ox
test.pat image/x-gimp-pat
# https://bugs.freedesktop.org/show_bug.cgi?id=55263
lucid-tab-bg.xcf image/x-xcf
weather_sun.xcf image/x-xcf
test.xpm image/x-xpixmap
# Copied from https://en.wikipedia.org/wiki/X_PixMap
test-xpm2.xpm image/x-xpixmap
test.xwd image/x-xwindowdump ox
# Copied from http://djvu.org/resources/
2001_compression_overview.djvu image/vnd.djvu+multipage xoo
2001_compression_overview.djvu image/vnd.djvu oxx
# c44 test.jpg test.djvu
test.djvu image/vnd.djvu
# Copied from https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/91488 (150 first kB)
test.kdc image/x-kodak-kdc
# Copied from http://www.skencil.org/gallery.html
bathead.sk image/x-skencil
# Copied from http://www.geocities.com/CapeCanaveral/1939/256cur95.zip
jc-win.ani application/x-navi-animation
# Copied from http://blogs.vertigosoftware.com/alanl/archive/2006/06/28/Vista_Cursors_on_Windows_XP.aspx
aero_alt.cur image/x-win-bitmap
# copied from the mypaint examples
mypaint.ora image/openraster
# generated with `convert test.tif -compress Fax G3:test.g3`
test.g3 image/g3fax ox
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=19201#c4
# test.bflng application/xml x
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=19201#c3
test.xhtml application/xhtml+xml
test.xht application/xhtml+xml
# Copied from https://bugs.webkit.org/show_bug.cgi?id=201295#c0
test-html-with-svg.html text/html
# Copied from https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/98
test-really-html-not-xhtml.html text/html ox
# Copied from https://bugs.kde.org/show_bug.cgi?id=417248
test-really-html-not-perl.html text/html
# Copied from https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/120
test.html text/html
nomaximize.hta application/hta
# Copied from http://cvs.fedoraproject.org/viewvc/comps/comps-f11.xml.in?revision=1.306
test.xml.in application/xml x
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=25581
dia.shape application/x-dia-shape
# Copied from https://bugzilla.gnome.org/show_bug.cgi?id=623861#c1
attachment.tif image/jpeg xox
# First 512k of http://img.photographyblog.com/reviews/panasonic_lumix_dmc_fz38/sample_images/panasonic_lumix_dmc_fz38_05.rw2
panasonic_lumix_dmc_fz38_05.rw2 image/x-panasonic-rw2
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=39126
bug39126-working.ppm image/x-portable-pixmap
bug39126-broken.ppm image/x-portable-pixmap
# Copied from https://issues.apache.org/ooo/show_bug.cgi?id=25876
ooo25876-2.pct image/x-pict
newtonme.pict image/x-pict
# Copied from https://github.com/KhronosGroup/KTX/tree/master/testimages
rgb-reference.ktx image/ktx
# Copied from https://github.com/KhronosGroup/KTX/tree/master/testimages
rgba-reference-u.ktx2 image/ktx2
# Copied from https://gitlab.gnome.org/GNOME/gnome-photos/blob/master/data/dnd-counter.svg
dnd-counter.svg image/svg+xml
# Copied from https://github.com/linuxmint/mint-x-icons/tree/master/usr/share/icons/Mint-X-Aqua/places/128
folder.svg image/svg+xml
# Copied from https://gitlab.freedesktop.org/xdg/shared-mime-info/issues/116#note_225851
terminal-app.svg image/svg+xml
network-symbolic.svg image/svg+xml
# Zeb model from http://www.geo-metricks.com/geo-shop/shop-htm/free-object-info.htm truncated to 1Ko
zeb.3ds image/x-3ds x
# Generated using astcenc-sse2 -cl test.png test.astc 4x4 -thorough
test.astc image/astc
# First 10kB of sample at https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/124
test.nrw image/x-nikon-nrw ox
test-with-container.jxl image/jxl
test-without-container.jxl image/jxl
# Copied from https://commons.wikimedia.org/wiki/File:Animated_PNG_example_bouncing_beach_ball.png
Animated_PNG_example_bouncing_beach_ball.png image/apng x
# Generated by `ffmpeg -f lavfi -i testsrc=duration=5:s=640x480:r=10 -f apng -plays 0 apng-ffmpeg.apng`
apng-ffmpeg.apng image/apng ooo
# Copied from https://github.com/ImageMagick/ImageMagick6/raw/main/PerlMagick/t/fpx/input_256.fpx
input_256.fpx image/vnd.fpx
# From https://polyhaven.com/a/greenwich_park
greenwich_park.hdr image/vnd.radiance
# Taken from https://raw.pixls.us/ (truncated at 1024 bytes)
dcraw_sample.3fr image/x-hasselblad-3fr ox
dcraw_sample.erf image/x-epson-erf ox
dcraw_sample.fff image/x-hasselblad-fff ox
dcraw_sample.iiq image/x-phaseone-iiq ox
dcraw_sample.mdc image/x-minolta-mdc ox
dcraw_sample.mef image/x-mamiya-mef ox
dcraw_sample.mos image/x-leaf-mos ox
dcraw_sample.srw image/x-samsung-srw ox
dcraw_sample.sti image/x-sinar-sti xx

# Documents
ooo-6.0.doc application/msword
ooo-95.doc application/msword
ooo.doc application/msword
ooo.rtf application/rtf
ooo.sdw application/vnd.stardivision.writer
ooo.stw application/vnd.sun.xml.writer.template ox
ooo.sxw application/vnd.sun.xml.writer
ooo.vor application/vnd.stardivision.writer
ooo-xp.doc application/msword
office.doc application/msword
# ISO/IEC 26300:2006 Open Document Format for Office Applications (OpenDocument)
ooo-test.odg application/vnd.oasis.opendocument.graphics
ooo-test.odp application/vnd.oasis.opendocument.presentation
ooo-test.ods application/vnd.oasis.opendocument.spreadsheet
ooo-test.odt application/vnd.oasis.opendocument.text
# OpenDocument/OpenOffice.org flat XML
ooo-test.fodg application/vnd.oasis.opendocument.graphics-flat-xml ox
ooo-test.fodp application/vnd.oasis.opendocument.presentation-flat-xml ox
ooo-test.fods application/vnd.oasis.opendocument.spreadsheet-flat-xml ox
ooo-test.fodt application/vnd.oasis.opendocument.text-flat-xml ox
# Created with StarOffice 3.0
so3.smf application/x-starmath x
# Created with StarOffice 3.1
so3.sdw application/x-starwriter x
so3.sdc application/x-starcalc x
so3.sdd application/x-starimpress x
so3.sds application/x-starchart x
# Created with StarOffice 4.0
so4.sdw application/x-starwriter x
so4.sgl application/x-starwriter-global x
so4.sdc application/x-starcalc x
so4.sdd application/x-starimpress x
so4.sds application/x-starchart x
so4.smf application/x-starmath x
so4.smd application/x-starmail x
# Created with StarOffice 5.2
so5.sdw application/vnd.stardivision.writer
so5.sgl application/vnd.stardivision.writer-global
so5.sdc application/vnd.stardivision.calc
so5.sdd application/vnd.stardivision.impress
so5.sdp application/vnd.stardivision.impress-packed x
so5.sda application/vnd.stardivision.draw
so5.sds application/vnd.stardivision.chart
so5.smf application/vnd.stardivision.math
so5.sdm application/vnd.stardivision.mail
# Created with LibreOffice 7.6
lo7.doc application/msword
lo7.xls application/vnd.ms-excel
lo7.ppt application/vnd.ms-powerpoint
# Created with LibreOffice 24.2
lo24.odm application/vnd.oasis.opendocument.text-master
lo24.otm application/vnd.oasis.opendocument.text-master-template
# Created with WordPerfect 9
regular.wpd application/vnd.wordperfect
compound.wpd application/vnd.wordperfect
# Created with Quattro Pro 6
quattro6.wb2 application/x-quattropro ox
# Created with Quattro Pro 9
quattro9.qpw application/x-quattropro
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=20604
foo.doc application/msword
# Copied from http://bugzilla.abisource.com/show_bug.cgi?id=6435
test-template.dot application/msword-template ox
test-template.dot application/msword xox
# Copied from http://www.ebooktechnologies.com/downloads/ocf10-20060911.epub
ocf10-20060911.epub application/epub+zip
# Copied from https://standardebooks.org/ebooks/elizabeth-barrett-browning/sonnets-from-the-portuguese
elizabeth-barrett-browning_sonnets-from-the-portuguese.azw3 application/vnd.amazon.mobi8-ebook ox
# Created with BBeBinder
blank.lrf application/x-sony-bbeb x
# Copied from http://libwps.svn.sourceforge.net/viewvc/libwps/trunk/reference/
test.wps application/vnd.ms-works
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=45922
test.xlr application/vnd.ms-works ox
# Copied from http://openxmldeveloper.org/articles/OpenXMLsamples.aspx
sample.docx application/vnd.openxmlformats-officedocument.wordprocessingml.document oxo
sample.xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet oxo
sample.pptx application/vnd.openxmlformats-officedocument.presentationml.presentation oxo
# Copied and renamed sample.pptx
sample.ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow oxo
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=20185
pocket-word.psw application/x-pocket-word
aportis.pdb application/x-aportisdoc x
# Copied from https://artcontext.net/art/01/mime/docs/show.php?type=application%2Fandrew-inset&js=
internet.ez application/andrew-inset ox
# Copied from http://extensions.services.openoffice.org/project/anaphraseus
Anaphraseus-1.21-beta.oxt application/vnd.openofficeorg.extension ox
# Copied from http://lilypond.org/doc/v2.10/examples
petite-ouverture-a-danser.ly text/x-lilypond ox
sqlite2.kexi application/x-kexiproject-sqlite2 ox
sqlite3.kexi application/x-kexiproject-sqlite3 xx
# Copied from KOffice 2.1.1 source tarball
combined.karbon application/x-karbon
Empty.chrt application/x-kchart
layersupdatesignals.flw application/x-kivio
Presentation.kpt application/x-kpresenter
testcases.ksp application/x-kspread
test-kounavail2.kwd application/x-kword
white_640x480.kra application/x-krita
test.mobi application/x-mobipocket-ebook
test.lwp application/vnd.lotus-wordpro
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=64946
TS010082249.pub application/vnd.ms-publisher
# Created with QuarkXPress 8.5.1
qxp8.qxp application/vnd.quark.quarkxpress
test.key application/vnd.apple.keynote
# Created with Numbers 3.5
test.numbers application/vnd.apple.numbers ox
# Created with Pages 5.5
test.pages application/vnd.apple.pages
test.pmd application/x-pagemaker oxo
sample.vsdx application/vnd.ms-visio.drawing.main+xml oxo
appleworks.cwk application/x-appleworks-document oxo
# test.oxps and test.xps "printed" with Windows 10 Microsoft XPS Document Writer
test.oxps application/oxps ox
test.xps application/vnd.ms-xpsdocument ox
../../data/update-mime-database.1 application/x-troff-man ox
# Created with Hancom Docs
hancom.hwpx application/x-hwpx

# Playlist, subtitle and audio formats
stream.nsc application/x-netshow-channel
stream.sdp application/sdp
playlist.asx audio/x-ms-asx
feed.rss application/rss+xml
feed2 application/rss+xml x
# RSS tag is too far in the file
560051.xml application/rss+xml xxx
feed.atom application/atom+xml
feeds.opml text/x-opml+xml
subtitle.srt application/x-subrip
# Copied from http://msdn2.microsoft.com/en-us/library/ms971327.aspx
subtitle.smi application/x-sami x
# Copied from http://www1.mplayerhq.hu/MPlayer/samples/sub/Lola.sub/Run.Lola.Run.1998.DVDivX-SChiZO.sub
subtitle-microdvd.sub text/x-microdvd
# Copied from https://dl.opensubtitles.org/pl/download/file/1956175964
subtitle-mpl2.mpl text/x-mpl2
# Copied from http://www1.mplayerhq.hu/MPlayer/samples/sub/manyfmts/FOVH%20MoviePlayer.sub
subtitle-mpsub.sub text/x-mpsub x
# Copied from http://en.wikipedia.org/wiki/SubStation_Alpha
subtitle.ssa text/x-ssa
# Copied from http://wiki.videolan.org/SubViewer
subtitle-subviewer.sub text/x-subviewer x
# Copied from http://www.iandevlin.com/html5test/webvtt/upc-video-subtitles-en.vtt
upc-video-subtitles-en.vtt text/vtt
# Lyrics for https://commons.wikimedia.org/wiki/File:Twinkle_Twinkle_Little_Star_-_sung_with_full_lyrics.ogg (CC0)
twinkle.lrc text/x-lrc
twinkle-instrumental.lrc text/x-lrc
# Copied from http://zano6.home.att.net/Ringer/Ball_Game.ime
ringtone.ime text/x-iMelody
# Copied from http://smaf-yamaha.com/develop/smpl/J-Walk.mmf
ringtone.mmf application/vnd.smaf
ringtone.m4r audio/x-m4r oxo
# Copied from http://smaf-yamaha.com/what/demo/chlist.mrl
playlist.mrl text/x-mrml
#  Copied from http://bugzilla.gnome.org/show_bug.cgi?id=518688
hbo-playlist.qtl application/x-quicktime-media-link
# Copied from http://bugzilla.gnome.org/show_bug.cgi?id=567142
playlist.wpl application/vnd.ms-wpl
# Copied from Nine Inch Nails' The Slip
test.flac audio/flac
# Copied from http://tools.ietf.org/html/draft-pantos-http-live-streaming-02#section-7.1
live-streaming.m3u application/vnd.apple.mpegurl x
# Copied from http://qthttp.apple.com.edgesuite.net/1006ad9g4hjk/all_w.m3u8
all_w.m3u8 application/vnd.apple.mpegurl x
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=42922
test.vsd application/vnd.visio
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=40800
test.dts audio/vnd.dts
test.dtshd audio/vnd.dts.hd
# perl -e 'print "This is not DTSHD: \x{64}\x{58}\x{20}\x{25}"'
test-not-dtshd.txt text/plain
# Copied from http://samples.mplayerhq.hu/A-codecs/amr/sample2.amr
sample2.amr audio/AMR
# Testing case-insensitive mime-type matching
# https://bugs.freedesktop.org/show_bug.cgi?id=38415
sample2.amr audio/amr
# Truncated file from https://bugzilla.gnome.org/show_bug.cgi?id=792325
raw-mjpeg.mjpeg video/x-mjpeg oxo
# From https://cgit.kde.org/kfilemetadata.git/tree/autotests/samplefiles
x_speex_ogg.spx audio/x-speex+ogg
# From https://cgit.kde.org/kfilemetadata.git/tree/autotests/samplefiles
test.mpc audio/x-musepack
# Created using https://tascam.com/us/product/hi-res_editor/top
test.dsf audio/x-dsf
# Created using https://tascam.com/us/product/hi-res_editor/top
test.dff audio/x-dff
# Created using http://thbeck.de/Download/TAK_2.3.1.zip (source input: ffmpeg -f lavfi -i anullsrc=r=44100:cl=mono -t 0.1 silence.wav)
test.tak audio/x-tak

# text
text-iso8859-15.txt text/plain
text-utf8.txt text/plain
test.tex text/x-tex
test2.tex text/x-tex
# Generate from test2.tex with texi2dvi from Texinfo 6.5
test2.dvi application/x-dvi
# Copied from http://www.computerperformance.co.uk/vista/vista_reg_examples.htm
registry.reg text/x-ms-regedit
# Copied from http://www.ss64.com/nt/regedit.html
registry-nt.reg text/x-ms-regedit
# Copied from https://bugzilla.redhat.com/show_bug.cgi?id=430203#c3
test.ext,v text/plain
# Feature specification in Gherkin format
test.feature text/x-gherkin ox
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=14329
test.fl application/x-fluid
# From https://bugs.freedesktop.org/show_bug.cgi?id=30656
bug-30656-xchat.conf application/octet-stream oxx
bug-30656-xchat.conf text/plain x
helloworld.java text/x-java ox
helloworld.groovy text/x-groovy ox
helloworld.bas text/x-basic ox
helloworld.vb text/x-vb x
helloworld.vbs text/vbscript ox
# Created with `srcenc.exe helloworld.vbs helloworld.vbe`
helloworld.vbe text/vbscript.encode ox
helloworld.ps1 application/x-powershell
# Copied from https://dmcxblue.gitbook.io/red-team-notes/execution/trusted-developer-utilities/regsvr32
calc.sct text/scriptlet x
build.gradle text/x-gradle ox
build.gradle.kts text/x-gradle-kts ox
ico.ksy text/x-kaitai-struct ox
# Copied from http://asurvey.net/ccsfagent/media/survey.js
survey.js text/javascript ox
# Created with `srcenc.exe survey.js survey.exe`
survey.jse text/jscript.encode
# Copied from gecko/accessible/src/jsat/Utils.jsm in Boot2Gecko
Utils.jsm text/javascript ox
esm.mjs text/javascript ox
javascript-without-extension text/javascript xoo
# Copied from https://github.com/microsoft/TypeScript-Website/blob/v2/packages/documentation/copy/en/get-started/TS%20for%20JS%20Programmers.md
UserAccount.ts application/typescript x
UserAccount.cts application/typescript
# The following two copied from RFC 4627.
json_object.json application/json ox
json_array.json application/json ox
# Copy of json_array.json with comments and trailing commas
json_array.json5 application/json5 ox
# Copied from RFC 7033
webfinger.jrd application/jrd+json ox
# Copied from RFC 6902
my-data.json-patch application/json-patch+json ox
# Copied from http://www.w3.org/TR/json-ld/
json-ld-full-iri.jsonld application/ld+json ox
schema.json application/schema+json x
test.ipynb application/x-ipynb+json
test-reordered.ipynb application/x-ipynb+json ox
har_example.har application/har+json
test.cs text/x-csharp ox
test.dot text/vnd.graphviz x
test.vala text/x-vala ox
test.ooc text/x-ooc ox
test.mof text/x-mof ox
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=11530
test-cdda.toc application/x-cdrdao-toc
test-cdrom.toc application/x-cdrdao-toc
dreamcast-us-samba-de-amigo.gdi application/x-gd-rom-cue ox
dreamcast-jet-set-radio.cdi application/x-discjuggler-cd-image ox
# Nero Burning ROM samples from libcdio, 512o footer (for future magic)
nero-NERO-footer.nrg application/x-nrg ox
nero-NER5-footer.nrg application/x-nrg ox
# Copied from /etc/sysconfig/iptables
test.iptables text/x-iptables
test-vpn.pcf application/x-cisco-vpn-settings x
# From https://bugs.freedesktop.org/show_bug.cgi?id=20302
menu.ini application/octet-stream oxx
menu.ini text/plain x
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=16228
test.php application/x-php
# The 3 below copied from https://bugs.freedesktop.org/show_bug.cgi?id=15810
evolution.eml application/mbox xox
tb-from-sentbox.eml message/rfc822
tb-saved.eml message/rfc822
# Copied from http://www.cyanwerks.com/file-format-url.html
test.url application/x-mswinurl
# Copied from http://www.digitalmars.com/d/
test.d text/x-dsrc ox
test.v text/x-verilog ox
test.sv text/x-svsrc ox
test.svh text/x-svhdr ox
# Copied from http://www.w3.org/TR/CSS21/sample.html
html4.css text/css ox
# Copied from http://www.iecss.com/whatwg.css
html5.css text/css ox
# Copied from http://www.w3.org/TR/html5/offline.html#manifests
test.manifest text/cache-manifest
test.yaml application/yaml
# Copied from https://toml.io/en/
test.toml application/toml ox
# hand-made
mysum.m text/x-matlab x
# taken from Octave 3.2 sources
isdir.m text/x-matlab x
# hand-made
test.mo text/x-modelica xoo
# From https://bugs.freedesktop.org/show_bug.cgi?id=29733
bibtex.bib text/x-bibtex
# the following 6 test files are hand-made
import-objc.m text/x-objcsrc ox
comment-objc.m text/x-objcsrc ox
import-objc++.mm text/x-objc++src
include-objc++.mm text/x-objc++src ox
simple-troff.tr text/troff
simple-troff.mm text/x-troff-mm xx
# Copied from LLVM project test suite
test.cl text/x-opencl-csrc ox
test.clcpp text/x-opencl-c++src ox
# hand-made
test.mc2 text/vnd.senx.warpscript ox
# Copied from http://todotxt.org/todo.txt
todo.txt text/x-todo-txt
# From https://github.com/OpenVPN/openvpn/blob/master/sample/sample-plugins/keying-material-exporter-demo/client.ovpn
openvpn.ovpn application/x-openvpn-profile ox
openvpn.openvpn application/x-openvpn-profile ox
# From https://github.com/OpenPrinting/cups-filters/blob/master/ppdfiles/pxlcolor.ppd
pxlcolor.ppd application/vnd.cups-ppd

# http://www.apps.ietf.org/rfc/rfc4716.html#sec-3.6
ssh-public-key.txt text/plain
# http://tools.ietf.org/html/draft-ietf-vcarddav-vcardrev-22
test.vcf text/vcard
# Genie source code
test.gs text/x-genie ox
# Test Go source code
test.go text/x-go oxo
# Qt Quick (QML) file
rectangle.qml text/x-qml
shebang.qml text/x-qml
plugins.qmltypes text/x-qml
text.qmlproject text/x-qml
# QtiPlot (qti) file
test.qti application/x-qtiplot
# Slint file
app-window.slint text/slint
# Sass CSS pre-processor file
test.sass text/x-sass ox
# Scheme source code
# https://bugs.freedesktop.org/show_bug.cgi?id=31534
test.scm text/x-scheme ox
test.ss  text/x-scheme ox
test.scala text/x-scala ox
# Sass CSS pre-processor file
test.scss text/x-scss ox
# https://bugs.freedesktop.org/show_bug.cgi?id=56964
test.jnlp application/x-java-jnlp-file
# Python script
test.py text/x-python
test.pyx text/x-cython ox
# https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/127
test_issue127.py text/x-python ox
# Python 2 script
test2.py text/x-python2 x
test.py2 text/x-python2
# Python 3 script
test3.py text/x-python3 x
test.py3 text/x-python3
test.pyi text/x-python3 ox
# PySide
pyside.py text/x-python
# https://ru.stackoverflow.com/questions/1381587/%d0%9d%d0%b5%d0%bf%d1%80%d0%b0%d0%b2%d0%b8%d0%bb%d1%8c%d0%bd%d0%be-%d1%80%d0%b0%d1%81%d0%bf%d0%be%d0%b7%d0%bd%d0%b0%d1%91%d1%82-py-%d1%84%d0%b0%d0%b9%d0%bb/1381685
not-qml.py text/x-python ox
# SageMath
example_mime.sage text/x-sagemath oxo
# Perl
test.pl application/x-perl
test.pm application/x-perl
test.t application/x-perl
# Not perl https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/155
shell-calls-awk text/x-shellscript x
test.n3 text/n3 ox
# Copied from http://en.wikipedia.org/wiki/Turtle_%28syntax%29#Example
test.ttl text/turtle ox
# Twig template
test.twig text/x-twig ox
# Crystal
test.cr text/x-crystal ox
test.jl text/julia ox
test.rs text/rust
# Copied from http://digital-preservation.github.io/csv-schema/csv-schema-1.0.html#basics
test.csvs text/csv-schema ox
# Copied from http://coffeescript.org/#overview
test.coffee application/vnd.coffeescript ox
# Copied from https://gitlab.com/freedesktop-sdk/freedesktop-sdk/-/blob/master/elements/components/shared-mime-info.bst
test.bst application/buildstream+yaml
# Copied from https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md#applying-security-schemes
test.raml application/raml+yaml
# Created with `echo 'Hello World!' > helloworld.txt && binhex -u helloworld.txt > helloworld.hqx`
helloworld.hqx application/mac-binhex40
# Microsoft Developer Studio (Legacy Visual Studio)
test_vs_project.dsp text/x-ms-visualstudio.project
test_vs_workspace.dsw text/x-ms-visualstudio.workspace

# xml subtypes
../../data/shared-mime-info-spec.xml application/docbook+xml xox
test.ttx application/x-font-ttx
gtk-builder.ui application/x-gtk-builder x
project.glade application/x-glade
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=14085
ISOcyr1.ent application/xml-external-parsed-entity ox
# Copied from http://www.metalinker.org/samples/abiword-setup-2.4.6.exe.metalink
test.metalink application/metalink+xml
# Copied from http://ooo.mirrorbrain.org/contrib/dictionaries/en_US.zip.meta4
en_US.zip.meta4 application/metalink4+xml
test.mml application/mathml+xml ox
# Qt Linguist: https://bugreports.qt.io/browse/QTBUG-64435
linguist.ts text/vnd.trolltech.linguist
test.xsl application/xslt+xml
pom.xml text/x-maven+xml ox
settings.xml text/x-maven+xml ox
test.cbl text/x-cobol ox
# Copied from http://docs.newzbin.com/index.php/Newzbin:NZB_Specs
sample1.nzb application/x-nzb
# Copied from http://www.w3.org/TR/owl2-xml-serialization/#Example_Ontology_.28Informative.29
test.owx application/owl+xml
# Copied from https://en.wikipedia.org/wiki/Portable_Game_Notation#Example
test.pgn application/vnd.chess-pgn
# From KDE kfilemetadata test suite
test_apple_systemprofiler.spx application/x-apple-systemprofiler+xml x
shared-mime-info.its application/its+xml
# From https://www.w3.org/TR/NOTE-HTMLComponents#oncontentchange
oncontentchange.htc text/x-component ox

# Archives
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=14909
test.alz application/x-alz
# Copied from /usr/share/gettext/javaversion.class
test.class application/x-java
# Created with jar from OpenJDK 1.6.0_18-b18
test.jar application/java-archive ox
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=12620
hello.pack application/x-java-pack200
# Copied from http://www.apache.org/dist/httpd/binaries/win32/apache_2.2.9-win32-x86-no_ssl-r2.msi
test.msi application/x-msi
# Created by the Wine test suite: https://gitlab.winehq.org/wine/wine/-/blob/7c45c7c5ebb59237d568a4e5b38626422e670b63/dlls/msi/tests/patch.c#L695
winetest-patch.msp application/microsoftpatch
# Created by building the default blank Universal Windows C++ app in Visual Studio 2022
App1_1.0.0.0_x64.appx application/appx ox
App1_1.0.0.0_x64.appxbundle application/appxbundle ox
App1_1.0.0.0_x64.msix application/msix ox
App1_1.0.0.0_x64.msixbundle application/msixbundle ox
App1_x64.appinstaller application/appinstaller
# Created using 7z
archive.7z application/x-7z-compressed
archive2.7z.001 application/x-7z-compressed
comics.cb7 application/x-cb7 ox
# Created using tar
archive.tar application/x-tar
comics.cbt application/x-cbt ox
# Created using lcab
copying.cab application/vnd.ms-cab-compressed
# XZ test case found in the test cases in the sources
good-1-delta-lzma2.tiff.xz application/x-xz
# https://bugs.freedesktop.org/show_bug.cgi?id=55254
sample.png.lzma application/x-lzma ox
spinboxes-0.1.1-Linux.tar.xz application/x-xz-compressed-tar ox
# Created using brzip Version 0.2.2
test.br application/x-brotli
# Created using GNU tar 1.35 and brzip Version 0.2.2
test.tar.br application/x-brotli-compressed-tar ox
# Created using bzip Version 0.21
test.bz application/x-bzip1
# Created using GNU tar 1.34 and bzip Version 0.21
test.tar.bz application/x-bzip1-compressed-tar ox
# Created using bzip2 Version 1.0.8
test.bz2 application/x-bzip2
# Created using GNU tar 1.35 and bzip2 Version 1.0.8
test.tar.bz2 application/x-bzip2-compressed-tar ox
# Created using bzip3 1.2.2
test.bz3 application/vnd.bzip3
# Created using GNU tar 1.34 and bzip3 1.2.2
test.tar.bz3 application/x-bzip3-compressed-tar ox
# Created using go-car 0.6.3
test.v1.car application/vnd.ipld.car ox
# Created using go-car 2.16.0
test.v2.car application/vnd.ipld.car
# Created using lzip 1.1
test.lz application/x-lzip
# Created using Ark 16.07.70 + libarchive 3.1.2
test.tar.lz application/x-lzip-compressed-tar ox
# Created using lzop 1.02rc1, lzo 2.03
test.lzo application/x-lzop
# Created using rzip 2.1
test.rz application/x-rzip
# Created using GNU tar 1.35 and rzip 2.1
test.tar.rz application/x-rzip-compressed-tar ox
# Created using lrzip 0.45
archive.lrz application/x-lrzip
# Created using lz4 r110
test.lz4 application/x-lz4
# Created using Ark 16.07.70 + libarchive 3.2.0
test.tar.lz4 application/x-lz4-compressed-tar ox
# Created using zpaq v7.15
test.zpaq application/x-zpaq
# Created by zstd v1.3.5
test.zst application/zstd
# Created using Ark 18.11.70 + libarchive 3.3.3
test.tar.zst application/x-zstd-compressed-tar ox
# Copied from http://download.microsoft.com/download/7/e/5/7e58b1ce-d9e6-40e1-9d75-140fe5dd3de6/fuji.themepack
fuji.themepack application/x-windows-themepack ox
# Extracted from http://mozilla.doslash.org/stuff/helloworld.zip
helloworld.xpi application/x-xpinstall ox
# Created using imagex 6.0
test.wim application/x-ms-wim
# Created using Info-ZIP Zip 3.0
test.zip application/zip
# Created using WinZip Pro 26
test.zipx application/zip
# From /usr/lib64/vlc/libcompat.a
libcompat.a application/x-archive
libcompat.ar application/x-archive
# Created with Visual Studio 2022
StaticLib1.lib application/x-archive
# Created by hand
foo-0.1-1.fc18.src.rpm application/x-source-rpm ox
# Created using sharutils 4.11.1
test.uue text/x-uuencode
# From http://cdn.debian.net/debian/pool/main/d/debian-goodies/
debian-goodies_0.63_all.deb application/vnd.debian.binary-package
# Created using qpress 1.1
test.qp application/x-qpress
# Created using pigz 2.3.1
test.zz application/zlib ox
# Created using xar 1.5.2
test.xar application/x-xar
# From https://bugs.freedesktop.org/show_bug.cgi?id=93549
serafettin.rar application/vnd.rar
# From https://github.com/electron/asar/tree/main/test/input
extractthis.asar application/x-asar
# Created using StuffIt Deluxe 7.0
test.sitx application/x-stuffitx
# From https://dl-cdn.alpinelinux.org/alpine/v3.21/main/x86_64/shared-mime-info-doc-2.4-r1.apk
shared-mime-info-doc-2.4-r1.apk application/x-alpine-package-keeper-package xxo

# Audio/Video files
# https://bugs.freedesktop.org/show_bug.cgi?id=20070#c4
test.aiff audio/x-aiff
# Copied from /usr/share/sounds/generic.wav
test.wav audio/vnd.wave
test.avi video/vnd.avi
# https://bugs.freedesktop.org/show_bug.cgi?id=55336
test.avf video/vnd.avi
# Copied from http://modarchive.org/index.php?request=view_by_moduleid&query=155849
hereyes_remake.mo3 audio/x-mo3
# Copied from http://media.annodex.net/cmmlwiki/CCFilm
ccfilm.axv video/annodex oxo
ccfilm.axv application/annodex xox
test.ogg audio/ogg oxx
test.ogg audio/x-vorbis+ogg x
test.opus audio/x-opus+ogg x
# Copied from http://bugzilla.gnome.org/show_bug.cgi?id=566661#c1
msg0001.gsm audio/x-gsm oxo
# Copied from www.freemxf.org
small_wav.mxf application/mxf
# Copied from http://devfiles.myopera.com/articles/1891/custom-controls-webm-360p.html
Elephants_Dream-360p-Stereo.webm video/webm
# http://bugs.freedesktop.org/show_bug.cgi?id=14276#c17
settopbox.ts video/mp2t xo
# https://bugs.freedesktop.org/show_bug.cgi?id=51118
test.ts video/mp2t x
# Bastien's hard drive
bbc.ram application/ram oxo
bbc.ram application/vnd.rn-realmedia xox
# Converted from test.wav
# http://www.datavoyage.com/mpgscript/mpeghdr.htm
# lame --add-id3v2 test.wav test-id3.mp3
test-id3.mp3 audio/mpeg
test-noid3-v1.mp3 audio/mpeg
# lame -p --resample 44.1 test.wav test-noid3-v1-protected.mp3
test-noid3-v1-protected.mp3 audio/mpeg
# lame --resample 24 test.wav test-noid3-v2.mp3
test-noid3-v2.mp3 audio/mpeg
# lame -p --resample 24 test.wav test-noid3-v2-protected.mp3
test-noid3-v2-protected.mp3 audio/mpeg
# lame --resample 12 test.wav test-noid3-v2_5.mp3
test-noid3-v2_5.mp3 audio/mpeg
# lame -p --resample 12 test.wav test-noid3-v2_5-protected.mp3
test-noid3-v2_5-protected.mp3 audio/mpeg
# "Back to the 80s" by Aqua, as purchased on Amazon US
xml-in-mp3.mp3 audio/mpeg
# http://samples.mplayerhq.hu/A-codecs/AAC/ct_faac-adts.aac
ct_faac-adts.aac audio/aac
# http://www.modarchive.org/module.php?38589
break.mtm audio/x-mtm
# http://modarchive.org/module.php?174623
cyborg.med audio/x-med
# http://modarchive.org/module.php?57259
simon.669 audio/x-669
# http://modarchive.org/module.php?61261
4jsno.669 audio/x-669
# http://modarchive.org/module.php?200153
ichwills.ult audio/x-ult
# https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/144
false-positive-669 text/plain x
# Copied from http://modarchive.org/index.php?request=view_by_moduleid&query=177387 (public domain)
stranger_-_run.mod audio/x-mod
# Dynamic Studio module (minimal header only)
test-audio.dsp audio/x-dsp x
# Copied from https://github.com/inAudible-NG/audible-samples
test.aa audio/x-pn-audibleaudio
test.aax audio/vnd.audible.aax
# Audible AAX without embedded file keys (2019 and later)
test.aaxc audio/vnd.audible.aaxc
# MPEG-4 files
mp4v1-video-header.mp4 video/mp4
mp4v2-video-header.mp4 video/mp4
mp4-isom-header.mp4 video/mp4
mp4-iso2-header.mp4 video/mp4
mp4-iso3-header.mp4 video/mp4
mp4-iso4-header.mp4 video/mp4
mp4-iso5-header.mp4 video/mp4

# Disk and CD/DVD images
iso-file.iso application/vnd.efi.iso oxo
bug106330.iso application/vnd.efi.iso oxo
# N+ for PSP truncated to 1Ko
n-plus.cso application/x-compressed-iso
disk.img application/vnd.efi.img oxo
disk.img.xz application/x-raw-disk-image-xz-compressed oxo
disk.raw-disk-image application/vnd.efi.img oxo
disk.raw-disk-image.xz application/x-raw-disk-image-xz-compressed oxo
disk.gpt application/vnd.efi.img xoo
# Disk 1 of the Agony Amiga game truncated to 1Ko
adf-test.adf application/x-amiga-disk-format
# AppImage
Leafpad-0.8.17-x86_64.AppImage application/x-iso9660-appimage x
# AppImage (Type 2)
Leafpad-0.8.18.1.glibc2.4-x86_64.AppImage application/vnd.appimage
# SAP Thomson disk images
ripoux.sap application/x-thomson-sap-image
# HFE disk images
classiq1.hfe application/x-hfe-floppy-image
# Thomson cartridge and cassette formats
blitz.m7 application/x-thomson-cartridge-memo7 oxo
androide.k7 application/x-thomson-cassette oxo

# Commodore emulation formats and disk images
# Saved BASIC "hello world", truncated to 1Ko
commodore-tape-hello-truncated.tap application/x-commodore-tape
# Blasteroids, truncated to just the tape header & first file header
commodore-tape-header.t64 application/x-commodore-tape
# Attack of the Mutant Camels, header-only hex dump example from VICE docs
commodore-cartridge-c64-header.crt application/x-commodore-crt xo
# Formatted floppy and HD images, truncated to just the format header
commodore-disk-header.d90 application/x-commodore-d90-disk
commodore-disk-header.g64 application/x-commodore-g64-disk
commodore-disk-header.g71 application/x-commodore-g71-disk
commodore-disk-header.x64 application/x-commodore-x64-disk
# Magic is possible for these "nomagic" ones, but would be too far in.
# Filled with junk data and hello world BASIC programs, truncated to 1Ko.
commodore-disk-truncated-nomagic.d64 application/x-commodore-d64-disk ox
commodore-disk-truncated-nomagic.d71 application/x-commodore-d71-disk ox
commodore-disk-truncated-nomagic.d81 application/x-commodore-d81-disk ox
commodore-disk-truncated-nomagic.d80 application/x-commodore-d80-disk ox
commodore-disk-truncated-nomagic.d82 application/x-commodore-d82-disk ox

# ZX Spectrum family emulation formats and disk images
# Ricochet (1987) (Z80v1), truncated to 30o (format header only)
spectrum-snapshot-z80v1-header.z80 application/x-spectrum-z80 ox
# Rex (1988) part 2, truncated to 55o (format header only)
spectrum-snapshot-z80v2-header.z80 application/x-spectrum-z80
# 48K ZX BASIC, truncated to 86o (format header only)
spectrum-snapshot-z80v3-header.z80 application/x-spectrum-z80
# 48K ZX BASIC, truncated to 27o (format header only)
spectrum-snapshot-header.sna application/x-spectrum-sna oxo
# 48K ZX BASIC, truncated to 213o (headers only, before 1st RAM page)
spectrum-snapshot-header.szx application/x-spectrum-szx
# Gauntlet (1986), truncated to 86o (format header only)
spectrum-multiload-snapshot-header.slt application/x-spectrum-slt oxo
# Head over Heels (1987), truncated to 39o (header + reqd. creator block)
spectrum-replay-snapshot-header.rzx application/x-spectrum-rzx
spectrum-tape-hello.tzx application/x-spectrum-tzx
spectrum-tape-hello.tap application/x-spectrum-tap xoo
# Myth (1989), truncated to 257o (header only)
spectrum-tape-header.pzx application/x-spectrum-pzx
sinclair-microdrive-hello-truncated.mdr application/x-spectrum-mdr ox
spectrum-plus3-disk-header.dsk application/x-spectrum-dsk
# DISCiPLE and +D system disks, truncated to 256o (1st dir entry)
spectrum-disciple-disk-system3a-truncated.mgt application/x-spectrum-mgt
spectrum-disciple-disk-system3b-truncated.mgt application/x-spectrum-mgt
spectrum-disciple-disk-system3d-truncated.mgt application/x-spectrum-mgt
spectrum-plusd-disk-system2a-truncated.mgt application/x-spectrum-mgt
# DISCiPLE and +D data disks, some bootable, truncated to 256o
spectrum-disciple-disk-empty+boot3b-truncated.mgt application/x-spectrum-mgt
spectrum-disciple-disk-hello+boot3b-truncated.mgt application/x-spectrum-mgt
spectrum-plusd-disk-justhello-truncated.mgt application/x-spectrum-mgt oxo
# Atomix, truncated to 512o (boot sector only)
spectrum-ditaktik-disk-header.d40 application/x-spectrum-d80 o
# Jet Story, truncated to 512o (boot sector only)
spectrum-ditaktik-disk-header.d80 application/x-spectrum-d80 x
spectrum-hard-disk-header.hdf application/x-spectrum-hdf

# Video game ROMs
# Super Tank truncated to 1Ko
sg1000-test.sg application/x-sg1000-rom ox
# Sonic the Hedgehog truncated to 1Ko
sms-test.sms application/x-sms-rom ox
# Sonic the Hedgehog: Triple Trouble truncated to 1Ko
game-gear-test.gg application/x-gamegear-rom ox
# Pitfall - The Mayan Adventure [non-interleaved "BIN"] truncated to 1Ko
sega-binfmt-1-genesis.bin application/x-genesis-rom x
# QuackShot Starring Donald Duck [interleaved "SMD"] truncated to 1Ko
sega-smdfmt-1-megadrive.smd application/x-genesis-rom-smd
# The Ren & Stimpy Show Presents: Stimpy's Invention [BIN] truncated to 1Ko
sega-binfmt-2-megadrive.gen application/x-genesis-rom
# Sonic the Hedgehog [BIN] truncated to 1Ko
sega-binfmt-3-megadrive.gen application/x-genesis-rom
# Sega Channel Revival v3 [BIN] truncated to 1Ko
sega-binfmt-4-ssf.gen application/x-genesis-rom
sega-binfmt-4-ssf.md application/x-genesis-rom x
# Sword of Vermilion [BIN] truncated to 1Ko
sega-binfmt-5-megadrive-underscores.bin application/x-genesis-rom xo
# Chaotix [BIN] truncated to 1Ko
sega-binfmt-6-sega32x.32x application/x-genesis-32x-rom
# Sonic the Hedgehog's Gameworld [BIN] truncated to 1Ko
sega-binfmt-7-segapico.bin application/x-sega-pico-rom x
# Kirby's Dream Land truncated to 1Ko
game-boy-test.gb application/x-gameboy-rom
# The Legend of Zelda: Link's Awakening truncated to 1Ko
game-boy-color-test.gbc application/x-gameboy-color-rom
# Monkey Ball for Naomi truncated to 1Ko
gds-0008.chd application/x-mame-chd
# Sonic CD truncated to 1Ko
sega-binfmt-8-segacd.iso application/x-sega-cd-rom x
# NiGHTS into Dreams truncated to 1Ko
saturn-test.bin application/x-saturn-rom x
# Samba de Amigo track 1 truncated to 1Ko
dreamcast-us-samba-de-amigo-track-1.bin application/x-dreamcast-rom x
m64p_test_rom.n64 application/x-n64-rom
m64p_test_rom.v64 application/x-n64-rom
m64p_test_rom.z64 application/x-n64-rom
# TLoZ Twilight Princess (Wii), skeletonized and truncated to 1Ko
wii.rvz application/x-wii-rom o
wii.wia application/x-wii-rom o
# TLoZ Twilight Princess (GameCube), skeletonized and truncated to 1Ko
gamecube.rvz application/x-gamecube-rom x
gamecube.wia application/x-gamecube-rom x
# Castlevania: The Adventure Rebirth truncated to 1Ko
wii.wad application/x-wii-wad x
# Mariobros from Atari 7800 truncated to 1Ko
atari-7800-test.A78 application/x-atari-7800-rom
# Samurai Shodown truncated to 1Ko
neo-geo-pocket-test.ngp application/x-neo-geo-pocket-rom
# Sonic the Hedgehog - Pocket Adventure truncated to 1Ko
neo-geo-pocket-color-test.ngc application/x-neo-geo-pocket-color-rom
# Pac-Man from Atari 2600 truncated to 1Ko
atari-2600-test.A26 application/x-atari-2600-rom ox
# Metroid truncated to 1Ko
Metroid_japan.fds application/x-fds-disk
# Chip's Challenge for Atari Lynx truncated to 1Ko
atari-lynx-chips-challenge.lnx application/x-atari-lynx-rom
# Rockman & Forte for WonderSwan truncated to 1Ko
wonderswan-rockman-forte.ws application/x-wonderswan-rom ox
# Hataraku Chocobo for WonderSwan Color truncated to 1Ko
wonderswan-color-chocobo.wsc application/x-wonderswan-color-rom ox
# Penguin Adventure for MSX truncated to 1Ko
msx-penguin-adventure.msx application/x-msx-rom ox
# Metal Gear for MSX 2 truncated to 1Ko
msx2-metal-gear.msx application/x-msx-rom ox
# Wario Land for Virtual Boy truncated to 1Ko
virtual-boy-wario-land.vb application/x-virtual-boy-rom ox
# Advance Wars, truncated to 12o
nintendo-gba-rom-to-sig.gba application/x-gba-rom
# Plants vs Zombies truncated to 200o
nintendo-ds-rom-to-sig.nds application/vnd.nintendo.nitro.rom
# The Legend of Zelda: Majora's Mask 3D truncated to 1Ko
3ds-tloz-mm.3ds application/x-nintendo-3ds-rom
# TSI9 truncated to 1Ko
3ds-tsi9.3dsx application/x-nintendo-3ds-executable
# Wonder Boy 3, Dragon's Trap, truncated to 512 bytes
nintendo-switch-encrypted.xci application/x-nintendo-switch-xci

# Video game packages
# DOOM1.WAD trucated to 1Ko
IWAD.WAD application/x-doom-wad
# ICARUS.WAD trucated to 1Ko
PWAD.WAD application/x-doom-wad

# Fantasy console cartridges, binary programs, and program source
# Custom example code for XDG, under the same license
helloworld.ch8 application/x-chip8-program ox
helloworld.8o application/x-chip8-octo-source ox
helloworld.nx application/x-lowresnx-program ox
helloworld.tic application/x-tic80-item ox
helloworld.p8 application/x-pico8-source xoo
helloworld.p8.rom application/x-pico8-rom oxo
helloworld-tiny.p8.rom application/x-pico8-rom ooo

# Models
cube.igs model/iges
cube.wrl model/vrml
# Copied from https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/BoxInterleaved/glTF-Binary/BoxInterleaved.glb
test.glb model/gltf-binary
# Copied from https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/TriangleWithoutIndices/glTF/TriangleWithoutIndices.gltf
test.gltf model/gltf+json ox

# other
text.pdf application/pdf
text.wwf application/x-wwf oxo
README.pdf application/pdf
# From https://bugs.freedesktop.org/show_bug.cgi?id=29083#c2
testcase.is-really-a-pdf application/pdf xo
pdf-not-matlab application/pdf x
# Created using lzip 1.18
test.pdf.lz application/x-lzpdf ox
test.pdf.xz application/x-xzpdf ox
Makefile text/x-makefile ox
Makefile.gnu text/x-makefile ox
Dockerfile text/x-dockerfile
test.Dockerfile text/x-dockerfile
googleearth.kml application/vnd.google-earth.kml+xml ox
# Created using geojson.io
test.geojson application/geo+json ox
test.geo.json application/geo+json ox
# Copied from https://en.wikipedia.org/wiki/GPS_Exchange_Format
test.gpx application/gpx+xml ox
# Copied from http://wiki.openstreetmap.org/wiki/GPX
test10.gpx application/gpx+xml ox
# Copied from http://bugs.freedesktop.org/show_bug.cgi?id=15260
test.gnd application/gnunet-directory
# Copied from https://bugs.freedesktop.org/show_bug.cgi?id=27441
markdown.md text/markdown oxo
# Copied from https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/138
README-pandoc-flavored-markdown.md text/markdown ox
# Manually assembled from formatting examples at https://en.wikipedia.org/wiki/ReStructuredText
reStructuredText.rst text/x-rst ox
text.ps application/postscript
text.ps.gz application/x-gzpostscript ox
text1.PS.gz application/x-gzpostscript oxo
test.cmake text/x-cmake ox
meson.build text/x-meson ox
meson_options.txt text/x-meson ox
meson.options text/x-meson ox
bluerect.mdi image/vnd.ms-modi
# FictionBook eBook files
Stallman_Richard_-_The_GNU_Manifesto.fb2 application/x-fictionbook+xml
Stallman_Richard_-_The_GNU_Manifesto.fb2.zip application/x-zip-compressed-fb2
test.p7b application/x-pkcs7-certificates ox
empty.cat application/vnd.ms-pki.seccat ox
test.pkipath application/pkix-pkipath ox
test.jks application/x-java-keystore
test.jceks application/x-java-jce-keystore
test.p12 application/pkcs12 ox
# Copied from https://letsencrypt.org/certs/lets-encrypt-r3.pem
test.cer application/pkix-cert
test.crt application/pkix-cert
# https://letsencrypt.org/certs/lets-encrypt-r3.pem with header and footer modified to contain X509
test-x509.cer application/pkix-cert
# https://letsencrypt.org/certs/lets-encrypt-r3.pem with header and footer modified to contain CA
test-ca.crt application/x-x509-ca-cert x
# https://letsencrypt.org/certs/lets-encrypt-r3.pem with header and footer modified to contain TRUSTED
test-trusted.crt application/x-x509-ca-cert x
# curl https://crl.root-x1.letsencrypt.org | openssl crl -inform DER -out test.crl
test.crl application/pkix-crl
test.sav application/x-spss-sav
test.por application/x-spss-por
core application/x-core ox
# Copied from xcalib, http://xcalib.sourceforge.net/
bluish.icc application/vnd.iccprofile
# Generated by hand
test.it87 application/x-it87
test.hdf4 application/x-hdf
test.h5 application/x-hdf
# From http://wiki.wireshark.org/SampleCaptures (ancp.pcap.gz, dns.cap)
ancp.pcap application/vnd.tcpdump.pcap
dns.cap application/vnd.tcpdump.pcap
# From https://github.com/hadrielk/pcapng-test-generator
test001.pcapng application/x-pcapng
test001_be.pcapng application/x-pcapng
# From https://github.com/falcosecurity/libs/
curl_google.scap application/x-pcapng
# Created using Shalom Help Maker
test.hlp application/winhlp
# Case-insensitive glob
testcompress.z application/x-compress
one-file.tnef application/vnd.ms-tnef
# Generated by hand
test.ccmx application/x-ccmx
# Generated from test-gettext.c with `xgettext -k_ -o test.pot test-gettext.c`
test.pot text/x-gettext-translation-template x
# Generated from test-en.po with `msgfmt -o test-en.mo test-en.po`
test-en.mo application/x-gettext-translation
# Copied from https://fedorahosted.org/releases/l/i/liberation-fonts/liberation-fonts-ttf-2.00.1.tar.gz
LiberationSans-Regular.ttf font/ttf
# Converted from LiberationSans-Regular.ttf with http://ttf2woff.com/
LiberationSans-Regular.woff font/woff
test.pfr application/font-tdpfr
nrl.trig application/trig oxo
# Copied from http://git.savannah.gnu.org/cgit/gnash.git/plain/testsuite/samples/subshapes.swf
subshapes.swf application/vnd.adobe.flash.movie
# Extracted from http://archive.debian.org/debian/pool/main/g/grub2/grub-efi_1.96+20080724-16_i386.deb
pci.mod application/x-object x
# PIE executable https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/11
ls application/x-executable x
# ELF shared library
libldap-2.4.so.2 application/x-sharedlib oxo
boardingpass.pkpass application/vnd.apple.pkpass
boardingpasses.pkpasses application/vnd.apple.pkpasses
# AppImage created by following https://appimage-builder.readthedocs.io/en/latest/intro/tutorial.html
appimage-demo-qt5-latest-x86_64.AppImage application/vnd.appimage
# DOS/Windows batch file
hello.cmd application/x-bat
hello.bat application/x-bat
# DOS executable
helloworld-dos.exe application/x-dosexec x
# DOS/4G executable, compiled with `owcc -bdos4g helloworld.c -o helloworld-dos4g.exe`
helloworld-dos4g.exe application/x-lx-executable x
# 16-bit Windows executable
helloworld-win16.exe application/x-ms-ne-executable x
# 32-bit Windows executable
helloworld-win32.exe application/vnd.microsoft.portable-executable x
# Windows object file, compiled with `x86_64-w64-mingw32-gcc -c helloworld.c -o helloworld-win64.obj`
helloworld-win64.obj application/x-coff
# Generated with `cd /tmp && x86_64-w64-mingw32-clang -shared -fuse-ld=lld -Wl,--pdb=empty.pdb -x c /dev/null`
empty.pdb application/x-ms-pdb x
C.lnk application/x-ms-shortcut
# WASM module https://rustwasm.github.io/wasm-bindgen/exbuild/add/53356255c2705a766855.module.wasm
add.wasm application/wasm

hello.xdgapp application/vnd.flatpak
hello.flatpak application/vnd.flatpak
gnome.flatpakrepo application/vnd.flatpak.repo
gedit.flatpakref application/vnd.flatpak.ref
image.sqsh application/vnd.squashfs
example_42_all.snap application/vnd.snap ox
# Created with bsdiff 4.3
test.bsdiff application/x-bsdiff
# Generated with sqlite3 3.19.3
test.sqlite3 application/vnd.sqlite3
# Generated with sqlite 2.8.17
test.sqlite2 application/x-sqlite2
COPYING-encrypted.asc application/pgp-encrypted xoo
# clear text signatures should not have the same mime type as detached signatures
COPYING-clearsign.asc application/pgp-signature xxx
COPYING-clearsign.asc application/pgp-keys xxx
COPYING.asc application/pgp-signature xoo
test-public-key.asc application/pgp-keys xoo
test-secret-key.skr application/pgp-keys ooo
test-secret-key.asc application/pgp-keys xoo
# not all *.key should be detected as Apple Keynote
test-secret.key application/pgp-keys x
test-garbage.key application/octet-stream xox

# copied from https://bitbucket.org/scons/scons/raw/f0d4664d36f8a4d4da53178cf947c86c86db3cb7/SConstruct
SConstruct text/x-scons oxo
#copied from https://sourceforge.net/p/wesnoth/code/ci/master/tree/src/SConscript?format=raw
SConscript text/x-scons oxo
# copied from https://raw.githubusercontent.com/mongodb/mongo/master/SConscript.buildinfo
SConscript.buildinfo text/x-scons oxo

# Source code
cplusplusfile.C text/x-c++src oxo
cfile.c text/x-csrc oxo
test-gettext.c text/x-csrc ox
helloworld.c text/x-csrc ox
helloworld.s text/x-asm

# Common Lisp source code
common-lisp.asd text/x-common-lisp oxo
common-lisp.fasl text/x-common-lisp oxo
common-lisp.lisp text/x-common-lisp oxo
common-lisp.ros text/x-common-lisp oxo

# Source version control / SCM / Source Control Management
git-bundle-v2.bundle application/x-git-bundle
git-bundle-v3.bundle application/x-git-bundle

# systemd units
systemd.automount text/x-systemd-unit
systemd.device text/x-systemd-unit
systemd.mount text/x-systemd-unit
systemd.path text/x-systemd-unit
systemd.scope text/x-systemd-unit
systemd.service text/x-systemd-unit xoo
systemd.slice text/x-systemd-unit
systemd.socket text/x-systemd-unit
systemd.swap text/x-systemd-unit
systemd.target text/x-systemd-unit
systemd.timer text/x-systemd-unit
dbus.service text/x-systemd-unit xxx
dbus-comment.service text/x-systemd-unit xxx

# D-Bus services
dbus.service text/x-dbus-service
dbus-comment.service text/x-dbus-service

# QBrew recipe
robust_porter.qbrew application/x-qbrew ox

# 3D models and GCODEs
# "cube(10);" exported by OpenSCAD
cube.3mf model/3mf ox
binary.stl model/stl oxo
ascii.stl model/stl
# from https://www.nist.gov/document/nist-ftc-test-case-definitions
nist_ftc_11_asme1_rb.stp model/step
test.gcode text/x.gcode ox
20mm_Box.gx text/x-gcode-gx
# Converted from binary.stl with Blender
test.obj model/obj x
test.mtl model/mtl
# from https://www.printables.com/model/1283304-mac-classic-bezel/files
bezel-v3-short-edge.amf application/x-amf oxo
bezel-v3-short-edge-uncompressed.amf application/x-amf oxo

# Virtualization disk images
disk.qcow2 application/x-qemu-disk
# qemu-img convert -O qed disk.qcow2 disk.qed
disk.qed application/x-qed-disk
# qemu-img convert -O vpc disk.qcow2 disk.vhd
disk.vhd application/x-vhd-disk x
# qemu-img convert -O vhdx disk.qcow2 disk.vhdx # (first 1024 bytes of 128MB)
disk.vhdx application/x-vhdx-disk
# qemu-img convert -O vmdk disk.qcow2 disk.vmdk
disk.vmdk application/x-vmdk-disk
# qemu-img convert -O vdi disk.qcow2 disk.vdi
disk.vdi application/x-vdi-disk
# http://download.cirros-cloud.net/0.5.1/cirros-0.5.1-x86_64-disk.img converted
# to .vdi with qemu-img, imported to VirtualBox, exported as OVF 2.0, first kB
disk.ova application/ovf

# ROM hack scene patching formats
SLA.bps application/x-bps-patch
FF6FR.IPS application/x-ips-patch

# PySpread spreadsheet
test.pys application/x-pyspread-bz-spreadsheet oxo
test.pysu application/x-pyspread-spreadsheet

# Dart source code
test.dart application/vnd.dart oxo

# Godot files
project.godot application/x-godot-project ox
test.res application/x-godot-resource ox
test.tres application/x-godot-resource
test.scn application/x-godot-scene ox
test.tscn application/x-godot-scene
test.escn application/x-godot-scene
test.gdshader application/x-godot-shader ox
test.gd application/x-gdscript ox

# Kotlin source code
test.kt text/x-kotlin

# Device Tree Source
devicetree1.dts text/x-devicetree-source xoo
devicetree2.dts text/x-devicetree-source xoo
devicetree.dtsi text/x-devicetree-source

# Flattened Device Tree (binary)
# dtc -I dts -O dtb -o test.dtb test1.dts
devicetree.dtb text/x-devicetree-binary

# AV1 Image File Format (AVIF)
# https://aomediacodec.github.io/av1-avif/
test.avif image/avif
test.avifs image/avif

# QOI - The "Quite OK Image Format"
# https://github.com/phoboslab/qoi
rgb.qoi image/qoi
rgba.qoi image/qoi

# HEJ2 - Encapsulation of JPEG 2000 images into ISO/IEC 23008-12
# https://www.itu.int/rec/T-REC-T.815-202106-I/en
test.hej2 image/hej2k

# AVCI - AVC/H.264 compressed image in HEIF container
# https://www.iana.org/assignments/media-types/image/avci
test.avci image/avci

# LMDB (#168), file generated by baloo's basicindexingjobtest (LGPL)
data.mdb application/x-lmdb x
# MS Access DB, copied from Qt5's qtbase/tests/auto/sql/kernel/qsqldatabase/testdata/qtest.mdb (LGPL)
msaccess.mdb application/vnd.ms-access
# Apache Parquet file, created with pyarrow
empty.parquet application/vnd.apache.parquet

1EO8.pdb chemical/x-pdb

# Org-mode file
test.org text/org ox
# OpenZIM file
test.zim application/x-openzim
# SPARQL query
test.qs application/sparql-query
# SPARQL query results
test.srx application/sparql-results+xml ox

# Tiled files
tiledsample/tiled_sample.tmx application/x-tiled-tmx ox
tiledsample/tiled_sample.tsx application/x-tiled-tsx ox

# Modrinth Modpack
test.mrpack application/x-modrinth-modpack+zip ox

# ERIS link file
# https://eris.codeberg.page/eer/linkfile.xml
test.eris application/x-eris-link+cbor

# Bourne-compatible shell scripts
shscript.sh text/x-shellscript
bashscript.sh text/x-shellscript
zshscript.sh text/x-shellscript

# Other, non-Bourne shells
# file/libmagic calls this text/x-shellscript too, but we've always made a
# distinction because the interpreter is different.
tcshscript.csh text/x-csh

# Fish script
fishscript.sh application/x-fishscript xox
fishscript.fish application/x-fishscript

# Nu script
nuscript.sh application/x-nuscript xox
nuscript.nu application/x-nuscript

# sed
sedscript.sed text/x-sed

# Awk and derivatives
awk-prog.awk text/x-awk
awk-prog-nawk.awk text/x-nawk x
awk-prog-gawk.awk text/x-gawk x

# Things that start with unknown shebangs are either application/octet-stream,
# or, heuristically, text/plain if they have enough printable chars.
unknown-shebang-text1 text/plain x
unknown-shebang-text2 text/plain x
unknown-shebang-text3 text/plain x
unknown-shebang-binary application/octet-stream

# Perf Data file
perf.data application/x-perf-data

# Blueprint (https://gitlab.gnome.org/jwestman/blueprint-compiler)
blueprint.blp text/x-blueprint ox

# Nim source code
test.nim text/x-nim ox
test.nims text/x-nimscript ox
test.nimble text/x-nimscript ox

# Typst document
test.typ text/vnd.typst ox

# OpenSSH public keys
id_ecdsa.pub text/x-ssh-public-key x
id_ed25519.pub text/x-ssh-public-key x
id_rsa.pub text/x-ssh-public-key x

# OpenSSH private keys (no extension, filename based lookup should fail)
id_ed25519 text/x-ssh-private-key x

# PCB Fabrication data transfer formats
# Both GIMP brush and Gerber files share the glob for .gbr, so we can't use filename-based
# tests here because the files are identified as GIMP brushes using the glob.
pcb-gerber.gbr application/vnd.gerber x
pcb-gerber.gts application/vnd.gerber x
pcb-gerber-CommentNoExt application/vnd.gerber x
pcb-gerber-FSLANoExt application/vnd.gerber x
pcb-gerber-G75NoExt application/vnd.gerber x
pcb-gerber-MONoExt application/vnd.gerber x
pcb-gerber-TFNoExt application/vnd.gerber x

pcb-gerberjob.gbrjob application/x-gerber-job ox

pcb-drillFile.drl application/x-excellon
pcb-drillFileNoExt application/x-excellon x

# AppStream software component
test.metainfo.xml application/x-freedesktop-appstream-component ox
# AppStream releases information
test.releases.xml application/x-freedesktop-appstream-releases ox

# NSIS Script
installer.nsi text/x-nsis ox

# PAC script
proxy.pac application/x-ns-proxy-autoconfig

# SBOM files
# https://github.com/spdx/spdx-examples/blob/master/presentations/OSS-NA-2023/SPDXVersion2.3/01-MinimalSBOM.json
test.spdx.json application/spdx+json ox
# test.spdx.json converted using https://tools.spdx.org/app/convert/
test.spdx text/spdx
# https://raw.githubusercontent.com/CycloneDX/bom-examples/refs/heads/master/SBOM/cern-lhc-vdm-editor-e564943/bom.json
test.cdx.json application/vnd.cyclonedx+json ox
# https://raw.githubusercontent.com/CycloneDX/bom-examples/refs/heads/master/SBOM/cern-lhc-vdm-editor-e564943/bom.xml
test.cdx.xml application/vnd.cyclonedx+xml ox

# SF3 files
# https://shirakumo.org/projects/sf3/tree/master/samples
sf3/blend.vec.sf3 image/x.sf3-vector
sf3/combine.phys.sf3 model/x.sf3-physics
sf3/f4-44100-2.au.sf3 audio/x.sf3
sf3/markup.txt.sf3 application/x.sf3-text
sf3/multi-text.ar.sf3 application/x.sf3-archive
sf3/pbr-quad.mod.sf3 model/x.sf3
sf3/rgb-u8-1x1.img.sf3 image/x.sf3
sf3/two-chunks.log.sf3 application/x.sf3-log
sf3/two-rows.tab.sf3 application/x.sf3-table

# PlantUML files
test.uml.puml text/vnd.plantuml
test.json.puml text/vnd.plantuml
test.yaml.puml text/vnd.plantuml
test.ebnf.puml text/vnd.plantuml
test.regex.puml text/vnd.plantuml
test.nw.puml text/vnd.plantuml
test.salt.puml text/vnd.plantuml
test.ditaa.puml text/vnd.plantuml
test.gantt.puml text/vnd.plantuml
test.chrono.puml text/vnd.plantuml
test.mindmap.puml text/vnd.plantuml
test.wbs.puml text/vnd.plantuml
test.chen.puml text/vnd.plantuml
test.chart.puml text/vnd.plantuml
test.files.puml text/vnd.plantuml
