Commit ef6047ed authored by Vít Novotný's avatar Vít Novotný
Browse files

Added visual tests of output PDFs.

The `test/` directory is now also uses the `university/faculty` path
scheme employed by the rest of the package.
parent 60321f17
Loading
Loading
Loading
Loading
+13 −10
Original line number Original line Diff line number Diff line
SUBMAKES_REQUIRED=logo/mu locale style style/mu
SUBMAKES_REQUIRED=logo/mu locale style style/mu
SUBMAKES_MISCELLANEOUS=guide/mu test example/mu
SUBMAKES_EXTRA=guide/mu example/mu
SUBMAKES=$(SUBMAKES_REQUIRED) $(SUBMAKES_MISCELLANEOUS)
SUBMAKES_TEST=test test/mu/blind test/mu/compare
SUBMAKES=$(SUBMAKES_REQUIRED) $(SUBMAKES_EXTRA) $(SUBMAKES_TEST)
.PHONY: all complete clean dist dist-implode implode \
.PHONY: all complete clean dist dist-implode implode \
	install uninstall test $(SUBMAKES_REQUIRED)
	install uninstall tests $(SUBMAKES)


CLASSFILES=fithesis.cls fithesis2.cls fithesis3.cls
CLASSFILES=fithesis.cls fithesis2.cls fithesis3.cls
STYLEFILES=style/*.sty style/*/*.sty style/*/*.clo
STYLEFILES=style/*.sty style/*/*.sty style/*/*.clo
@@ -14,10 +15,11 @@ DTXFILES=*.dtx locale/czech.dtx locale/english.dtx \
	locale/slovak.dtx style/*.dtx style/*/*.dtx
	locale/slovak.dtx style/*.dtx style/*/*.dtx
INSFILES=*.ins locale/czech.ins locale/english.ins \
INSFILES=*.ins locale/czech.ins locale/english.ins \
	locale/slovak.ins style/*.ins style/*/*.ins
	locale/slovak.ins style/*.ins style/*/*.ins
TESTS=test/*.tex
TESTS=test/*.tex test/mu/blind/*.tex test/mu/compare/*.pdf
MAKES=guide/mu/Makefile guide/mu/resources/Makefile \
MAKES=guide/mu/Makefile guide/mu/resources/Makefile \
	locale/Makefile	logo/mu/Makefile Makefile style/Makefile \
	locale/Makefile	logo/mu/Makefile Makefile style/Makefile \
	style/mu/Makefile test/Makefile
	style/mu/Makefile test/Makefile test/mu/blind/Makefile \
	test/mu/compare/Makefile
USEREXAMPLE_SOURCES=example/mu/Makefile example/mu/example.dtx \
USEREXAMPLE_SOURCES=example/mu/Makefile example/mu/example.dtx \
	example/mu/*.ins
	example/mu/*.ins
USEREXAMPLES=example/mu/econ-lualatex.pdf \
USEREXAMPLES=example/mu/econ-lualatex.pdf \
@@ -35,7 +37,9 @@ DEVEXAMPLES=guide/EXAMPLE/DESCRIPTION guide/mu/DESCRIPTION \
	locale/DESCRIPTION locale/EXAMPLE.dtx locale/EXAMPLE.ins \
	locale/DESCRIPTION locale/EXAMPLE.dtx locale/EXAMPLE.ins \
	logo/EXAMPLE/DESCRIPTION logo/mu/DESCRIPTION \
	logo/EXAMPLE/DESCRIPTION logo/mu/DESCRIPTION \
	logo/DESCRIPTION style/EXAMPLE/DESCRIPTION style/mu/DESCRIPTION \
	logo/DESCRIPTION style/EXAMPLE/DESCRIPTION style/mu/DESCRIPTION \
	style/DESCRIPTION test/DESCRIPTION example/EXAMPLE/DESCRIPTION \
	style/DESCRIPTION test/DESCRIPTION test/EXAMPLE/DESCRIPTION \
	test/mu/DESCRIPTION test/mu/blind/DESCRIPTION \
	test/mu/compare/DESCRIPTION example/EXAMPLE/DESCRIPTION \
	example/mu/DESCRIPTION example/DESCRIPTION
	example/mu/DESCRIPTION example/DESCRIPTION
EXAMPLES=$(USEREXAMPLES) $(DEVEXAMPLES)
EXAMPLES=$(USEREXAMPLES) $(DEVEXAMPLES)
MISCELLANEOUS=guide/mu/resources/empty.tex guide/mu/guide.bib \
MISCELLANEOUS=guide/mu/resources/empty.tex guide/mu/guide.bib \
@@ -75,12 +79,11 @@ complete: all
	make $(PDFS) clean
	make $(PDFS) clean


# This pseudo-target calls a submakefile.
# This pseudo-target calls a submakefile.
$(SUBMAKES_REQUIRED):
$(SUBMAKES):
	make -C $@ all
	make -C $@ all


# This pseudo-target performs the unit tests.
# This pseudo-target performs the tests.
test: all
tests: all $(SUBMAKES_TEST)
	make -C test all


# This pseudo-target creates the distribution archive.
# This pseudo-target creates the distribution archive.
dist: dist-implode complete
dist: dist-implode complete
+10 −7
Original line number Original line Diff line number Diff line
@@ -15,10 +15,13 @@ environment as well as the following tools:
  * `epstopdf`
  * `epstopdf`


Aside from these tools, the installation requires a correctly
Aside from these tools, the installation requires a correctly
configured TeX distribution containing the pdfTeX and XeTeX engines
configured TeX distribution containing the pdfTeX, XeTeX and LuaTeX
as well as the LaTeX packages required for the typesetting of the
engines as well as the LaTeX packages required for the typesetting
technical documentation within the `fithesis.dtx` file and the
of the technical documentation within the `fithesis.dtx` file and
guide files within the `guide/` subdirectory.
the guide files within the `guide/` subdirectory.

(For running the test suite using the `make tests` command, the
`faketime` and `comparepdf` commands are also required.)


## Procedure ##
## Procedure ##


@@ -26,7 +29,7 @@ To begin the installation, execute the following command from within
the current directory:
the current directory:


    make complete
    make complete
    make install to=[[TDS]] nohash=true
    make install to=[[TDS]]


and replace `[[TDS]]` with a path to the TeX directory structure into
and replace `[[TDS]]` with a path to the TeX directory structure into
which you want to install the package (such as `/usr/share/texmf`).
which you want to install the package (such as `/usr/share/texmf`).
@@ -52,7 +55,7 @@ distribution:
To uninstall the package, execute the following command from within
To uninstall the package, execute the following command from within
the current directory:
the current directory:


    make uninstall from=[[TDS]] nohash=true
    make uninstall from=[[TDS]]


and replace `[[TDS]]` with a path to the TeX directory structure into
and replace `[[TDS]]` with a path to the TeX directory structure into
which you want to install the package (such as `/usr/share/texmf`).
which you want to install the package (such as `/usr/share/texmf`).
+2 −2
Original line number Original line Diff line number Diff line
This directory can contain subdirectories with example documents
This directory can contain subdirectories with example documents of
of various universities.
various universities.
 No newline at end of file
+6 −6
Original line number Original line Diff line number Diff line
@@ -17,19 +17,19 @@ all: $(OUTPUT) clean


# This target typesets a pdfLaTeX example.
# This target typesets a pdfLaTeX example.
%-pdflatex.pdf: %-pdflatex.tex example.bib
%-pdflatex.pdf: %-pdflatex.tex example.bib
	pdflatex $<
	pdflatex $< # The initial typesetting.
	biber                               $(basename $<).bcf
	biber                               $(basename $<).bcf
	pdflatex $< # Update the index after the bibliography insertion.
	texindy -I latex -C utf8 -L english $(basename $<).idx
	texindy -I latex -C utf8 -L english $(basename $<).idx
	pdflatex $<
	pdflatex $< # The final typesetting, now also with index.
	pdflatex $<


# This target typesets a LuaLaTeX example.
# This target typesets a LuaLaTeX example.
%-lualatex.pdf: %-lualatex.tex example.bib
%-lualatex.pdf: %-lualatex.tex example.bib
	lualatex $<
	lualatex $< # The initial typesetting.
	biber                               $(basename $<).bcf
	biber                               $(basename $<).bcf
	lualatex $< # Update the index after the bibliography insertion.
	texindy -I latex -C utf8 -L english $(basename $<).idx
	texindy -I latex -C utf8 -L english $(basename $<).idx
	lualatex $<
	lualatex $< # The final typesetting, now also with index.
	lualatex $<


# This target removes any auxiliary files.
# This target removes any auxiliary files.
clean:
clean:
+5 −1
Original line number Original line Diff line number Diff line
@@ -56,11 +56,15 @@
  \gdef\thesis@version@number{#1}
  \gdef\thesis@version@number{#1}
  \gdef\thesis@version@date{#2}
  \gdef\thesis@version@date{#2}
  \gdef\thesis@version{#2 #1 fithesis3 MU thesis class}}
  \gdef\thesis@version{#2 #1 fithesis3 MU thesis class}}
\thesis@versiondef{v0.3.33}{2016/02/19}}
\thesis@versiondef{v0.3.34}{2016/02/24}}
% {\newwrite\f\openout\f=VERSION\write\f{\thesis@version}\closeout\f}
% {\newwrite\f\openout\f=VERSION\write\f{\thesis@version}\closeout\f}
%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
% \changes{v0.3.34}  {2016/02/24}{Added visual tests of output
%   PDFs. The \texttt{test/} directory is now also uses the
%   \textit{university}\texttt{/}\textit{faculty} path scheme
%   employed by the rest of the package.}
% \changes{v0.3.33}  {2016/02/19}{Added \cs{thesis@patch}.}
% \changes{v0.3.33}  {2016/02/19}{Added \cs{thesis@patch}.}
% \changes{v0.3.32}  {2016/02/18}{Fixed a regression from 
% \changes{v0.3.32}  {2016/02/18}{Fixed a regression from 
%   v0.3.27:2 -- The margins in \cs{thesis@blocks@mainMatter} were
%   v0.3.27:2 -- The margins in \cs{thesis@blocks@mainMatter} were
Loading