aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2025-05-27 07:15:19 +0200
committerJonas Smedegaard <dr@jones.dk>2025-05-27 07:15:19 +0200
commitd94416e0be8003e3636cd097c4fa28e5bec5fee0 (patch)
treed9b8ba967edea48c3de939f34c5b2ed547fa1530 /Makefile
parent14ec2b5fc5719eb249dda27daa6d1ee07c8ea132 (diff)
check tests renedered as CommonMark (not HTML)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 2fbdabc..f81023b 100644
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,9 @@ PDF_DOCUMENTS = _site/report.pdf
include _make/*.mk
-FILTER = _extensions/ruc-play/sem-md/sem-md.lua
+FILTER = sem-md/sem-md.lua
-DIFFTESTS = $(patsubst %.md,%,$(wildcard test/*.md))
+DIFFTESTS = $(patsubst %.md.md,%,$(wildcard test/*.md.md))
_which = $(shell command -v $1 >/dev/null 2>&1 && echo $1 $2)
DIFF = $(strip $(or \
@@ -53,9 +53,12 @@ $(WORKFLOW_DIAGRAMS): %.svg: %.cwl
check: $(DIFFTESTS:%=check-%)
luacheck --quiet $(FILTER)
-$(DIFFTESTS:%=check-%): check-%: %.md
- -$(strip $(PANDOC) --lua-filter $(FILTER) --wrap preserve < $< \
- | $(DIFF) $*.plain.html /dev/stdin)
+#$(DIFFTESTS:%=check-%): check-%: %.md
+# -$(strip $(PANDOC) --lua-filter $(FILTER) --wrap preserve < $< \
+# | $(DIFF) $*.plain.html /dev/stdin)
+$(DIFFTESTS:%=check-%): check-%: %.md %.md.md
+ -$(strip $(PANDOC) --to commonmark --lua-filter $(FILTER) --wrap preserve < $< \
+ | $(DIFF) $*.md.md /dev/stdin)
$(DIFFTESTS:%=debug-%): debug-%: %.md
$(PANDOC) --to native --lua-filter $(FILTER) < $<