summaryrefslogtreecommitdiffstats
path: root/test/TEX
diff options
context:
space:
mode:
Diffstat (limited to 'test/TEX')
-rw-r--r--test/TEX/glossary.py4
-rw-r--r--test/TEX/nomencl.py4
2 files changed, 8 insertions, 0 deletions
diff --git a/test/TEX/glossary.py b/test/TEX/glossary.py
index 6b4b225..423ffc7 100644
--- a/test/TEX/glossary.py
+++ b/test/TEX/glossary.py
@@ -37,10 +37,14 @@ import TestSCons
test = TestSCons.TestSCons()
latex = test.where_is('latex')
+gloss = os.system('kpsewhich glossary.sty')
if not latex:
test.skip_test("Could not find latex; skipping test(s).\n")
+if not gloss==0:
+ test.skip_test("glossary.sty not installed; skipping test(s).\n")
+
test.write('SConstruct', """\
import os
env = Environment(tools = ['latex'], ENV = {'PATH' : os.environ['PATH']})
diff --git a/test/TEX/nomencl.py b/test/TEX/nomencl.py
index 2e7191d..63359f5 100644
--- a/test/TEX/nomencl.py
+++ b/test/TEX/nomencl.py
@@ -37,10 +37,14 @@ import TestSCons
test = TestSCons.TestSCons()
latex = test.where_is('latex')
+nomencl = os.system('kpsewhich nomencl.sty')
if not latex:
test.skip_test("Could not find latex; skipping test(s).\n")
+if not nomencl==0:
+ test.skip_test("nomencl.sty not installed; skipping test(s).\n")
+
test.write('SConstruct', """\
import os
env = Environment(tools = ['pdftex'], ENV = {'PATH' : os.environ['PATH']})