summaryrefslogtreecommitdiffstats
path: root/test/TEX/TEXCOM.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/TEX/TEXCOM.py')
-rw-r--r--test/TEX/TEXCOM.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/test/TEX/TEXCOM.py b/test/TEX/TEXCOM.py
index 1cadd63..9d820bc 100644
--- a/test/TEX/TEXCOM.py
+++ b/test/TEX/TEXCOM.py
@@ -31,24 +31,14 @@ Test the ability to configure the $TEXCOM construction variable.
import TestSCons
_python_ = TestSCons._python_
-_exe = TestSCons._exe
test = TestSCons.TestSCons()
-
-
-test.write('mytex.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 != '/*tex*/\n']:
- outfile.write(l)
-sys.exit(0)
-""")
+test.file_fixture('mycompile.py')
test.write('SConstruct', """
env = Environment(TOOLS = ['tex'],
- TEXCOM = r'%(_python_)s mytex.py $TARGET $SOURCE')
+ TEXCOM = r'%(_python_)s mycompile.py tex $TARGET $SOURCE')
env.DVI('test1')
""" % locals())
@@ -61,8 +51,6 @@ test.run()
test.must_match('test1.dvi', "test1.tex\n")
-
-
test.pass_test()
# Local Variables: