summaryrefslogtreecommitdiffstats
path: root/test/DVIPDF
diff options
context:
space:
mode:
authorRobert Managan <managan1@llnl.gov>2009-07-22 04:56:52 (GMT)
committerRobert Managan <managan1@llnl.gov>2009-07-22 04:56:52 (GMT)
commit069ce5a194b250c09667606c2e926747f5f083aa (patch)
treee68c1126b8e261b55abe10e78067c59554330a8d /test/DVIPDF
parent9915e5215af5dc08f58cfc91f08aabc1b8ae2cd5 (diff)
downloadSCons-069ce5a194b250c09667606c2e926747f5f083aa.zip
SCons-069ce5a194b250c09667606c2e926747f5f083aa.tar.gz
SCons-069ce5a194b250c09667606c2e926747f5f083aa.tar.bz2
Update tex builder to use the -recorder option.
This was prompted because MikTeX, used on Windows, does not put the same information on files opened into the log file. The -recorder option gives a .fls file that is the same on all platforms. We still use the .log file contents to find warnings and errors that mean we need to rerun latex... Also add message about errors so user does not have to scroll up through all the latex output to find if there was an error. Update all tests to handle the new command line option. Add one more test on grpahics conversion.
Diffstat (limited to 'test/DVIPDF')
-rw-r--r--test/DVIPDF/DVIPDF.py6
-rw-r--r--test/DVIPDF/DVIPDFFLAGS.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/test/DVIPDF/DVIPDF.py b/test/DVIPDF/DVIPDF.py
index b366152..7b3e292 100644
--- a/test/DVIPDF/DVIPDF.py
+++ b/test/DVIPDF/DVIPDF.py
@@ -38,7 +38,7 @@ test.write('mytex.py', r"""
import os
import sys
import getopt
-cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:', [])
+cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:r:', [])
base_name = os.path.splitext(arg[0])[0]
infile = open(arg[0], 'rb')
out_file = open(base_name+'.dvi', 'wb')
@@ -52,7 +52,7 @@ test.write('mylatex.py', r"""
import os
import sys
import getopt
-cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:', [])
+cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:r:', [])
base_name = os.path.splitext(arg[0])[0]
infile = open(arg[0], 'rb')
out_file = open(base_name+'.dvi', 'wb')
@@ -66,7 +66,7 @@ test.write('mydvipdf.py', r"""
import os
import sys
import getopt
-cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:', [])
+cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:r:', [])
infile = open(arg[0], 'rb')
out_file = open(arg[1], 'wb')
for l in infile.readlines():
diff --git a/test/DVIPDF/DVIPDFFLAGS.py b/test/DVIPDF/DVIPDFFLAGS.py
index 3d7bc72..93a435f 100644
--- a/test/DVIPDF/DVIPDFFLAGS.py
+++ b/test/DVIPDF/DVIPDFFLAGS.py
@@ -38,7 +38,7 @@ test.write('mytex.py', r"""
import os
import sys
import getopt
-cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:', [])
+cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:r:', [])
base_name = os.path.splitext(arg[0])[0]
infile = open(arg[0], 'rb')
out_file = open(base_name+'.dvi', 'wb')
@@ -52,7 +52,7 @@ test.write('mylatex.py', r"""
import os
import sys
import getopt
-cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:', [])
+cmd_opts, arg = getopt.getopt(sys.argv[1:], 'i:r:', [])
base_name = os.path.splitext(arg[0])[0]
infile = open(arg[0], 'rb')
out_file = open(base_name+'.dvi', 'wb')