1# $Id: script_tests.list,v 1.7 2010/12/28 20:18:39 dan Exp $
2#
3# Copyright (c) 2006, 2007, 2010 Dan McMahill
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions
8# are met:
9# 1. Redistributions of source code must retain the above copyright
10#    notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright
12#    notice, this list of conditions and the following disclaimer in the
13#    documentation and/or other materials provided with the distribution.
14# 3. All advertising materials mentioning features or use of this software
15#    must display the following acknowledgement:
16#        This product includes software developed by Dan McMahill
17#  4. The name of the author may not be used to endorse or promote products
18#     derived from this software without specific prior written permission.
19#
20#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21#  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22#  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23#  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24#  INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
25#  BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26#  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
27#  AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28#  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29#  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30#  SUCH DAMAGE.
31#
32#
33# Format:
34#
35# test_name | directories to create | files needed | arguments to latex-mk | env vars | rc | ok as root?
36#
37# We may put "no" in the "ok as root?" field for tests that won't work right as root.
38# In particular some of the tests may experiment with directories that have 555 permissions.
39# The root user may not be constrained by such things.
40#
41# Basic document, no table of contents, index, bibliography, etc.
42# Verify that it works with writeable and read only ./
43#
44basic1 | | basic1.tex | basic1 |
45basic2 | out:755 .:755 | basic1.tex | basic1 | TEXMFOUTPUT=out
46basic3 | out:755 .:555 | basic1.tex | basic1 | | 1 | no
47basic4 | out:755 .:555 | basic1.tex | basic1 | TEXMFOUTPUT=out | | no
48basic_space1 | | "basic space1.tex" | "basic space1" |
49
50# same thing with pdflatex
51pdf1 | | basic1.tex | --pdflatex basic1 |
52pdf2 | out:755 .:755 | basic1.tex | --pdflatex basic1 | TEXMFOUTPUT=out
53pdf3 | out:755 .:555 | basic1.tex | --pdflatex basic1 | | 1 | no
54pdf4 | out:755 .:555 | basic1.tex | --pdflatex basic1 | TEXMFOUTPUT=out | | no
55
56######################################################################
57# makeindex operation
58######################################################################
59makeindex1 | | index.tex | index |
60makeindex2 | out:755 .:755 | index.tex | index | TEXMFOUTPUT=out
61makeindex3 | out:755 .:555 | index.tex | index | | 1 | no
62makeindex4 | out:755 .:555 | index.tex | index | TEXMFOUTPUT=out | | no
63
64######################################################################
65# makeindex operation
66######################################################################
67makegls1 | | nomencl.tex | nomencl |
68
69######################################################################
70# bibtex operation
71######################################################################
72bibtex1 | | bibliography.tex bibliography.bib| bibliography |
73bibtex2 | out:755 .:755 | bibliography.tex bibliography.bib| bibliography | TEXMFOUTPUT=out
74bibtex3 | out:755 .:555 | bibliography.tex bibliography.bib| bibliography | | 1 | no
75bibtex4 | out:755 .:555 | bibliography.tex bibliography.bib| bibliography | TEXMFOUTPUT=out | | no
76
77bibtex5 | | bibliography2.tex bibliography.bib| bibliography2 |
78
79######################################################################
80# Use of the bibunits package
81######################################################################
82bibunits1 | | bibunits1.tex  bibliography.bib | bibunits1 |
83bibunits2 | | bibunits2.tex  bibliography.bib | bibunits2 |
84
85# see what happens with TEXMFOUTPUT set.  Since "." is writable then things should
86# work as normal
87bibunits3 | out:755 .:755 | bibunits1.tex bibliography.bib| bibunits1 | TEXMFOUTPUT=out
88bibunits4 | out:755 .:755 | bibunits2.tex bibliography.bib| bibunits2 | TEXMFOUTPUT=out
89
90# in this case the output will be written to TEXMFOUTPUT since "." is read-only
91bibunits5 | out:755 .:555 | bibunits1.tex bibliography.bib| bibunits1 | TEXMFOUTPUT=out | | no
92bibunits6 | out:755 .:555 | bibunits2.tex bibliography.bib| bibunits2 | TEXMFOUTPUT=out | | no
93
94# in this case we should fail because of no write permissions to "." and no TEXMFOUTPUT set
95bibunits7 | out:755 .:555 | bibunits1.tex bibliography.bib| bibunits1 | | 1 | no
96bibunits8 | out:755 .:555 | bibunits2.tex bibliography.bib| bibunits2 | | 1 | no
97
98######################################################################
99# Reading of environment variables
100######################################################################
101vars1  | | basic1.tex | |   BIBTEX=mybibtex BIBTEX_FLAGS=mybibtex_flags | 1
102vars2  | | basic1.tex | |   LATEX=mylatex LATEX_FLAGS=mylatex_flags | 1
103vars3  | | basic1.tex | |   MAKEIDX=mymakeindex MAKEIDX_FLAGS=mymakeindex_flags | 1
104vars4  | | basic1.tex | |   PDFLATEX=mypdflatex PDFLATEX_FLAGS=mypdflatex_flags | 1
105vars5  | | basic1.tex | |   TEX2PAGE=mytex2page TEX2PAGE_FLAGS=mytex2page_flags | 1
106vars6  | | basic1.tex | |   TEXMFOUTPUT=mytexmf | 1
107vars7  | | basic1.tex | |   LOG=mylog | 1
108
109
110