diff options
author | edA-qa mort-ora-y <edA-qa@disemia.com> | 2012-05-06 05:38:21 +0200 |
---|---|---|
committer | edA-qa mort-ora-y <edA-qa@disemia.com> | 2012-05-06 05:38:21 +0200 |
commit | fde2ef438cf5cf5d28c08fcce88f994fac06a996 (patch) | |
tree | 6c169fcafb1d599213700caf0536b37863566bcf | |
parent | 4ed4c0db27ab349cce3f0f6653bd6c2e61064734 (diff) | |
download | scons-fde2ef438cf5cf5d28c08fcce88f994fac06a996.tar.gz |
check for missing latex packages
-rw-r--r-- | test/TEX/clean.py | 5 | ||||
-rw-r--r-- | test/TEX/lstinputlisting.py | 5 | ||||
-rw-r--r-- | test/TEX/multibib.py | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/test/TEX/clean.py b/test/TEX/clean.py index 7d17d813..9250e4e4 100644 --- a/test/TEX/clean.py +++ b/test/TEX/clean.py @@ -28,6 +28,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" Check that all auxilary files created by LaTeX are properly cleaned by scons -c. """ +import os import TestSCons test = TestSCons.TestSCons() @@ -37,6 +38,10 @@ latex = test.where_is('latex') if not latex: test.skip_test("Could not find tex or latex; skipping test(s).\n") +gloss = os.system('kpsewhich comment.sty') +if not gloss==0: + test.skip_test("comment.sty not installed; skipping test(s).\n") + # package hyperref generates foo.out # package comment generates comment.cut # todo: add makeindex etc. diff --git a/test/TEX/lstinputlisting.py b/test/TEX/lstinputlisting.py index 4a02bca7..66676edd 100644 --- a/test/TEX/lstinputlisting.py +++ b/test/TEX/lstinputlisting.py @@ -32,6 +32,7 @@ Thanks to Stefan Hepp for the patch that fixed this. """ import TestSCons +import os test = TestSCons.TestSCons() @@ -40,6 +41,10 @@ pdflatex = test.where_is('pdflatex') if not pdflatex: test.skip_test("Could not find pdflatex; skipping test(s).\n") +gloss = os.system('kpsewhich listings.sty') +if not gloss==0: + test.skip_test("listings.sty not installed; skipping test(s).\n") + test.write(['SConstruct'], """\ import os diff --git a/test/TEX/multibib.py b/test/TEX/multibib.py index 8486e15b..a2ae4ec2 100644 --- a/test/TEX/multibib.py +++ b/test/TEX/multibib.py @@ -39,6 +39,10 @@ latex = test.where_is('latex') if not latex: test.skip_test("Could not find 'latex'; skipping test.\n") +gloss = os.system('kpsewhich multibib.sty') +if not gloss==0: + test.skip_test("multibib.sty not installed; skipping test(s).\n") + test.subdir(['src']) |