summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/rcs/src/test
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/rcs/src/test
Initial commit
Diffstat (limited to 'macros/latex/contrib/rcs/src/test')
-rw-r--r--macros/latex/contrib/rcs/src/test/Imakefile44
-rw-r--r--macros/latex/contrib/rcs/src/test/Makefile218
-rw-r--r--macros/latex/contrib/rcs/src/test/empty-log.tex21
-rw-r--r--macros/latex/contrib/rcs/src/test/german.tex41
-rw-r--r--macros/latex/contrib/rcs/src/test/log-error.tex41
-rw-r--r--macros/latex/contrib/rcs/src/test/log.tex38
-rw-r--r--macros/latex/contrib/rcs/src/test/rcsdef.tex24
-rw-r--r--macros/latex/contrib/rcs/src/test/rcsid-param.tex21
-rw-r--r--macros/latex/contrib/rcs/src/test/rcsid.tex27
-rw-r--r--macros/latex/contrib/rcs/src/test/under_score.tex34
10 files changed, 509 insertions, 0 deletions
diff --git a/macros/latex/contrib/rcs/src/test/Imakefile b/macros/latex/contrib/rcs/src/test/Imakefile
new file mode 100644
index 0000000000..04bd008c25
--- /dev/null
+++ b/macros/latex/contrib/rcs/src/test/Imakefile
@@ -0,0 +1,44 @@
+XCOMM $Id: Imakefile,v 1.2 1995/08/02 12:21:39 schrod Exp $
+/* ---------------------------------------------------------------------- */
+
+/*
+ * Imakefile for test of rcs package
+ *
+ * (history at end)
+ */
+
+
+/* needed modules */
+#include <TeX.imk>
+
+XCOMM ------------------------------------------------------------
+XCOMM continue in Imakefile
+
+
+regression:: clean
+ $(MAKE) all
+
+
+TeXTarget(latex,empty-log)
+TeXTarget(latex,rcsdef)
+TeXTarget(latex,rcsid-param)
+TeXTarget(latex,rcsid)
+
+TeXTarget(latex '\scrollmode \input',log-error)
+
+
+/* ============================================================
+ *
+ * $Log: Imakefile,v $
+ * Revision 1.2 1995/08/02 12:21:39 schrod
+ * Add regression target.
+ *
+ * Revision 1.1 1995/08/02 11:38:22 schrod
+ * Substituted Makefile by Imakefile.
+ *
+
+ * ------------------------------------------------------------
+ * Local Variables:
+ * mode: Indented-Text
+ * End:
+ */
diff --git a/macros/latex/contrib/rcs/src/test/Makefile b/macros/latex/contrib/rcs/src/test/Makefile
new file mode 100644
index 0000000000..a6161590c5
--- /dev/null
+++ b/macros/latex/contrib/rcs/src/test/Makefile
@@ -0,0 +1,218 @@
+# Makefile generated by imake - do not edit!
+# $Xorg: imake.c,v 1.6 2001/02/09 02:03:15 xorgcvs Exp $
+
+# $ITI: Imake.tmpl,v 1.5 1995/01/24 17:48:12 schrod Exp $
+#----------------------------------------------------------------------
+# Makefile generated from "Imake.tmpl" and <Imakefile>
+#
+# Top level imake template of `Imake module edition'.
+#
+
+default: all
+
+# ======================================================================
+# MIT & XFree configuration files
+# $ITI: MIT-config.imk,v 1.5 1997/01/14 10:30:25 herr Exp $
+
+# -------------------------------------------------------------------------
+# site-specific configuration parameters that need to come before
+# the platform-specific parameters - edit site.def to change
+
+# $ITI: site.def,v 1.8 1997/02/05 12:53:48 herr Exp $
+#
+# ITI site definitions
+#
+# starting from original MIT version
+
+# site: $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
+
+# -------------------------------------------------------------------------
+# platform-specific configuration parameters - edit x386.cf to change
+
+# $ITI: x386.cf,v 1.3 1994/06/30 17:03:54 schrod Exp $
+# $XFree86: mit/config/x386.cf,v 2.44 1994/04/16 04:20:56 dawes Exp $
+# platform: $XConsortium: x386.cf,v 1.7 91/08/16 19:30:10 gildea Exp $
+
+# operating system: Linux
+
+# -------------------------------------------------------------------------
+# site-specific configuration parameters that go after
+# the platform-specific parameters - edit site.def to change
+
+# $ITI: site.def,v 1.8 1997/02/05 12:53:48 herr Exp $
+#
+# ITI site definitions
+#
+# starting from original MIT version
+
+# site: $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
+
+ KMEMGROUP = kmem
+
+# ======================================================================
+# Imake template with basic definitions
+# $ITI: Base.imk,v 1.6 1995/07/11 16:24:09 deeken Exp $
+
+.SUFFIXES:
+
+.SUFFIXES: .o
+
+# ======================================================================
+# site specific configuration of Imake modules
+# for THD ITI installations
+# $ITI: iti-site.imk,v 1.13 1997/05/30 09:54:37 herr Exp $
+
+ LOCALDIR = /usr/local
+
+# ------------------------------------------------------------
+# Imake template for operations on files
+# $ITI: files.imk,v 1.6 1998/02/24 15:39:05 kehr Exp $
+
+ COPYIF = copyif
+ CPP = /lib/cpp
+ LN = ln -s
+ MAKEDIR = mkdir -p
+ MV = mv
+ RM = /bin/rm -f
+
+###
+
+# ------------------------------------------------------------
+# Imake template for use of imake & makedepend
+# $ITI: imake.imk,v 1.10 1998/02/24 15:39:06 kehr Exp $
+
+###
+
+ IMAKE = imake
+
+ IMAKE_STD_OPTIONS =
+ IMAKE_STD_INCLUDES = -I$(LOCALDIR)/lib/imake-modules
+ IMAKE_STD_DEFINES =
+
+ IMAKE_FLAGS = $(IMAKE_OPTIONS) $(IMAKE_EXTRA_OPTIONS) $(IMAKE_STD_OPTIONS) $(IMAKE_INCLUDES) $(IMAKE_EXTRA_INCLUDES) $(IMAKE_STD_INCLUDES) $(IMAKE_DEFINES) $(IMAKE_EXTRA_DEFINES) $(IMAKE_STD_DEFINES)
+
+###
+
+ MAKE = make
+ SHELL = /bin/sh
+
+###
+
+ TOPDIR = .
+ CURDIR = .
+ THISDIR = `basename $(CURDIR)`
+
+ MAKEOVERRIDES =
+
+###
+
+depend::
+ touch .dependdummy
+ $(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" .dependdummy
+ $(RM) .dependdummy
+
+ DEPEND = makedepend
+ DEPENDFLAGS =
+
+###
+
+ SUBDIRS =
+
+###########################################################################
+# start of Imakefile
+
+# $Id: Imakefile,v 1.2 1995/08/02 12:21:39 schrod Exp $
+
+# ======================================================================
+# Imake template for TeX & friends
+# $ITI: TeX.imk,v 1.2 1995/08/04 16:40:19 schrod Exp $
+
+ TEX_IT = tex-it
+ TEXI2DVI = texi2dvi
+
+# default rule created by TeX.imk
+
+clean::
+ $(RM) *.dvi *.log *.aux *.toc *.lo[ft] *.blg *.idx *.ilg
+
+realclean::
+ $(RM) *.bbl *.ind
+
+# ------------------------------------------------------------
+# continue in Imakefile
+
+regression:: clean
+ $(MAKE) all
+
+all:: empty-log.dvi
+
+empty-log.dvi: empty-log.tex
+ $(TEX_IT) latex $(TEX_FMT_OPTIONS) empty-log.tex
+
+all:: rcsdef.dvi
+
+rcsdef.dvi: rcsdef.tex
+ $(TEX_IT) latex $(TEX_FMT_OPTIONS) rcsdef.tex
+
+all:: rcsid-param.dvi
+
+rcsid-param.dvi: rcsid-param.tex
+ $(TEX_IT) latex $(TEX_FMT_OPTIONS) rcsid-param.tex
+
+all:: rcsid.dvi
+
+rcsid.dvi: rcsid.tex
+ $(TEX_IT) latex $(TEX_FMT_OPTIONS) rcsid.tex
+
+all:: log-error.dvi
+
+log-error.dvi: log-error.tex
+ $(TEX_IT) latex '\scrollmode \input' $(TEX_FMT_OPTIONS) log-error.tex
+
+# -------------------------------------------------------------------------
+# common rules for all Makefiles - do not edit
+
+Makefile::
+ @if [ -f Makefile ]; \
+ then set -x; \
+ $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
+ else set -x; fi ; \
+ $(IMAKE) $(IMAKE_FLAGS) -DImakeTopDir=$(TOPDIR) -DImakeCurrentDir=$(CURDIR); \
+ set +x
+
+Makefiles::
+ @case "$(MAKEFLAGS)" in *[ik]*) set +e;; esac; \
+ case "$(TOPDIR)" in \
+ /?*) newtop=$(TOPDIR) ;; \
+ *) newtop=../$(TOPDIR) ;; \
+ esac; \
+ test "$(SUBDIRS)" -o "$(SUBDIRS)" = "NullParameter" && \
+ for d in $(SUBDIRS) '' ; \
+ do if [ empty$$d != empty ] ; \
+ then echo "making Makefiles in $(CURDIR)/$$d ..."; \
+ $(MAKE) subdirMakefiles SUBDIR=$$d TOPDIR=$$newtop CURDIR=$(CURDIR)/$$d ; \
+ fi ; \
+ done || \
+ exit 0
+
+subdirMakefiles::
+ @cd $(SUBDIR) ; \
+ if [ -f Makefile ]; \
+ then set -x; \
+ $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
+ else set -x; fi ; \
+ $(IMAKE) $(IMAKE_FLAGS) -DImakeTopDir=$(TOPDIR) -DImakeCurrentDir=$(CURDIR); \
+ set +x ; \
+ $(MAKE) Makefiles
+
+clean::
+ $(RM) $(CLEAN_EXTRA_FILES) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut "#"*
+
+# -------------------------------------------------------------------------
+# default rules for Imakefiles that do not generate them - do not edit
+
+all::
+
+# -------------------------------------------------------------------------
+# dependencies generated by makedepend
+
diff --git a/macros/latex/contrib/rcs/src/test/empty-log.tex b/macros/latex/contrib/rcs/src/test/empty-log.tex
new file mode 100644
index 0000000000..957ac176a8
--- /dev/null
+++ b/macros/latex/contrib/rcs/src/test/empty-log.tex
@@ -0,0 +1,21 @@
+% $Id: empty-log.tex,v 1.3 1995/08/02 11:39:01 schrod Exp $
+%----------------------------------------------------------------------
+
+\documentclass{article}
+
+\usepackage{rcs}
+
+\nofiles % fewer files in directory
+
+\begin{document}
+
+This is a test.
+
+\tracingcommands=2
+\tracingmacros=2
+
+\begin{rcslog}
+$Log$
+\end{rcslog}
+
+\end{document}
diff --git a/macros/latex/contrib/rcs/src/test/german.tex b/macros/latex/contrib/rcs/src/test/german.tex
new file mode 100644
index 0000000000..f133229c9a
--- /dev/null
+++ b/macros/latex/contrib/rcs/src/test/german.tex
@@ -0,0 +1,41 @@
+% $Id: german.tex,v 1.1 2003/02/02 22:21:59 schrod Exp $
+%----------------------------------------------------------------------
+
+%
+% test for bad log entry
+%
+% [LaTeX]
+% (history at end)
+
+
+
+\documentclass{article}
+
+\usepackage{german}
+
+\usepackage{rcs}
+\rcsAuthor{schrod}{Joachim Schrod}
+
+\usepackage{shortvrb}
+\MakeShortVerb\|
+
+\nofiles
+
+\begin{document}
+
+\makeatletter
+\tracingcommands=2
+\tracingmacros=2
+
+\title{Dokument mit RCS-Feldern}
+\author{Joachim Schrod}
+\RCSdate $Date: 2003/02/02 22:21:59 $
+
+\maketitle
+
+Ein Test-Dokument.
+
+\end{document}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/macros/latex/contrib/rcs/src/test/log-error.tex b/macros/latex/contrib/rcs/src/test/log-error.tex
new file mode 100644
index 0000000000..41f0d5a7d7
--- /dev/null
+++ b/macros/latex/contrib/rcs/src/test/log-error.tex
@@ -0,0 +1,41 @@
+% $Id: log-error.tex,v 1.1 1995/08/02 11:37:32 schrod Exp $
+%----------------------------------------------------------------------
+
+%
+% test for bad log entry
+%
+% [LaTeX]
+% (history at end)
+
+
+
+\documentclass{article}
+
+\usepackage{rcs}
+\usepackage{shortvrb}
+\MakeShortVerb\|
+
+\nofiles
+
+\begin{document}
+
+\begin{rcslog}
+
+$Log: log-error.tex,v $
+\Revision 1.1 1995/08/02 11:37:32 schrod
+Add test case for |rcslog| environment with problems \& errors.
+
+\end{rcslog}
+
+\begin{rcslog}
+Garbage
+$Log: log-error.tex,v $
+\Revision 1.1 1995/08/02 11:37:32 schrod
+Add test case for |rcslog| environment with problems \& errors.
+
+\end{rcslog}
+
+\end{document}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/macros/latex/contrib/rcs/src/test/log.tex b/macros/latex/contrib/rcs/src/test/log.tex
new file mode 100644
index 0000000000..22de7dd4f5
--- /dev/null
+++ b/macros/latex/contrib/rcs/src/test/log.tex
@@ -0,0 +1,38 @@
+% $Id: log.tex,v 1.1 2003/02/02 20:27:57 schrod Exp $
+%----------------------------------------------------------------------
+
+%
+% test for bad log entry
+%
+% [LaTeX]
+% (history at end)
+
+
+
+\documentclass{article}
+
+\usepackage{rcs}
+\rcsAuthor{schrod}{Joachim Schrod}
+
+\usepackage{shortvrb}
+\MakeShortVerb\|
+
+\nofiles
+
+\begin{document}
+
+\makeatletter
+\tracingcommands=2
+\tracingmacros=2
+
+\begin{rcslog}
+$Log: log.tex,v $
+\Revision 1.1 2003/02/02 20:27:57 schrod
+Initial revision.
+
+\end{rcslog}
+
+\end{document}
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
diff --git a/macros/latex/contrib/rcs/src/test/rcsdef.tex b/macros/latex/contrib/rcs/src/test/rcsdef.tex
new file mode 100644
index 0000000000..84df16a8a6
--- /dev/null
+++ b/macros/latex/contrib/rcs/src/test/rcsdef.tex
@@ -0,0 +1,24 @@
+% $Id: rcsdef.tex,v 1.3 2003/02/02 13:34:16 schrod Exp $
+%----------------------------------------------------------------------
+
+\documentclass{article}
+
+\usepackage{rcs}
+
+\nofiles % fewer files in directory
+
+%\makeatletter
+%\tracingcommands=2
+%\tracingmacros=2
+
+\def\RcsEmptyValue{$\rm \langle Unknown \rangle$}
+\RCSdef $Revision: 1.3 $
+\RCSdef $Keyword$
+
+\begin{document}
+
+Revision is \RCSRevision.
+
+RCS tag \texttt{Keyword} is \RCSKeyword.
+
+\end{document}
diff --git a/macros/latex/contrib/rcs/src/test/rcsid-param.tex b/macros/latex/contrib/rcs/src/test/rcsid-param.tex
new file mode 100644
index 0000000000..a9adec49a7
--- /dev/null
+++ b/macros/latex/contrib/rcs/src/test/rcsid-param.tex
@@ -0,0 +1,21 @@
+% $Id: rcsid-param.tex,v 1.2 1995/08/02 11:39:02 schrod Exp $
+%----------------------------------------------------------------------
+
+\documentclass{article}
+
+\usepackage{rcs}
+
+\nofiles % fewer files in directory
+
+\makeatletter
+\tracingcommands=2
+\tracingmacros=2
+
+\def\RcsEmptyValue{$\rm \langle Unknown \rangle$}
+\RCSID{$Revision: 1.2 $}
+
+\begin{document}
+
+RCS field as arg of \verb|\RCSID|.
+
+\end{document}
diff --git a/macros/latex/contrib/rcs/src/test/rcsid.tex b/macros/latex/contrib/rcs/src/test/rcsid.tex
new file mode 100644
index 0000000000..3dc444d8b8
--- /dev/null
+++ b/macros/latex/contrib/rcs/src/test/rcsid.tex
@@ -0,0 +1,27 @@
+% $Id: rcsid.tex,v 1.2 1995/08/02 11:39:02 schrod Exp $
+%----------------------------------------------------------------------
+
+\documentclass{article}
+
+\usepackage{rcs}
+
+\nofiles % fewer files in directory
+
+\makeatletter
+\tracingcommands=2
+\tracingmacros=2
+
+\def\RcsEmptyValue{$\rm \langle Unknown \rangle$}
+\RCSID $Revision: 1.2 $
+
+\begin{document}
+
+Test document has revision \RCSRevision.
+
+First page % odd footline
+
+\newpage{}
+
+Second page % even footline
+
+\end{document}
diff --git a/macros/latex/contrib/rcs/src/test/under_score.tex b/macros/latex/contrib/rcs/src/test/under_score.tex
new file mode 100644
index 0000000000..d521ad9d17
--- /dev/null
+++ b/macros/latex/contrib/rcs/src/test/under_score.tex
@@ -0,0 +1,34 @@
+% $Id: under_score.tex,v 1.3 2003/02/02 20:27:04 schrod Exp $
+%----------------------------------------------------------------------
+
+\documentclass{article}
+
+\usepackage{rcs}
+
+\nofiles % fewer files in directory
+
+\makeatletter
+\tracingcommands=2
+\tracingmacros=2
+
+\def\RcsEmptyValue{$\rm \langle Unknown \rangle$}
+\RCS $Id: under_score.tex,v 1.3 2003/02/02 20:27:04 schrod Exp $
+
+\begin{document}
+
+This is a test case for file names with underscores that once lead to
+\TeX{} errors when they are part of the RCS macro expansion.
+
+RCS Id of Dokument is $$\hbox{\texttt{\RCSId}}$$.
+
+\begin{rcslog}
+$Log: under_score.tex,v $
+\Revision 1.3 2003/02/02 20:27:04 schrod
+Better formatting for Id field test.
+
+\Revision 1.2 2003/02/02 14:16:33 schrod
+Handle also underscores in Log fields.
+
+\end{rcslog}
+
+\end{document}