From 05400b0148d93a4d618680cf7283a1133712b649 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= <mpg@elzevir.fr>
Date: Sat, 27 Mar 2010 22:29:26 +0100
Subject: Initial test file for modutils.

---
 luatexbase-modutils.dtx | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

(limited to 'luatexbase-modutils.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
-- 
cgit v1.2.3

