Skip to content
Snippets Groups Projects
Commit dd7f4822 authored by Kenneth Moreland's avatar Kenneth Moreland
Browse files

Add test for default targets.

parent a424ee42
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 2.8)
project(DefaultTargets NONE)
include(../../UseLATEX.cmake)
add_latex_document(DefaultDvi.tex MANGLE_TARGET_NAMES)
add_latex_document(DefaultPdf.tex DEFAULT_PDF MANGLE_TARGET_NAMES)
add_latex_document(DefaultSafePdf.tex DEFAULT_SAFEPDF MANGLE_TARGET_NAMES)
add_latex_document(DefaultPs.tex DEFAULT_PS MANGLE_TARGET_NAMES)
add_latex_document(NoDefault.tex NO_DEFAULT MANGLE_TARGET_NAMES)
\documentclass{article}
\begin{document}
\Large
\noindent
This document builds \textbf{\Huge dvi} by default.
\end{document}
\documentclass{article}
\begin{document}
\Large
\noindent
This document builds \textbf{\Huge pdf} by default.
\end{document}
\documentclass{article}
\begin{document}
\Large
\noindent
This document builds \textbf{\Huge ps} by default.
\end{document}
\documentclass{article}
\begin{document}
\Large
\noindent
This document builds \textbf{\Huge pdf through ps} by default.
\end{document}
\documentclass{article}
\begin{document}
\Large
\noindent
This document should \emph{\Huge not} be built by default.
\end{document}
This test checks to make sure that the appropriate targets are being made
by default. It specifically checks the DEFAULT_* and NO_DEFAULT options as
well as appropriate behavior when none of these are used.
The following documents exist and the default targets (made with no
arguments to make) should create the following files (in addition to the
standard auxileary files).
NoDefault.tex: -nothing-
DefaultDvi.tex: DefaultDvi.dvi
DefaultPdf.tex: DefaultPdf.pdf
DefaultSafePdf.tex: DefaultSafePDF.pdf, DefaultSafePdf.ps, DefaultSafePdf.dvi
DefaultPs.tex: DefaultPs.ps, DefaultPs.dvi
Looking at the transpose, here are the files expected per extention.
*.dvi: DefaultDvi.dvi, DefaultSafePDF.dvi, DefaultPs.dvi
*.pdf: DefaultPdf.pdf, DefaultSafePDF.pdf
*.ps: DefaultPs.ps, DefaultSafePDF.ps
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment