summaryrefslogtreecommitdiffstats
path: root/test/TEX.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-09-21 15:58:08 (GMT)
committerSteven Knight <knight@baldmt.com>2003-09-21 15:58:08 (GMT)
commit7d5aa5669b5208be12b1a75e7a2b2d290493508e (patch)
tree6fc95ab7e3b6b239cc16097bd02424bc92afa4c7 /test/TEX.py
parent9598e63d01421fa10f8dad43378ad0420f7b87ec (diff)
downloadSCons-7d5aa5669b5208be12b1a75e7a2b2d290493508e.zip
SCons-7d5aa5669b5208be12b1a75e7a2b2d290493508e.tar.gz
SCons-7d5aa5669b5208be12b1a75e7a2b2d290493508e.tar.bz2
New tex.py.
Diffstat (limited to 'test/TEX.py')
-rw-r--r--test/TEX.py22
1 files changed, 15 insertions, 7 deletions
diff --git a/test/TEX.py b/test/TEX.py
index 7a88e7a..888c209 100644
--- a/test/TEX.py
+++ b/test/TEX.py
@@ -81,7 +81,9 @@ foo = Environment(ENV = ENV)
tex = foo.Dictionary('TEX')
bar = Environment(ENV = ENV, TEX = r'%s wrapper.py ' + tex)
foo.DVI(target = 'foo.dvi', source = 'foo.tex')
+foo.DVI(target = 'foo-latex.dvi', source = 'foo-latex.tex')
bar.DVI(target = 'bar', source = 'bar.tex')
+bar.DVI(target = 'bar-latex', source = 'bar-latex.tex')
""" % python)
tex = r"""
@@ -89,20 +91,26 @@ This is the %s TeX file.
\end
"""
- test.write('foo.tex', tex % 'foo.tex')
+ latex = r"""
+\document%s{letter}
+\begin{document}
+This is the %s LaTeX file.
+\end{document}
+"""
+ test.write('foo.tex', tex % 'foo.tex')
test.write('bar.tex', tex % 'bar.tex')
+ test.write('foo-latex.tex', latex % ('style', 'foo-latex.tex'))
+ test.write('bar-latex.tex', latex % ('class', 'bar-latex.tex'))
- test.run(arguments = 'foo.dvi', stderr = None)
-
+ test.run(arguments = 'foo.dvi foo-latex.dvi', stderr = None)
test.fail_test(os.path.exists(test.workpath('wrapper.out')))
-
test.fail_test(not os.path.exists(test.workpath('foo.dvi')))
+ test.fail_test(not os.path.exists(test.workpath('foo-latex.dvi')))
- test.run(arguments = 'bar.dvi', stderr = None)
-
+ test.run(arguments = 'bar.dvi bar-latex.dvi', stderr = None)
test.fail_test(not os.path.exists(test.workpath('wrapper.out')))
-
test.fail_test(not os.path.exists(test.workpath('bar.dvi')))
+ test.fail_test(not os.path.exists(test.workpath('bar-latex.dvi')))
test.pass_test()