summaryrefslogtreecommitdiffstats
path: root/test/TEX/LATEXCOM.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/TEX/LATEXCOM.py')
-rw-r--r--test/TEX/LATEXCOM.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/test/TEX/LATEXCOM.py b/test/TEX/LATEXCOM.py
index 2c63864..878d4cf 100644
--- a/test/TEX/LATEXCOM.py
+++ b/test/TEX/LATEXCOM.py
@@ -31,24 +31,14 @@ Test the ability to configure the $LATEXCOM construction variable.
import TestSCons
_python_ = TestSCons._python_
-_exe = TestSCons._exe
test = TestSCons.TestSCons()
-
-
-test.write('mylatex.py', r"""
-import sys
-outfile = open(sys.argv[1], 'wb')
-infile = open(sys.argv[2], 'rb')
-for l in [l for l in infile.readlines() if l != '/*latex*/\n']:
- outfile.write(l)
-sys.exit(0)
-""")
+test.file_fixture('mycompile.py')
test.write('SConstruct', """
env = Environment(TOOLS = ['latex'],
- LATEXCOM = r'%(_python_)s mylatex.py $TARGET $SOURCE')
+ LATEXCOM = r'%(_python_)s mycompile.py latex $TARGET $SOURCE')
env.DVI('test1', 'test1.latex')
""" % locals())
@@ -61,8 +51,6 @@ test.run()
test.must_match('test1.dvi', "test1.latex\n")
-
-
test.pass_test()
# Local Variables: