summaryrefslogtreecommitdiffstats
path: root/test/TEX
diff options
context:
space:
mode:
authoredA-qa mort-ora-y <edA-qa@disemia.com>2012-05-06 03:38:21 (GMT)
committeredA-qa mort-ora-y <edA-qa@disemia.com>2012-05-06 03:38:21 (GMT)
commit1938d8a3bdab97e9229fe439fb57a26f0e93dad3 (patch)
tree6c169fcafb1d599213700caf0536b37863566bcf /test/TEX
parentb1aa01e14e21176f0dd33919fae528e26280dec4 (diff)
downloadSCons-1938d8a3bdab97e9229fe439fb57a26f0e93dad3.zip
SCons-1938d8a3bdab97e9229fe439fb57a26f0e93dad3.tar.gz
SCons-1938d8a3bdab97e9229fe439fb57a26f0e93dad3.tar.bz2
check for missing latex packages
Diffstat (limited to 'test/TEX')
-rw-r--r--test/TEX/clean.py5
-rw-r--r--test/TEX/lstinputlisting.py5
-rw-r--r--test/TEX/multibib.py4
3 files changed, 14 insertions, 0 deletions
diff --git a/test/TEX/clean.py b/test/TEX/clean.py
index 7d17d81..9250e4e 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 4a02bca..66676ed 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 8486e15..a2ae4ec 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'])