diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-07-23 16:54:06 +0200 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2019-07-23 16:54:06 +0200 | 
| commit | efdf3fdbcd2f7654cb8d1209a8b040914437bacd (patch) | |
| tree | 19f68a3e29675ad73f57f7c639a044290660782f /src/engine/SCons/Scanner/LaTeXTests.py | |
| parent | 697e33ed224b539a42ff68121f7497f5bbf941b2 (diff) | |
New upstream version 3.1.0upstream/3.1.0
Diffstat (limited to 'src/engine/SCons/Scanner/LaTeXTests.py')
| -rw-r--r-- | src/engine/SCons/Scanner/LaTeXTests.py | 18 | 
1 files changed, 17 insertions, 1 deletions
diff --git a/src/engine/SCons/Scanner/LaTeXTests.py b/src/engine/SCons/Scanner/LaTeXTests.py index 4f8ec16..8750000 100644 --- a/src/engine/SCons/Scanner/LaTeXTests.py +++ b/src/engine/SCons/Scanner/LaTeXTests.py @@ -21,7 +21,7 @@  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  # -__revision__ = "src/engine/SCons/Scanner/LaTeXTests.py 103260fce95bf5db1c35fb2371983087d85dd611 2019-07-13 18:25:30 bdbaddog" +__revision__ = "src/engine/SCons/Scanner/LaTeXTests.py e724ae812eb96f4858a132f5b8c769724744faf6 2019-07-21 00:04:47 bdeegan"  import SCons.compat @@ -61,6 +61,12 @@ test.write('test3.latex',r"""  \includegraphics[width=60mm]{inc5.xyz}  """) +test.write('test4.latex',r""" +\include{inc1}\include{inc2} +\only<1>{\includegraphics{inc5.xyz}}% +\only<2>{\includegraphics{inc7.png}} +""") +  test.subdir('subdir')  test.write('inc1.tex',"\n") @@ -73,6 +79,7 @@ test.write(['subdir', 'inc3c.tex'], "\n")  test.write(['subdir', 'inc4.eps'], "\n")  test.write('inc5.xyz', "\n")  test.write('inc6.tex', "\n") +test.write('inc7.png', "\n")  test.write('incNO.tex', "\n")  # define some helpers: @@ -155,6 +162,15 @@ class LaTeXScannerTestCase3(unittest.TestCase):           files = ['inc5.xyz', 'subdir/inc4.eps']           deps_match(self, deps, files) +class LaTeXScannerTestCase4(unittest.TestCase): +     def runTest(self): +         env = DummyEnvironment(TEXINPUTS=[test.workpath("subdir")],LATEXSUFFIXES = [".tex", ".ltx", ".latex"]) +         s = SCons.Scanner.LaTeX.LaTeXScanner() +         path = s.path(env) +         deps = s(env.File('test4.latex'), env, path) +         files = ['inc1.tex', 'inc2.tex', 'inc5.xyz', 'inc7.png'] +         deps_match(self, deps, files) +  if __name__ == "__main__":      unittest.main()  | 
