text-crossrefs: automatically regenerate tests via Make

This commit is contained in:
Bastien Dumont
2025-12-22 09:39:58 +01:00
parent e2ae4c3722
commit 5cf18bd551

View File

@ -32,3 +32,11 @@ test-%: text-crossrefs.lua sample.md
fi ;\
rm test/tmp-$*$(suffix).native ;\
)
update-test-files:
for f in typst opendocument latex context ; do \
for v in '' -with-options ; do \
TESTED_FORMAT=$$f pandoc -L text-crossrefs.lua -t native \
-o test/sample-$$f$$v.native sample$$v.md ; \
done ; \
done