diff options
author | Keith F. Prussing <kprussing74@gmail.com> | 2024-10-21 12:25:24 (GMT) |
---|---|---|
committer | Keith F. Prussing <Keith.Prussing@gtri.gatech.edu> | 2024-10-21 15:14:48 (GMT) |
commit | c9d898304f2cec39c81a4e91801dd14868546365 (patch) | |
tree | 43b5d66f47548805aee8dd88558900485553d42b /SCons | |
parent | 29730012bd763884ae664a3981f3fa717dabf90a (diff) | |
download | SCons-c9d898304f2cec39c81a4e91801dd14868546365.zip SCons-c9d898304f2cec39c81a4e91801dd14868546365.tar.gz SCons-c9d898304f2cec39c81a4e91801dd14868546365.tar.bz2 |
Add test for beamer files
The branch adds support for tracking Beamer theme files. This defines
the test to show the scanning failed without modification, but succeeds
with the modification.
Diffstat (limited to 'SCons')
-rw-r--r-- | SCons/Scanner/LaTeXTests.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/SCons/Scanner/LaTeXTests.py b/SCons/Scanner/LaTeXTests.py index ae3ae66..a3f0263 100644 --- a/SCons/Scanner/LaTeXTests.py +++ b/SCons/Scanner/LaTeXTests.py @@ -63,6 +63,18 @@ test.write('test4.latex',r""" \only<2>{\includegraphics{inc7.png}} """) +test.write('test5.latex',r""" +\usetheme{scons} +""") +test.write('beamerthemescons.sty',r""" +\usecolortheme[option]{scons} +\usefonttheme{scons} +\useinnertheme{scons} +\useoutertheme{scons} +""") +for theme in ('color', 'font', 'inner', 'outer'): + test.write('beamer' + theme + 'themescons.sty', "\n") + test.subdir('subdir') test.write('inc1.tex',"\n") @@ -167,6 +179,16 @@ class LaTeXScannerTestCase4(unittest.TestCase): files = ['inc1.tex', 'inc2.tex', 'inc5.xyz', 'inc7.png'] deps_match(self, deps, files) +class LaTeXScannerTestCase5(unittest.TestCase): + def runTest(self) -> None: + env = DummyEnvironment(TEXINPUTS=[test.workpath("subdir")],LATEXSUFFIXES = [".tex", ".ltx", ".latex"]) + s = SCons.Scanner.LaTeX.LaTeXScanner() + path = s.path(env) + deps = s(env.File('test5.latex'), env, path) + files = ['beamer' + _ + 'themescons.sty' for _ in + ('color', 'font', 'inner', 'outer', '')] + deps_match(self, deps, files) + if __name__ == "__main__": unittest.main() |