aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2023-12-18 10:53:18 -0800
committerJohn MacFarlane <[email protected]>2023-12-18 10:53:18 -0800
commit72b9b3b70f75bcb61b9959541c7a6c6041b83c56 (patch)
treec78e2fc41d03162e581ebae1464f6b81d04c7ec0 /Makefile
parentf7e31adc9708760565c4533781f0bf78e7782899 (diff)
Makefile: add validate-docx-golden-tests target.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5b530ade9..87398d114 100644
--- a/Makefile
+++ b/Makefile
@@ -235,6 +235,13 @@ update-website: ## update website and upload
make -C $(WEBSITE) upload
.PHONY: update-website
+validate-docx-golden-tests: ## validate docx golden tests against schema
+ which xmllint || ("xmllint is required" && exit 1)
+ test -d ./docx-validator || \
+ git clone https://github.com/devoidfury/docx-validator
+ cd docx-validator && for f in ../test/docx/golden/*.docx; do ./validate $$f || exit 1 ; done
+.PHONY: validate-docx-golden-tests
+
modules.csv: $(PANDOCSOURCEFILES)
@rg '^import.*Text\.Pandoc\.' --with-filename $^ \
| rg -v 'Text\.Pandoc\.(Definition|Builder|Walk|Generic)' \