Files
aiongg bf72b93d23 test: download fixtures from pinned sources instead of committing them
Remove the sample documents, PDF and licence copies from tests/fixtures/.
tests/fixtures/manifest.json lists each file's download URL (pinned to a
commit for GitHub sources), size and SHA-256. tools/fetch_fixtures.py
downloads them into the git-ignored tests/fixtures/files/ and verifies
them. The fixture tests read from there and skip when it is absent.
2026-10-07 05:47:17 +00:00
..

Test fixtures

tests/fixtures.rs runs smoke tests on six open-licensed sample files: five InDesign documents and one print PDF. The files are not in the repository. manifest.json lists where to download each one, pinned to a commit where the source is a Git repository, with its size and SHA-256.

Fetching

python3 -I tools/fetch_fixtures.py

The script saves the files in tests/fixtures/files/ (git-ignored), checks each one's size and SHA-256, and skips files that are already present and correct. It exits non-zero if any file fails.

Without tests/fixtures/files/, the fixture tests pass without checking anything and print a note. If the directory exists, every file must be present.

Never commit the downloaded files. Other samples stay in the local, git-ignored corpus/ directory.

Files

Path under files/ InDesign version Licence Source
opf-neddy-flyer/Neddy_Flyer_HeatherRyan.indd 3.0 (big-endian) CC0, Heather Ryan (waiver in the README next to it) openpreserve/format-corpus @ 0bd37b0d10f3
opf-neddy-flyer/Neddy_Flyer_HeatherRyan.pdf Print PDF of the flyer As above As above
lizdenys-minizine/indesign-minizine-template.indd 20.3 CC0, Liz Denys lizdenys.com (not versioned; the SHA-256 detects changes)
bootstrap3-template/bootstrap3-indesign-template.indd 9.2 MIT, © 2014 Miix (LICENSE) jeffing/bootstrap3-indesign-template @ 59a7d9fbe360
xmp-toolkit-bluesquare/BlueSquare.indd 4.0 (big-endian) BSD 3-Clause, © Adobe (LICENSE) adobe/XMP-Toolkit-SDK @ 7093513bd3ca
scml-template/scml.indt 7.5 MIT, © 2014 Scribe, Inc. (LICENSE) scribenet/scr-scml-indesign-templates @ 556f09acc5ab

None of the documents has a matching IDML file. The tests check that each file opens, its header and container are read, its objects are read, and the converter runs without error. For the two big-endian files they also check values that can be seen without an IDML (see docs/format/big-endian.md).