Add a test that the packages used are installed.
authormanagan <managan@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 31 Aug 2009 16:19:39 +0000 (16:19 +0000)
committermanagan <managan@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Mon, 31 Aug 2009 16:19:39 +0000 (16:19 +0000)
Otherwise skip the test.

git-svn-id: http://scons.tigris.org/svn/scons/trunk@4344 fdb21ef1-2011-0410-befe-b5e4ea1792b1

test/TEX/glossary.py
test/TEX/nomencl.py

index 6b4b225fcb8c98bbc3353849df6657e4b10f8697..423ffc7488c6305c0b44281dc21d1efead87bd79 100644 (file)
@@ -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']})
index 2e7191de001884be624544a88482baf324e78d16..63359f5643a6307f0a4c5d1bb01bc6a06e6402b2 100644 (file)
@@ -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']})