summaryrefslogtreecommitdiff
path: root/test/DVIPS
diff options
context:
space:
mode:
authorRobert Managan <managan1@llnl.gov>2009-07-22 04:56:52 +0000
committerRobert Managan <managan1@llnl.gov>2009-07-22 04:56:52 +0000
commit55eb80f452795b86096ebcd869f6d606115e2654 (patch)
treee68c1126b8e261b55abe10e78067c59554330a8d /test/DVIPS
parent4af4ec2abaa5f1739fe266c408eb37639d42fd89 (diff)
downloadscons-55eb80f452795b86096ebcd869f6d606115e2654.tar.gz
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/DVIPS')
-rw-r--r--test/DVIPS/DVIPS.py4
-rw-r--r--test/DVIPS/DVIPSFLAGS.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/test/DVIPS/DVIPS.py b/test/DVIPS/DVIPS.py
index 7d32c973..540869d9 100644
--- a/test/DVIPS/DVIPS.py
+++ b/test/DVIPS/DVIPS.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')
diff --git a/test/DVIPS/DVIPSFLAGS.py b/test/DVIPS/DVIPSFLAGS.py
index 61d247a6..a5be0a27 100644
--- a/test/DVIPS/DVIPSFLAGS.py
+++ b/test/DVIPS/DVIPSFLAGS.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')