summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile13
-rw-r--r--luatexbase-attr.dtx2
-rw-r--r--luatexbase-modutils.dtx27
3 files changed, 38 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 3e7cb5a..3235539 100644
--- a/Makefile
+++ b/Makefile
@@ -15,8 +15,10 @@ UNPACKED_CCTB = luatexbase-cctb.sty luatexbase.cctb.lua \
test-cctb-plain.tex test-cctb-latex.tex
UNPACKED_LOADER = luatexbase-loader.sty luatexbase.loader.lua \
test-loader-plain.tex test-loader-latex.tex
+UNPACKED_MODUTILS = luatexbase-modutils.sty luatexbase.modutils.lua \
+ test-modutils-plain.tex test-modutils-latex.tex
UNPACKED = $(UNPACKED_MCB) $(UNPACKED_REGS) $(UNPACKED_ATTR) $(UNPACKED_CCTB) \
- $(UNPACKED_LOADER)
+ $(UNPACKED_LOADER) $(UNPACKED_MODUTILS)
COMPILED = $(DOC)
GENERATED = $(COMPILED) $(UNPACKED)
SOURCE = $(DTX) $(DTXSTY) README TODO Changes Makefile
@@ -47,7 +49,7 @@ DO_MAKEINDEX = makeindex -s gind.ist $(subst .dtx,,$<) >/dev/null 2>&1
# Main targets definition
all: $(GENERATED)
-check: check-regs check-attr check-cctb check-load
+check: check-regs check-attr check-cctb check-load check-modutils
doc: $(COMPILED)
unpack: $(UNPACKED)
ctan: check $(CTAN_ZIP)
@@ -75,6 +77,9 @@ $(UNPACKED_CCTB): luatexbase-cctb.dtx
$(UNPACKED_LOADER): luatexbase-loader.dtx
$(DO_TEX)
+$(UNPACKED_MODUTILS): luatexbase-modutils.dtx
+ $(DO_TEX)
+
check-regs: $(UNPACKED_REGS)
luatex --interaction=batchmode test-regs-plain.tex >/dev/null
lualatex --interaction=batchmode test-regs-latex.tex >/dev/null
@@ -91,6 +96,10 @@ check-loader: $(UNPACKED_LOADER)
luatex --interaction=batchmode test-loader-plain.tex >/dev/null
lualatex --interaction=batchmode test-loader-latex.tex >/dev/null
+check-modutils: $(UNPACKED_MODUTILS)
+ luatex --interaction=batchmode test-modutils-plain.tex >/dev/null
+ lualatex --interaction=batchmode test-modutils-latex.tex >/dev/null
+
$(CTAN_ZIP): $(SOURCE) $(COMPILED) $(TDS_ZIP)
@echo "Making $@ for CTAN upload."
@$(RM) -- $@
diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx
index 0fe7b98..7c9cc13 100644
--- a/luatexbase-attr.dtx
+++ b/luatexbase-attr.dtx
@@ -9,7 +9,7 @@
% This work consists of the main source file luatexbase-attr.dtx
% and the derived files
% luatexbase-attr.sty luatexbase.attr.lua
-% test-regs-plain.tex test-regs-latex.tex
+% test-regs-plain.tex test-regs-latex.tex
%
% Unpacking:
% tex luatexbase-attr.dtx
diff --git a/luatexbase-modutils.dtx b/luatexbase-modutils.dtx
index 1593a3b..4202e0f 100644
--- a/luatexbase-modutils.dtx
+++ b/luatexbase-modutils.dtx
@@ -8,7 +8,8 @@
%
% This work consists of the main source file luatexbase-modutils.dtx
% and the derived files
-% luatexbase-modutils.sty modutils.lua ...
+% luatexbase-modutils.sty modutils.lua
+% test-modutils-plain.tex test-modutils-latex.tex
%
% Unpacking:
% tex luatexbase-modutils.dtx
@@ -54,6 +55,12 @@ and the derived files
\file{luatexbase-modutils.sty}{\from{luatexbase-modutils.dtx}{texpackage}}%
}
+\generate{%
+ \usedir{doc/luatex/luatexbase}%
+ \file{test-modutils-plain.tex}{\from{luatexbase-modutils.dtx}{testplain}}%
+ \file{test-modutils-latex.tex}{\from{luatexbase-modutils.dtx}{testlatex}}%
+}
+
\def\MetaPrefix{-- }
\def\luapostamble{%
@@ -509,5 +516,23 @@ end
%</luamodule>
% \end{macrocode}
%
+% \section{Test files}
+%
+% We just check that the package loads properly, under both LaTeX and Plain
+% TeX. Anyway, the test files of other modules using this one already are a
+% test\dots
+%
+% \begin{macrocode}
+%<testplain>\input luatexbase-modutils.sty
+%<testlatex>\RequirePackage{luatexbase-modutils}
+%<*testplain,testlatex>
+% \end{macrocode}
+%
+% \begin{macrocode}
+%</testplain,testlatex>
+%<testplain>\bye
+%<testlatex>\stop
+% \end{macrocode}
+%
% \Finale
\endinput