file/tests
Christos Zoulas 0780fe5abe PR/562: jsummers: Search/regex offsets are absolute to the beginning of the
file, so adjust them by subtracting the offset that the "use" starts so that
we don't double-count it.
2024-11-10 18:33:17 +00:00
..
.cvsignore PR/354: Fix stray ^M's 2014-05-14 23:32:30 +00:00
android-vdex-1.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
android-vdex-1.testfile Support android vdex files from Kvist, Håkan: 2020-11-21 15:57:07 +00:00
android-vdex-2.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
android-vdex-2.testfile Support android vdex files from Kvist, Håkan: 2020-11-21 15:57:07 +00:00
arj.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
arj.testfile new arj test 2022-02-14 16:47:05 +00:00
bcachefs2.result Add missing newline for Jose Luis Duran 2023-10-31 22:03:36 +00:00
bcachefs2.testfile new bcachefs support from thomas at t-8ch dot de 2023-02-20 16:23:19 +00:00
bcachefs.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
bcachefs.testfile New bcachefs magic from Thomas Weißschuh 2021-04-11 21:06:21 +00:00
cl8m8ocofedso.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
cl8m8ocofedso.testfile new test from Andrew Childs 2019-07-05 19:21:18 +00:00
cmd1.result Interpreter checks 2022-10-09 17:50:48 +00:00
cmd1.testfile Interpreter checks 2022-10-09 17:50:48 +00:00
cmd2.result Interpreter checks 2022-10-09 17:50:48 +00:00
cmd2.testfile Interpreter checks 2022-10-09 17:50:48 +00:00
cmd3.result Interpreter checks 2022-10-09 17:50:48 +00:00
cmd3.testfile Interpreter checks 2022-10-09 17:50:48 +00:00
cmd4.result Interpreter checks 2022-10-09 17:50:48 +00:00
cmd4.testfile Interpreter checks 2022-10-09 17:50:48 +00:00
CVE-2014-1943.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
CVE-2014-1943.testfile Add test case for CVE-2014-1943 (thanks, Christoph Biedl) 2014-02-14 20:43:48 +00:00
dsd64-dff.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
dsd64-dff.testfile New magic from Toni Ruottu 2022-08-28 08:58:20 +00:00
dsd64-dsf.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
dsd64-dsf.testfile New magic from Toni Ruottu 2022-08-28 08:58:20 +00:00
escapevel.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
escapevel.testfile Change test harness so that it uses the main magic file, rather than 2014-01-06 17:46:23 +00:00
ext4.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
ext4.testfile Fix regression after unsigned/signed printing changes by making types unsigned 2021-04-04 17:46:17 +00:00
fit-map-data.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
fit-map-data.testfile Add test data for FIT map from Francis Irving (bug #358) 2014-06-30 14:31:20 +00:00
gedcom.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
gedcom.testfile Add the beginnings of a test suite, based on test.c. 2008-02-24 00:55:49 +00:00
gpkg-1-zst.result Add the package name (Michal Gorny) 2022-09-09 15:14:45 +00:00
gpkg-1-zst.testfile Avoid detecting gpkg files as tar archives (Michal Gorny). 2022-09-07 14:16:33 +00:00
hddrawcopytool.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
hddrawcopytool.testfile HDD Raw copy tool from Benjamin Vanheuverzwijn 2017-07-21 10:34:41 +00:00
hello-racket_rkt.result Racket magic from Haelwenn (lanodan) Monnier 2023-02-04 18:47:15 +00:00
hello-racket_rkt.testfile Racket magic from Haelwenn (lanodan) Monnier 2023-02-04 18:47:15 +00:00
HWP97.hwp.result PR/418: joveler: new tests for HWP 2023-01-24 20:24:43 +00:00
HWP97.hwp.testfile PR/418: joveler: new tests for HWP 2023-01-24 20:24:43 +00:00
HWP2016.hwp.result PR/418: joveler: new tests for HWP 2023-01-24 20:24:43 +00:00
HWP2016.hwp.testfile PR/418: joveler: new tests for HWP 2023-01-24 20:24:43 +00:00
HWP2016.hwpx.zip.result PR/418: joveler: new tests for HWP 2023-01-24 20:24:43 +00:00
HWP2016.hwpx.zip.testfile PR/418: joveler: new tests for HWP 2023-01-24 20:24:43 +00:00
issue311docx.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
issue311docx.testfile Simplify adding a new test. 2014-01-06 18:17:30 +00:00
issue359xlsx.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
issue359xlsx.testfile Add regression test for issue 359 2016-06-07 23:36:26 +00:00
jpeg-text.result Add regression test for PR/396 2022-10-18 14:12:01 +00:00
jpeg-text.testfile Add regression test for PR/396 2022-10-18 14:12:01 +00:00
json1.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
json1.testfile Add more tests 2018-08-11 12:12:39 +00:00
json2.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
json2.testfile Add more tests 2018-08-11 12:12:39 +00:00
json3.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
json3.testfile Add more tests 2018-08-11 12:12:39 +00:00
json4.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
json4.testfile PR/332: vinc: Fix misdetection of text file that start with valid json, 2022-04-04 17:47:45 +00:00
json5.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
json5.testfile PR/332: vinc: Fix misdetection of text file that start with valid json, 2022-04-04 17:47:45 +00:00
json6.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
json6.testfile PR/354: vinc17: Detect empty array with spaces. 2022-06-10 14:14:21 +00:00
json7.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
json7.testfile PR/356: Fix JSON constant parsing (davewhite) 2022-07-04 16:18:13 +00:00
json8.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
json8.testfile PR/356: Fix JSON constant parsing (davewhite) 2022-07-04 16:18:13 +00:00
jsonlines1.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
jsonlines1.testfile new jsonlines test 2022-07-07 17:25:08 +00:00
JW07022A.mp3.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
JW07022A.mp3.testfile add new mp3 test 2018-04-24 23:16:20 +00:00
keyman-0.result PR/535: srl295: add Keyman support 2024-06-19 16:05:52 +00:00
keyman-0.testfile PR/535: srl295: add Keyman support 2024-06-19 16:05:52 +00:00
keyman-1.result PR/535: srl295: add Keyman support 2024-06-19 16:05:52 +00:00
keyman-1.testfile PR/535: srl295: add Keyman support 2024-06-19 16:05:52 +00:00
keyman-2.result PR/535: srl295: add Keyman support 2024-06-19 16:05:52 +00:00
keyman-2.testfile PR/535: srl295: add Keyman support 2024-06-19 16:05:52 +00:00
Makefile.am PR/562: jsummers: Search/regex offsets are absolute to the beginning of the 2024-11-10 18:33:17 +00:00
matilde.arm.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
matilde.arm.testfile PR/122: roramirez: Add test for Adaptive Multi-Rate Codec (GSM telephony) format 2019-11-19 05:39:31 +00:00
multiple-A.magic Add multiple magic with continuation test 2022-10-09 16:45:12 +00:00
multiple-B.magic Add multiple magic with continuation test 2022-10-09 16:45:12 +00:00
multiple.flags Add multiple magic with continuation test 2022-10-09 16:45:12 +00:00
multiple.result reorder. 2024-06-19 16:25:39 +00:00
multiple.testfile Add multiple magic with continuation test 2022-10-09 16:45:12 +00:00
pcjr.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
pcjr.testfile new pcjr catridge magic from Francis Laniel 2021-01-09 15:09:58 +00:00
pgp-binary-key-v2-phil.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
pgp-binary-key-v2-phil.testfile Add testfile 2021-03-31 00:26:00 +00:00
pgp-binary-key-v3-lutz.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
pgp-binary-key-v3-lutz.testfile Add more testfiles 2021-03-31 00:26:54 +00:00
pgp-binary-key-v4-dsa.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
pgp-binary-key-v4-dsa.testfile Add more testfiles 2021-03-31 00:26:54 +00:00
pgp-binary-key-v4-ecc-no-userid-secret.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
pgp-binary-key-v4-ecc-no-userid-secret.testfile Add more testfiles 2021-03-31 00:26:54 +00:00
pgp-binary-key-v4-ecc-rev.result Add more testfiles 2021-03-31 00:26:54 +00:00
pgp-binary-key-v4-ecc-secret-key.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
pgp-binary-key-v4-ecc-secret-key.testfile Add more testfiles 2021-03-31 00:26:54 +00:00
pgp-binary-key-v4-rsa-key.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
pgp-binary-key-v4-rsa-key.testfile Add more testfiles 2021-03-31 00:26:54 +00:00
pgp-binary-key-v4-rsa-no-userid-rev.result Add more testfiles 2021-03-31 00:26:54 +00:00
pgp-binary-key-v4-rsa-no-userid-secret.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
pgp-binary-key-v4-rsa-no-userid-secret.testfile Add more testfiles 2021-03-31 00:26:54 +00:00
pgp-binary-key-v4-rsa-secret-key.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
pgp-binary-key-v4-rsa-secret-key.testfile Add more testfiles 2021-03-31 00:26:54 +00:00
pnm1.result pnm tests 2022-10-09 19:09:54 +00:00
pnm1.testfile pnm tests 2022-10-09 19:09:54 +00:00
pnm2.result pnm tests 2022-10-09 19:09:54 +00:00
pnm2.testfile pnm tests 2022-10-09 19:09:54 +00:00
pnm3.result fix result 2022-10-15 16:08:20 +00:00
pnm3.testfile pnm tests 2022-10-09 19:09:54 +00:00
README Simplify adding a new test. 2014-01-06 18:17:30 +00:00
regex-eol.magic Add more tests 2018-08-11 12:12:39 +00:00
regex-eol.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
regex-eol.testfile Add more tests 2018-08-11 12:12:39 +00:00
registry-pol.result new magic from Yuuta Liang 2023-06-24 16:23:59 +00:00
registry-pol.testfile new magic from Yuuta Liang 2023-06-24 16:23:59 +00:00
rpm-v3.0-bin-aarch64.result Add missing tests. 2023-11-05 17:20:41 +00:00
rpm-v3.0-bin-aarch64.testfile Add missing tests. 2023-11-05 17:20:41 +00:00
rpm-v3.0-bin-powerpc64.result Add tests for RPM architectures (Petr Pisar) 2023-10-31 21:45:41 +00:00
rpm-v3.0-bin-powerpc64.testfile Add missing tests. 2023-11-05 17:20:41 +00:00
rpm-v3.0-bin-s390x.result Add tests for RPM architectures (Petr Pisar) 2023-10-31 21:45:41 +00:00
rpm-v3.0-bin-s390x.testfile Add missing tests. 2023-11-05 17:20:41 +00:00
rpm-v3.0-bin-x86_64.result Add tests for RPM architectures (Petr Pisar) 2023-10-31 21:45:41 +00:00
rpm-v3.0-bin-x86_64.testfile Add missing tests. 2023-11-05 17:20:41 +00:00
rpm-v3.0-src.result Add tests for RPM architectures (Petr Pisar) 2023-10-31 21:45:41 +00:00
rpm-v3.0-src.testfile Add missing tests. 2023-11-05 17:20:41 +00:00
searchbug.magic PR/562: jsummers: Search/regex offsets are absolute to the beginning of the 2024-11-10 18:33:17 +00:00
searchbug.result PR/562: jsummers: Search/regex offsets are absolute to the beginning of the 2024-11-10 18:33:17 +00:00
searchbug.testfile PR/562: jsummers: Search/regex offsets are absolute to the beginning of the 2024-11-10 18:33:17 +00:00
test.c PR/416: thesamesam: make sure tests are ran in UTC. 2023-01-24 20:37:05 +00:00
uf2.result Adjust for magic change (Anthony Steinhauser) 2024-07-19 18:49:39 +00:00
uf2.testfile new uf2 magic from Blake Ramsdell 2021-04-24 19:58:24 +00:00
utf16xmlsvg.result New test 2023-08-05 14:33:59 +00:00
utf16xmlsvg.testfile New test 2023-08-05 14:33:59 +00:00
xclbin.result ready for 5.44 2022-12-26 18:18:22 +00:00
xclbin.testfile ready for 5.44 2022-12-26 18:18:22 +00:00
zstd-3-skippable-frames.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-dictionary-0.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-dictionary-1.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-dictionary-2.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-skippable-frame-0.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-skippable-frame-4.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-skippable-frame-8.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-skippable-frame-C.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.2-FF.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.2-FF.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.3-FF.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.3-FF.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.4-FF.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.4-FF.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.5-FF.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.5-FF.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.6-FF.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.6-FF.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.7-00.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.7-21.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.7-21.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.7-22.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.7-22.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.8-00.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.8-01.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.8-01.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.8-02.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.8-02.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.8-03.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.8-03.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.8-16.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.8-16.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.8-20.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.8-20.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.8-21.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.8-21.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.8-22.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.8-22.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.8-23.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.8-23.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.8-F4.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.8-F4.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00
zstd-v0.8-FF.result PR/386: Add newlines for consitency 2022-10-09 17:59:54 +00:00
zstd-v0.8-FF.testfile PR/573: Nick Terrell: Add zstd support 2016-09-16 12:12:05 +00:00

file tests
==========

This directory contains tests for file. It is highly encouraged to add
one each time a bug is found, and each time new magic is added. Each
test consists of two files:

  TEST.testfile
  TEST.result

where TEST is the base name of the test, TEST.testfile is the input,
and TEST.result is the desired output from file.

To add a new test just add the test files to the directory.