# $Id: script_tests.list,v 1.7 2010/12/28 20:18:39 dan Exp $ # # Copyright (c) 2006, 2007, 2010 Dan McMahill # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the distribution. # 3. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by Dan McMahill # 4. The name of the author may not be used to endorse or promote products # derived from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # SUCH DAMAGE. # # # Format: # # test_name | directories to create | files needed | arguments to latex-mk | env vars | rc | ok as root? # # We may put "no" in the "ok as root?" field for tests that won't work right as root. # In particular some of the tests may experiment with directories that have 555 permissions. # The root user may not be constrained by such things. # # Basic document, no table of contents, index, bibliography, etc. # Verify that it works with writeable and read only ./ # basic1 | | basic1.tex | basic1 | basic2 | out:755 .:755 | basic1.tex | basic1 | TEXMFOUTPUT=out basic3 | out:755 .:555 | basic1.tex | basic1 | | 1 | no basic4 | out:755 .:555 | basic1.tex | basic1 | TEXMFOUTPUT=out | | no basic_space1 | | "basic space1.tex" | "basic space1" | # same thing with pdflatex pdf1 | | basic1.tex | --pdflatex basic1 | pdf2 | out:755 .:755 | basic1.tex | --pdflatex basic1 | TEXMFOUTPUT=out pdf3 | out:755 .:555 | basic1.tex | --pdflatex basic1 | | 1 | no pdf4 | out:755 .:555 | basic1.tex | --pdflatex basic1 | TEXMFOUTPUT=out | | no ###################################################################### # makeindex operation ###################################################################### makeindex1 | | index.tex | index | makeindex2 | out:755 .:755 | index.tex | index | TEXMFOUTPUT=out makeindex3 | out:755 .:555 | index.tex | index | | 1 | no makeindex4 | out:755 .:555 | index.tex | index | TEXMFOUTPUT=out | | no ###################################################################### # makeindex operation ###################################################################### makegls1 | | nomencl.tex | nomencl | ###################################################################### # bibtex operation ###################################################################### bibtex1 | | bibliography.tex bibliography.bib| bibliography | bibtex2 | out:755 .:755 | bibliography.tex bibliography.bib| bibliography | TEXMFOUTPUT=out bibtex3 | out:755 .:555 | bibliography.tex bibliography.bib| bibliography | | 1 | no bibtex4 | out:755 .:555 | bibliography.tex bibliography.bib| bibliography | TEXMFOUTPUT=out | | no bibtex5 | | bibliography2.tex bibliography.bib| bibliography2 | ###################################################################### # Use of the bibunits package ###################################################################### bibunits1 | | bibunits1.tex bibliography.bib | bibunits1 | bibunits2 | | bibunits2.tex bibliography.bib | bibunits2 | # see what happens with TEXMFOUTPUT set. Since "." is writable then things should # work as normal bibunits3 | out:755 .:755 | bibunits1.tex bibliography.bib| bibunits1 | TEXMFOUTPUT=out bibunits4 | out:755 .:755 | bibunits2.tex bibliography.bib| bibunits2 | TEXMFOUTPUT=out # in this case the output will be written to TEXMFOUTPUT since "." is read-only bibunits5 | out:755 .:555 | bibunits1.tex bibliography.bib| bibunits1 | TEXMFOUTPUT=out | | no bibunits6 | out:755 .:555 | bibunits2.tex bibliography.bib| bibunits2 | TEXMFOUTPUT=out | | no # in this case we should fail because of no write permissions to "." and no TEXMFOUTPUT set bibunits7 | out:755 .:555 | bibunits1.tex bibliography.bib| bibunits1 | | 1 | no bibunits8 | out:755 .:555 | bibunits2.tex bibliography.bib| bibunits2 | | 1 | no ###################################################################### # Reading of environment variables ###################################################################### vars1 | | basic1.tex | | BIBTEX=mybibtex BIBTEX_FLAGS=mybibtex_flags | 1 vars2 | | basic1.tex | | LATEX=mylatex LATEX_FLAGS=mylatex_flags | 1 vars3 | | basic1.tex | | MAKEIDX=mymakeindex MAKEIDX_FLAGS=mymakeindex_flags | 1 vars4 | | basic1.tex | | PDFLATEX=mypdflatex PDFLATEX_FLAGS=mypdflatex_flags | 1 vars5 | | basic1.tex | | TEX2PAGE=mytex2page TEX2PAGE_FLAGS=mytex2page_flags | 1 vars6 | | basic1.tex | | TEXMFOUTPUT=mytexmf | 1 vars7 | | basic1.tex | | LOG=mylog | 1